Connect To Microsoft Dynamics CRM 2011 Online From Windows Azure Hosted Website

Hi
I have hosted a asp.net website on Windows Azure and trying to connect to Microsoft Dynamics CRM 2011 Online. But I am getting below error:
The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating.
Error Source =    at System.Security.Cryptography.ProtectedData.Protect(Byte[] userData, Byte[] optionalEntropy, DataProtectionScope scope)
   at Microsoft.Crm.Services.Utility.DeviceUserName.Encrypt(String value) in c:\DWASFiles\sites\mfs\VirtualDirectory0\site\wwwroot\App_Code\DeviceidManager.cs:line 869
   at Microsoft.Crm.Services.Utility.DeviceUserName.UpdateCredentials(String encryptedValue, String decryptedValue) in c:\DWASFiles\sites\mfs\VirtualDirectory0\site\wwwroot\App_Code\DeviceidManager.cs:line 840
   at Microsoft.Crm.Services.Utility.DeviceUserName.set_DecryptedPassword(String value) in c:\DWASFiles\sites\mfs\VirtualDirectory0\site\wwwroot\App_Code\DeviceidManager.cs:line 796
   at Microsoft.Crm.Services.Utility.DeviceIdManager.GenerateDeviceUserName() in c:\DWASFiles\sites\mfs\VirtualDirectory0\site\wwwroot\App_Code\DeviceidManager.cs:line 390
   at Microsoft.Crm.Services.Utility.DeviceIdManager.RegisterDevice(Guid applicationId, Uri issuerUri, String deviceName, String devicePassword) in c:\DWASFiles\sites\mfs\VirtualDirectory0\site\wwwroot\App_Code\DeviceidManager.cs:line 185
   at Microsoft.Crm.Services.Utility.DeviceIdManager.LoadOrRegisterDevice(Uri issuerUri, String deviceName, String devicePassword) in c:\DWASFiles\sites\mfs\VirtualDirectory0\site\wwwroot\App_Code\DeviceidManager.cs:line 109
   at Microsoft.Crm.Services.Utility.DeviceIdManager.LoadOrRegisterDevice(Uri issuerUri) in c:\DWASFiles\sites\mfs\VirtualDirectory0\site\wwwroot\App_Code\DeviceidManager.cs:line 92
   at Microsoft.Crm.Services.Utility.DeviceIdManager.LoadOrRegisterDevice() in c:\DWASFiles\sites\mfs\VirtualDirectory0\site\wwwroot\App_Code\DeviceidManager.cs:line 70
   at ServerConnection.ConnectToCRM() in c:\DWASFiles\sites\mfs\VirtualDirectory0\site\wwwroot\App_Code\CrmService.cs:line 56
Can someone help me on this?
Thanks Chandrabhanu

Hi
DeviceidManager.cs was causing the problem. I used simple codes and it worked.
string CrmConnection crmConnection = CrmConnection.Parse("Url=" + crmserver + "; Username=" + username + "; Password=" + password + ";");
OrganizationService serviceProxy = new OrganizationService(crmConnection);
Thanks Chandrabhanu

Similar Messages

  • Microsoft Dynamics CRM 2011 issues with Safari 7 in Mavericks

    Is anybody having issues with Microsoft Dynamics CRM 2011 and Safari 7 on Mavericks? For me, it constantly crashes and Safari shows me a message, telling me that there was a problem with the webpage, and has been reloaded. This is constant, and I can not work. Someone?

    Same here.

  • Microsoft Dynamics CRM 2015 online (AD requirements)

    Hi all,
    we are currently looking to setup a CRM 2015 online environment.
    I tried looking in the Technet articles but couldn't find an answer.
    Do we need to forsee Active directory groups (such as PrivUserGroup, SQLAccessGroup,...) like we do for the On premise version?
    And do we need to give a license, or does this come with the Office 365 license?
    Any help would be highly appreciated.
    Regards,

    Got a call from MS support, its across the entire service. They are working hard to fix meanwhile they provided a work around I am not sure if it will work for everyone but 
    https://ORGNAME--s.crm4.dynamics.com worked for me. Or variations where --d becomes --s
    so that is the normal url https://ORGNAME.crm4.dynamics.com/ you take the orgname and add --d or --s followed by crm4.dynamics.com 
    Only works in IE 
    teach a man to fish ... etcetera

  • Custom report Fetch XML error in CRM 2011 online version

    When i am trying to connect to my online CRM 2011 server below error appears
    Unable to connect to data source 'DataSource1'.The connection to server "https://{my org name}.crm5.dynamics.com/XRMServices/2011/Discovery.svc"
    could not be established. Make sure that the connection string and credentials are correct, and try again.
    I also tried as per Abhishek Agarwal MSFT suggestion as
    1. Make sure that the credentials are correct.
    2. Try accessing the same URL through the web browser by providing the same credentials.
    3. Try enabling traces for BIDS and look for the detailed error logs. You can do this by creating the regular
    CRM trace registry entries under HKLM\SOFTWARE\Microsoft\MSCRMBidsExtensions or HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSCRMBidsExtensions is you have a 64 bit
    machine.
    but nothing happens, trace log is
    ExceptionManager.PrepareException
    >Unhandled Exception: Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: The connection to server "https://xxx1.crm5.dynamics.com/XRMServices/2011/Discovery.svc"
    could not be established. Make sure that the connection string and credentials are correct, and try again.
    >
    >Inner Exception: Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: Metadata contains a reference that cannot be resolved: 'https://xxx1.crm5.dynamics.com/XRMServices/2011/Discovery.svc?wsdl'.
    >   at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
    >   at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)
    >   at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)
    >   at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(Uri address, MetadataExchangeClientMode mode)
    >   at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpoints(Type contractType, Uri serviceUri)
    >   at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri)
    >   at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateConfiguration[TService](Uri serviceUri)
    >   at Microsoft.Crm.ServiceConfigurationCache`1.GetServiceConfiguration(Uri serviceUrl)
    >   at Microsoft.Crm.ServiceProxyCache`1.GetServiceProxy(Uri serviceUrl, Credential credentials, Uri homeRealmUrl, String passportEnvironment)
    >Inner Exception: Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: The remote server returned an error: (407) Proxy Authentication Required.
    >   at System.Net.HttpWebRequest.GetResponse()
    >   at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
    >   at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)

    First, please make sure you are using the right version of Microsoft Dynamics CRM 2011 Report Authoring Extension
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=64a09b75-8376-4b9d-aea3-8a83a1837c4d
    Second, please make sure the connection string is correct, for CRM online,
    The connection string should be: <ServerURL>;<OrganizationUniqueName>;<HomeRealmURL>
    In this connection string, only <ServerURL> is mandatory.
    For more details, please refer to
    http://rc.crm.dynamics.com/rc/2011/en-us/online/5.0/help/how_rpt_customcreatefetchrs.htm
    Please remember to click “Mark as Answer” on the post that helps you. Jackie Chen, Microsoft Online Community Support

  • Fetch-Xml based report (to count User Access in the last 6 months ) for Microsoft Dynamics CRM Online

    Hi,
    I have created a User Access report for CRM on-premise using SQl query in the following format. One row corresponds to one user in organization. Currently, I am using Microsoft Dynamics CRM Online trial version and have two users in my organization.
    I want to the same report for CRM Online environment. Only Fetch-Xml based custom reports are supported by CRM online environment hence this SQL query cannot be used.
    I have already written fetch-xml query to retrieve user access records ("audit" entity records) in "last-x-months" (where x = 1,2,3,4,5,6) as below.
    I am able to retrieve the records with "last-x-months" condition at a time, for example, the last-2-months  in my fetch-xml query only.
    For, example, when I retrieve the records in the last-2-months, it also includes the records in the last month. I want to count the records in the 2nd month only that is the difference between these two. The difference will be my 2nd column.
    Similarly, I want the other columns.  
    For the case in the above example, I have created the two separate datasets to get the record-count for the last month and last-2-months. But, I am not able to use the two datasets in the same table in my report and hence not able to calculate the difference.
    Is there any way to solve this problem?

    Hi,
    I have modified my Fetch-XML query to retrieve all the required User Access records and removed aggregation and counting and grouping from the query as well. Did grouping and counting in SSRS. Now the report works fine as shown in the above picture.

  • We have office 365 subscription and we need to merge our Microsoft Dynamics CRM online subscription to office

    Hi,
                 We have office 365 subscription and we need to merge our Microsoft Dynamics CRM online subscription to office 365
     For organization:  Softtrends Software Pvt Ltd (https://softtrendssoftwarepvtltd.crm5.dynamics.com)
    Office 365 organization :  Softtrends Software Private Limited
     [email protected]

    Hi there,
    If you already have two different Microsoft Online services accounts, then this is no easy task. If you sign up for two Microsoft Online services, using two different Microsoft Online services ID's, you basically need to choose which one to throw away, and
    then do a migration from one to another.
    If you have a lot of data in both of them, you could cross your fingers, and make a Service Request to Microsoft, hoping that they could do some magic for you, or at least tell you which migration track that's the easiest one.
    The important part is that you first sign in to the service you want to keep, and then register for a new one using Sign in, in stead of Sign up. This way they are automatically liked to the same Windows Azure Active Directory tenant.
    I hope I understood your question, and was able to help you here.
    /Anders Eide

  • Error while uploading report in Microsoft Dynamics CRM Online

    I have created a report using fetch-xml query for Microsoft Dynamics CRM Online. In this field, I have created a custom enity which has "Last Accessed Date Time" field of type "DateTime". This field stores the value in GTM. I am retrieving
    the value of this field using fetch-xml query. Also, I want to calculate the difference between the current DateTime and the value (in the locale and not in GMT) of this field in "Hours Minutes Seconds" format. I
    have written an expression for the same in reportas follows.
    (IIF(((INT((DateDiff(DateInterval.Second, DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value), DateTimeKind.Utc).ToLocalTime(), DateTime.Now))/60))>60), INT(((((DateDiff(DateInterval.Second, DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value),
    DateTimeKind.Utc).ToLocalTime(), DateTime.Now)))/60)) / 60), 0))
    & "Hours"&
    (IIF(((INT((DateDiff(DateInterval.Second, DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value), DateTimeKind.Utc).ToLocalTime(), DateTime.Now))/60))>60), INT((((DateDiff(DateInterval.Second,DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value),
    DateTimeKind.Utc).ToLocalTime(), DateTime.Now)))/60) Mod 60), INT((DateDiff(DateInterval.Second, DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value), DateTimeKind.Utc).ToLocalTime(), DateTime.Now))/60)))
    & "Minutes" &
    ((DateDiff(DateInterval.Second, DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value), 
    DateTimeKind.Utc).ToLocalTime(), DateTime.Now)) Mod 60)
    & "Seconds"
    This works fine in visual studio. But, when tried to upload the same report in CRM Online organization, it gives the following error.
    Any idea how to solve this issue?

    I have found the following useful link-
    - support.microsoft.com/.../en-us
    The error occurred because I have used some functions("Int", "DateTime.SpecifyKind(DateTime.Parse(Fields!new_lastaccesseddatetime.Value), DateTimeKind.Utc).ToLocalTime()") in my ssrs report which are not supported by CRM Online., though
    it works fine in visual studio.

  • ECC 6.0 integration with MS Dynamics CRM 2011 on-demand thru PI

    Hi Gurus,
    sorry in advance if some of my doubts will appear to you experts as stupid....
    Scenario: we're on the way to realize the integration between SAP ECC and Microsoft Dynamics CRM Online (so...in the cloud) using SAP PI 7.11. In our scenario SAP PI will be the client, consuming webservices provided by MS CRM.
    Unfortunately during the PI configuration (following SAP HELP instructions) we're facing the following problems:
    1. The system (PI, dual-stack installation) has the parameter 'ssl/pse_provider' set to 'ABAP'. Considering that we would like to use SSL with SOAP adapter, questions are: 
      - Can we use the ABAP stack to maintain the PSEs, or it's mandatory to do it into the AS Java in order to use SSL with SOAP adapter.
    - If so, we need to switch the ssl/pse_provider parameter to JAVA. Could this change create some kind of problems?
      For information, currently in transaction STRUST we only have a Local node, neither Server nor Client nodes.
    2. We have already installed the SAP Cryptographic Library for SSL but: 
      - In NWA we can't find ICM_SSL_<instance_ID> view or CLIENT_ICM_SSL_<instance_ID> keystore view into the list of Keystore Views.
      - We would like to change the default Profile into RZ10 but we Can't find the profile... 
      - MS CRM (ws server) give us only a public certificate but do we need a private key too or we have to generate it from SAP?
      - We need to know if is possible to use the MS 'LIVEID' authentication with SAP PI or SAP ECC.
      - Do we need additional modules for the SOAP adapter(maybe an Axis one in order to use soap protocol 1.2)?
    Could you please suggest the right configuration and give us some tips about this kind of integration?
    Thanks a lot,
    MR

    Hi Mauro,
    Looking at your background I thought maybe you could help me out wit this integration question.
    I'm looking for some feedback on how best to integrate Microsoft Dynamics AX (DAX) with SAP CRM. We have a PI server.
    From reading on the net, I see many people are using a middleware product called Scribe or BizzTalk. We already made an investment with SAP PI and we'd like to use it.
    Do you have any references for Microsoft DAX integration with SAP CRM via SAP PI/ XI?
    Thanks in advance!

  • How to improve performance for bulk data load in Dynamics CRM 2013 Online

    Hi all,
    We need to bulk update (or create) contacts into Dynamics CRM 2013 online every night due to data updated from another external data source.  The data size is around 100,000 and the data loading duration was around 6 hours.
    We are already using ExecuteMultiple web services to handle the integration, however, the 6 hours integraton duration is still not acceptable and we are seeking for any advise for further improvement. 
    Any help is highly appreciated.  Many thanks.
    Gary

    I think Andrii's referring to running multiple threads in parallel (see
    http://www.mscrmuk.blogspot.co.uk/2012/02/data-migration-performance-to-crm.html - it's a bit dated, but should still be relevant).
    Microsoft do have some throttling limits applied in Crm Online, and it is worth contacting them to see if you can get those raised.
    100 000 records per night seems a large number. Are all these records new or updated records, or are there some that are unchanged, in which case you could filter them out before uploading ? Or are there useful ways to summarise the data before loading
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • CCX 9 integration with Dynamics CRM 2011?

    Hi,
    Please help me with intgeration of contact center 9 integration with Microsift Dynamics CRM 2011.
    Please points me to some good documents. Is the coneector for Dynamics still available or EOS?
    Regards,
    Nirmal

    Hi,
    Yesterday we announced the release of the EchoSign for Microsoft Dynamics 2013 integration.
    For more information please visit our blog, http://adobe.ly/1c1ovWG
    The Dynamics 2013 integration includes:
    Ability to send documents directly from within Leads, Opportunities, Contacts, and other Microsoft Dynamics entities including custom entities
    Real-time status tracking of EchoSign transactions with visibility to EchoSign events in the Dynamics Activity Feeds
    Automatically merging data from Microsoft Dynamics fields into contracts, and push data from signers back to Dynamics fields
    Ability to attach invoices or custom reports and send them for signature. This allow dynamic generation of documents and forms using the native Microsoft capability and be able to leverage that within our integration
    Record and store the signed agreements and the audit trail that capture each step in a contract’s history

  • ECC 6.0 integration with Microsoft Dynamics CRM

    Hi All
    I am working on a ECC 6.0 integration with Microsoft Dynamics CRM. I need to send the customer master data, va01/va02, vl01n/vl02n/ vf01/vf02 to CRM system. One option I have is to send in the form of IDOC with TRFC - TCP/IP. But looks like this needs a middleware like Biztalk.
    Is there a way I can send this data using a Internet service in ECC 6.0 ??? As this would cut the cost of the Biztalk.
    I really appriciate your thoughts on this. We don't have XI either.
    Thanks a lot
    Van

    HI Van Dan Jan,
    We have just implemented integarion of SAP with Microsoft stack (Microsoft CRM, Share point and Axapta), But in all integration BizTalk as a middleware used.
    There is two way requirements :
    1. whenever Most of the control are at the Microsoft level like : Customer creation, Creation of orders, which need to be synchronus activity we have used RFC which internally calls BAPI. (So SAP adapter Configured at BizTalk). and whenever Biztalk receives request file from CRM or share point to there location they call SAP RFC's.
    2. When DATA is needed from SAP to microsoft stack like to syncronize the missing transaction like customer pad and all.
    Scheduled job at BizTalk end which call SAP to get the DATA via RFC mode :
    In SAP we have two things
    1.  if DATA size is small (below 2 MB) like  in last 1 hrs what are the sales contract created in SAP that need to updated in Microsoft other system than Biztalk will trigger a job at 1 hr interval or on deemand to get the detail which directly we pick from data base or using BAPI to get the detail via RFC.
    2. If Data Size is large (more than 2 MB)  like total transation happened in a day for all customers: then we wriiting the data in OS or application server  and that job also get initiated from Biztalk end by sending any parameter to SAP.
    advantage of using BizTalk is most of the control you can give it to them so they can run there job on deemand basis.
    There is a something known as web service we can use to avoid Interfacing tool, but I dont have much Idea about that,
    and  please check how many interfacing point is there with SAP in your project, because if Interfacing points are more then I think it is not good to write a web services for so many things.
    do let me know if you need further information.

  • Does Eloqua Integrate with MicroSoft Dynamics CRM 2013 and or 2015

    We are planning to upgrade from Dynamics CRM 2011 to 2013 or 2015.  I cannot find information to confirm Eloqua will integrate with the newer versions of Dynamics CRM.  I 'hear'  Eloqua will integrate with 2013. Does anyone integrate Eloqua with Dynamics 2013 or 2015?

    Hello-
    We actually integrate with MS Dynamics, both 2013 and 2015 versions and would gladly help you.
    Feel free to visit our website for more info: www.putitforward.com/omc
    Here's a video on our YouTube channel about MS Dynamics 15 to Eloqua integration.
    Hope this helps!
    If you have any additional questions, let me know and I'll send you more info.

  • Signed DocuSign documents are not updating in Microsoft Dynamics CRM record

    My organization uses DocuSign with our Microsoft Dynamics CRM Online instance.
    When we first applied the DocuSign solution, we could send documents using the Send with Docusign feature and a signed version would be automatically up[dated in the same CRM record when the process was complete.
    Recently, the signed copies are not updating in the CRM.

    We don't know. Better to ask over here.
    https://community.dynamics.com/crm/f/117.aspx
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • No Microsoft Dynamics CRM User Exists

    Hi
    We are in the process of deploying UPK 3.5.1 to a number of users in the business. Once they have entered the library location in the Profile Wizard and click next they receive the following Server Error message.
    "No Microsoft Dynamics CRM User exists with the specified domain name and user ID."
    Can you advise.
    Pip

    Hi RossArn
    Please follow following blog written by me and I hope your problem will be resolved:
    http://social.technet.microsoft.com/wiki/contents/articles/29628.ms-crm-administration-disable-users-with-best-practices.aspx
    Ali Hassan

  • I deleted my microsoft office:mac 2011 word from my toolbar. I have Mac OS X version 10.6.8.  I tried to reinstall but it won't work. I get an error message each time. Please help!!!!!!!!!!!!!!

    I deleted my microsoft office:mac 2011 word from my toolbar. I have Mac OS X version 10.6.8.  I tried to reinstall but it won't work. This has never happened before.  I get an error message each time. Please help!!!!!!!!!!!!!!  I don't have time machine. 

    By Toolbar, do you mean the Dock?  The Translucent bar normally at the bottom of the screen, but sometimes at the right or left side?
    If that's what you mean, the Dock is merely a shortcut to what is already inside the Applications folder's Microsoft Office 2011 folder.  If you have Word inside your Microsoft Office 2011 folder, you can drag it back to the Dock.
    If you deleted the Microsoft Office folder, or it is empty, you'll have to reinstall it. 
    If you don't have your registration code, you'll have to call Microsoft for a new one.

Maybe you are looking for

  • 2 iTunes libraries on one computer?

    Is there anyway to have 2 different iTunes libraries on 1 computer? My girlfriend and I both have Ipod Nano's, however I want my own library for my own songs, and I tried to download the library again however it just goes to hers. Is this possible?

  • DoGet() method is being called every 3inutes repetitively in servlet

    HI, There are 2 managed servers in one unix box. i have one war application deployed in cluster level. This war application will search the logs and will give particular content as a result. The Jsp page will send the request and it is able to get th

  • Targeting iOS 6.0 SDK

    Hey guys, Recently I submitted an application via Itunes Connect which was rejected for the following: Invalid Launch Image - Your app contains a launch image with a size modifier that is only supported for apps built with the iOS 6.0 SDK or later. I

  • Having major problems connecting my iphone 5s to any wi fi.  Have reloaded completely, just 'Fails"?

    Having major problems connecting my iphone 5s to any wi fi.  Have reloaded completely, just 'Fails"?

  • Maverick causing battery life to half from before

    After upgrading to mavericks with my macbook air (mid 2009) it has went from a full battery of 5 hours to 2 hours. I have tried reseting the smc and NVRAM but that didnt work. Spotlight has also stop indexing aswell! So how can I fix this exactly? Im