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)

getting "Unexpected Error" anytime in CRM

(0) ShareShare
ReportReport
Posted on by 1,562

Hi All,
I am facing a strange issue in CRM,while working with CRM "Unexpected Error" will come anytime.Once I refresh everything is working fine.It happens to any entity, any user login and has just a generic error detail.Can anyone suggest me to fix.

0523.123.JPG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
    RE: getting "Unexpected Error" anytime in CRM

    Hi Tin,

    You could enable tracing for dynamics CRM on-premise or install diagnostics tool for knowing the reason behind these unexpected errors.

    See the links below.

    support.microsoft.com/.../how-to-enable-tracing-in-microsoft-dynamics-crm

    crmdiagtool2011.codeplex.com

  • Tin Profile Picture
    1,562 on at
    RE: getting "Unexpected Error" anytime in CRM

    Thanks Nithya,

    I was go through in event log and getting this details cloud you please check once.

    Event code: 3005

    Event message: An unhandled exception has occurred.

    Event time: 2/8/2017 4:07:16 PM

    Event time (UTC): 2/8/2017 9:07:16 PM

    Event ID: 3edb9813db5c4ad596553a5442d10508

    Event sequence: 8322

    Event occurrence: 5317

    Event detail code: 0

    Application information:

       Application domain: /LM/W3SVC/1/ROOT-17-131310484348477087

       Trust level: Full

       Application Virtual Path: /

       Application Path: c:\Program Files\Microsoft CRM\CRMWeb\

       Machine name: CMP-STG-CRM03

    Process information:

       Process ID: 4384

       Process name: w3wp.exe

       Account name: CMPCRMINSTALLER-STG

    Exception information:

       Exception type: UriFormatException

       Exception message: Invalid URI: The hostname could not be parsed.

      at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)

      at System.Web.Util.UriUtil.BuildUriImpl(String scheme, String serverName, String port, String path, String queryString, Boolean useLegacyRequestUrlGeneration)

      at System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor)

      at Microsoft.Crm.MapOrgEngine.GetOrganizationForClaims(Object sender)

      at Microsoft.Crm.MapOrgEngine.Execute(Object sender, EventArgs e)

      at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Request information:

       Request URL: https://:443/default.aspx

       Request path: /default.aspx

       User host address: 18.175.16.253

       User:  

       Is authenticated: False

       Authentication Type:  

       Thread account name: CMPCRMINSTALLER-STG

    Thread information:

       Thread ID: 34

       Thread account name: CMPCRMINSTALLER-STG

       Is impersonating: True

       Stack trace:    at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)

      at System.Web.Util.UriUtil.BuildUriImpl(String scheme, String serverName, String port, String path, String queryString, Boolean useLegacyRequestUrlGeneration)

      at System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor)

      at Microsoft.Crm.MapOrgEngine.GetOrganizationForClaims(Object sender)

      at Microsoft.Crm.MapOrgEngine.Execute(Object sender, EventArgs e)

      at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Custom event details:

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
  • Tin Profile Picture
    1,562 on at
    RE: getting "Unexpected Error" anytime in CRM

    Hi Nithya,

    I am getting same error, as mentioned in above link .

    Could you please share me the way to resolve issues.

    <TraceRecord xmlns="schemas.microsoft.com/.../TraceRecord&quot; Severity="Error"><TraceIdentifier>msdn.microsoft.com/.../System.ServiceModel.Diagnostics.ThrowingException.aspx&lt;/TraceIdentifier><Description>Throwing an exception.</Description><AppDomain>/LM/W3SVC/1/ROOT-5-131311528043141148</AppDomain><Exception><ExceptionType>System.ServiceModel.EndpointNotFoundException, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>There was no endpoint listening at net.tcp://crm-stg-crm05/CrmSandboxHost that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.</Message><StackTrace>   at System.ServiceModel.Channels.ConnectionUpgradeHelper.DecodeFramingFault(ClientFramingDecoder decoder, IConnection connection, Uri via, String contentType, TimeoutHelper&amp; timeoutHelper)

      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper&amp; timeoutHelper)

      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper&amp; timeoutHelper)

      at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)

      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

      at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

      at System.ServiceModel.Channels.ServiceChannelProxy.ExecuteMessage(Object target, IMethodCallMessage methodCall)

      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeChannel(IMethodCallMessage methodCall)

      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)

      at System.ServiceModel.ICommunicationObject.Open()

      at Microsoft.Crm.Sandbox.SandboxClientBase`1.Open()

      at Microsoft.Crm.Sandbox.SandboxClientBase`1.get_Proxy()

      at Microsoft.Crm.Sandbox.SandboxHostManager.PingSingleClient(SandboxClient pingClient, SandboxHostInfo info)

      at Microsoft.Crm.Sandbox.SandboxHostManager.PingHostsInternal(Object stateObject)

      at Microsoft.Crm.Sandbox.SandboxHostManager.PingHosts(Object stateObject)

      at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

      at System.Threading.TimerQueueTimer.CallCallback()

      at System.Threading.TimerQueueTimer.Fire()

      at System.Threading.TimerQueue.FireNextTimers()

    </StackTrace><ExceptionString>System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.tcp://ati-stg-crm05/CrmSandboxHost that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.</ExceptionString></Exception></TraceRecord>

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
    RE: getting "Unexpected Error" anytime in CRM

    Hi Tin,

    See the links below.

    stackoverflow.com/.../getting-error-on-crm-2011-plugin-invalid-uri-the-hostname-could-not-be-parsed

    community.dynamics.com/.../146244

  • Tin Profile Picture
    1,562 on at
    RE: getting "Unexpected Error" anytime in CRM

    Thanks Nithya, but i am not using any plugin here.
    I am getting error by below steps:
    Settings -> Customization -> Download Web Service endpoint WSDL Files. Click on the "Main data Web Service" icon and you are redirected to error page.

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
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans