web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM SDK Simplified Connection to cloudapp (Azure) CRM with Active Directory

(0) ShareShare
ReportReport
Posted on by

Hey guys, I'm a newbie so I ask for forgiveness beforehand in case the question I'm asking is dull.

I am developing some ASP.Net web pages that need to access CRM data in an OnPremise scenario. In able to test the connections, I installed a Dynamics CRM 2011 in Azure using AD authentication.

In my VB.Net web.config, I have used the same connection string as described in the CRM SDK for the simplified connection for the onpremise with provided user credentials:

<!-- On-premises with provided user credentials -->

<add name="Server=myserver, organization=AdventureWorksCycle, user=administrator" connectionString="Url=http://myserver/AdventureWorksCycle; Domain=mydomain; Username=administrator; Password=password;"/>

Credentials are OK as I am able to connect to the Azure CRM with the same credentials. However when I try to connect from the portal, I get a "Access is denied" message when trying to retrieve an entity.

Is the connection string I am using the adequate one for this scenario? Any other suggestion will be greatly appreciated.

Thanks for your help!!!!!

Ariel

*This post is locked for comments

I have the same question (0)
  • Muhammad Adeel Javaid Profile Picture
    5,580 on at

    You should check the priviliges.

  • Ariel Plon Profile Picture
    on at

    Thank you M, but I have tried using both limited accounts and administrator accounts. None seem to work.

    Regards, Ariel

  • Muhammad Adeel Javaid Profile Picture
    5,580 on at

    I think this could be of use for you:

    msdn.microsoft.com/.../gg328524.aspx

    technet.microsoft.com/.../gg334766.aspx

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans