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)

IIS-webservice client can't connect to CRM

(0) ShareShare
ReportReport
Posted on by 540

Hi together,

i have a very strange problem with the crm access from a webservice which is deployed on IIS (ASP.Net Classic Pool).

When the webservice wants to connect to the CRM (via connection-string) it receives "Metadata contains a reference that cannot be resolved: 'http://<crm host/organization>/XRMServices/2011/Organization.svc?wsdl"

I first thought that this has to to with authentification/autorization but this seems not to be the reason, because:
+ on the same machine i am able to connect to the crm with the browser
+ i have deployed the webservice as a windows service and there it works fine (runs under the same account)
+ when i connect to "localhost" instead of the server name it works
+ changing the servername to ip-address doesn't have any effect (-> not a problem of dns)

The problem seems to be a combination IIS <-> Outgoing connection, but i didn't find where connections are limited. It's not a problem in the firewall because it works in the browser and as windows-service instead of IIS.

Has anybody an idea what the reason for this strange behaviour could be?

Thanks for help
Karl

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Gustaf Westerlund Profile Picture
    on at

    Hi,

    Have you changed the settings of the CRM website a lot from when it was installed from within IIS? and did it work previously or has it always been broken? I know that, for instance trying to add website bindings from the IIS especially to HTTPS, may brake the installation. These kínds of settings have to be made from the deplyment manager which then writes to IIS. I am not saying that you have done any of these, I am just giving you a heads up in case you are close.

    You can Always take a backup of the database, restore it in a lab Environment and then do your test installations there. Preferably in virtual Environments where you can use snapshots to easily revert.

    Maybe I have given you some ideas or ways forward anyway. Good luck!

  • Josh Wells - MSFT Profile Picture
    961 on at

    Hi Karl,

    Thanks for reaching out to the forums on this issue.  My name is Josh Wells and I am a support engineer on the Microsoft Dynamics CRM support team.  

    I have reviewed your issue and I see you are having issues accessing the Organization service.  What is the Web Address you have configured within the Deployment Manager when you right-click on Microsoft Dynamics CRM then Properties?  

    Also have you tried using a tool like Fiddler to see what may be happening as well?  Fiddler is a web debugging tool that will allow you to monitor web requests and corresponding failures.  You may get a better exception within the Fiddler trace than the exception you are currently seeing.  You can find Fiddler here:

    http://fiddler2.com/

    Additionally, I would verify that the web service request is actually making it to the CRM server by looking at the IIS logs for the CRM website.  This would confirm that the requests are making it to the server and log what the HTTP response is.  

    Lastly, if you have confirmed the request is making it to the CRM website, you can enable CRM platform tracing to see if there are additional errors being logged there:

    support.microsoft.com/.../907490

    Hope this helps.  If you have any questions, please let us know.

  • Suggested answer
    Community Member Profile Picture
    on at

    What you set as application pool identity in IIS the web service running on? if you are using authentication tokens this this need to be a user in crm and you can limit access restrictions via security role, to make access to CRM more secure.

  • Josh Wells - MSFT Profile Picture
    961 on at

    Pathini,

    That is incorrect.  The account running the application pool should NOT be a CRM user.  There are various issues if the CRMAppPool is running under the identity of a CRM user.  Please refer to the CRM Implementation Guide found here:

    www.microsoft.com/.../details.aspx

    The IG states:

    Microsoft Dynamics CRM services and application pool (CRMAppPool) identity accounts must not be configured as a Microsoft Dynamics CRM user. Doing so can cause authentication issues and unexpected behavior in the application for all Microsoft Dynamics CRM users.

    It then links to an article of issues that can be faced:

    support.microsoft.com/.../2593042

  • Community Member Profile Picture
    on at

    Hi Josh I didn't mean crm application need to run as crm user. i mean the deployed  web service  application pool identity/

    What I read from initial post by Karl , I understood that there is web service which use sdk to connect crm?

  • Karl Andenmatten Profile Picture
    540 on at

    Sorry,

    i was absorbed the last days with an other project.

    It's correct that i have implemented an own web service which should connect to crm via sdk.

    I use connection strings where i can also define optional the crm username/password but this didn' solve the problem therefore i don't think that this is only a authentification problem. It seems more to be a problem running my service under IIS.

    Therefore i will now first try to implement my webservice as a windows service (or console program) to be sure that the connection to crm works correct and to be sure that the problem is not a network problem (firewall etc.).

    You will hear from me in the next days.

    Thanks

    Karl

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