Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Unable to access Microsoft Dynamics CRM 2015 On premises from a web application hosted in IIS

Posted on by Microsoft Employee

We are currently working in Microsoft Dynamics CRM 2015 On Premises. I invoked MSCRM from a asp.net web application and its working successfully when it is started with Visual studio(localhost:5051//home.aspx). But after publishing the same in IIS , connection with CRM is not successfully established. 

Error Details :

The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ServiceModel.FaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

Stack Trace:


[FaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14493634
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +388
Microsoft.Xrm.Sdk.IOrganizationService.Create(Entity entity) +0
Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.CreateCore(Entity entity) +936
VZFTest.Registration.btnSubmit_Click(Object sender, EventArgs e) in e:\Yeshwanth\VZFTest\VZFTest\Registration.aspx.cs:65
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11802193
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1735

*This post is locked for comments

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Unable to access Microsoft Dynamics CRM 2015 On premises from a web application hosted in IIS

    Hi Yeshwanth,

    Can you please double check the web.config file to see if the connectionstring on the IIS website is correct?

    Also check the Authentication settings in IIS.  Can you provide a screeshot of that setting?

    I believe you also need the "HTTP Activation" feature enabled.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to access Microsoft Dynamics CRM 2015 On premises from a web application hosted in IIS

    Hi Nadeeja Bomiriya,

    These are the error details

    The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ServiceModel.FaultException: The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

    Stack Trace:

    [FaultException: The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.]

      System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14493634

      System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +388

      Microsoft.Xrm.Sdk.IOrganizationService.Create(Entity entity) +0

      Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.CreateCore(Entity entity) +936

      VZFTest.Registration.btnSubmit_Click(Object sender, EventArgs e) in e:\Yeshwanth\VZFTest\VZFTest\Registration.aspx.cs:65

      System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11802193

      System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150

      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1735

    Thanks ,

    Yeshwanth

  • Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Unable to access Microsoft Dynamics CRM 2015 On premises from a web application hosted in IIS

    Yes, please.  More details the better :)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to access Microsoft Dynamics CRM 2015 On premises from a web application hosted in IIS

    Hi Nadeeja Bomiriya,

    We have activated this feature , but still we are facing this error. Do you want me to post the error log regarding this error ??

    Thanks,

    Yeshwanth

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Unable to access Microsoft Dynamics CRM 2015 On premises from a web application hosted in IIS

    Hi Yeshwanth,

    Please check if the WIF 3.5 feature is activated on the server running IIS.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans