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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Web Application using CRM SDK

(0) ShareShare
ReportReport
Posted on by 55

Hi all!

I'm trying to use ASP.NET to build a Web Application that connects to the CRM web services.

It was correctly working when I was debugging it in VS 2010. After deploying it in IIS 7 I've got a Internal error on my server :

[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 3.0 SDK documentation and inspect the server trace logs.]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +4727747
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +1725
   Microsoft.Xrm.Sdk.IOrganizationService.RetrieveMultiple(QueryBase query) +0
   Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.RetrieveMultipleCore(QueryBase query) +892
   _Default.RetrieveEntity(String entityLogicalName) +343
   _Default.Page_Load(Object sender, EventArgs e) +388
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064

The problem seems to come from a Who am I request that I send to the web service.

I've haven't any idea of the origin of the problem so any idea is welcome!

 

Thank you in advance for your help, 

Philippe

*This post is locked for comments

I have the same question (0)
  • Aron Hoekstra Profile Picture
    95 on at
    Re: Web Application using CRM SDK

    try this

    geekswithblogs.net/.../includeexceptiondetailinfaults-in-wcf-service-configuration.aspx

  • Philippe Lep Profile Picture
    55 on at
    Re: Web Application using CRM SDK

    Thank you for your answer.

    I've checked the InnerException: it's null. I tried to turn on IncludeExceptionDetailInFaults but I don't know where to put it in my config...

  • Aron Hoekstra Profile Picture
    95 on at
    Re: Web Application using CRM SDK

    Either that or do what it's telling you about:  (turn on IncludeExceptionDetailInFaults)

  • Aron Hoekstra Profile Picture
    95 on at
    Re: Web Application using CRM SDK

    You may want to check your InnerException, a lot of time MS burries the real error message in there.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans