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)

Dynamic CRM 2015 Cannot browse organization in Deployment Manager

(1) ShareShare
ReportReport
Posted on by
I opened the Deployment Manager and I want to browse the organization. I get this error: 
0707636.Untitled.png
The Stack trace is provided below:
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.
Stack Trace:
[HttpException (0x80004005): Request is not available in this context]
   System.Web.HttpContext.get_Request() +12378794
   Microsoft.Crm.AuthenticationContextExtensions.CurrentHost(HttpContext context) +72
   Microsoft.Crm.Authentication.Claims.ClaimsUtility.InitializeApplication() +973
   Microsoft.Crm.MainApplication.Application_OnStart() +610
[HttpException (0x80004005): Request is not available in this context]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12600621
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
[HttpException (0x80004005): Request is not available in this context]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12617668
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12457285
 
[HttpException (0x80004005): Request is not available in this context]
   System.Web.HttpContext.get_Request() +12378794
   Microsoft.Crm.AuthenticationContextExtensions.CurrentHost(HttpContext context) +72
   Microsoft.Crm.Authentication.Claims.ClaimsUtility.InitializeApplication() +973
   Microsoft.Crm.MainApplication.Application_OnStart() +610
[HttpException (0x80004005): Request is not available in this context]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12600621
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
[HttpException (0x80004005): Request is not available in this context]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12617668
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12457285
-------------------------------------------------------------------------------------------------------------------------------------
I opened the Event Viewer and I got 2 errors
1st error:
Log Name:      Application
Source:        MSCRMTracing
Date:          5/20/2019 10:17:34 AM
Event ID:      17204
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      WIN-9PFU3L4GVFH.crm.com
Description:
CrmTrace encountered an error. Additional Info:Error in LoadSiteWideSettings [The type initializer for 'Microsoft.Crm.CrmSqlConnectionManager' threw an exception.], Stack Trace :    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at Microsoft.Crm.CrmTraceSettings.Load(String traceDirectory)
   at Microsoft.Crm.CrmTrace.get_RefreshTrace()
   at Microsoft.Crm.CrmTrace.Write(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Int32 skipFrames, String format, Object[] args)
   at Microsoft.Crm.CrmTrace.TraceFormat(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, String format, Object[] args)
   at Microsoft.Crm.Authentication.Claims.ClaimsUtility.InitializeApplication()
   at Microsoft.Crm.MainApplication.Application_OnStart()
   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.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at System.Web.HttpApplication.InvokeMethodWithAssert(MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs)
   at System.Web.HttpApplication.ProcessSpecialRequest(HttpContext context, MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs, HttpSessionState session)
   at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext), Inner Exception: System.Web.HttpException (0x80004005): Request is not available in this context
   at System.Web.HttpContext.get_Request()
   at Microsoft.Crm.CrmConnectionStringBuilderHelper.GenerateConnectionStringPrefix()
   at Microsoft.Crm.CrmSqlConnectionManager..cctor(), Data: System.Collections.ListDictionaryInternal (Reporting Process:w3wp, AppDomain:C:\Program Files\Microsoft Dynamics CRM\CRMWeb\)
Event Xml:
<Event xmlns="schemas.microsoft.com/.../event">
  <System>
    <Provider Name="MSCRMTracing" />
    <EventID Qualifiers="49152">17204</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2019-05-20T07:17:34.000000000Z" />
    <EventRecordID>135439</EventRecordID>
    <Channel>Application</Channel>
    <Computer>WIN-9PFU3L4GVFH.crm.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Error in LoadSiteWideSettings [The type initializer for 'Microsoft.Crm.CrmSqlConnectionManager' threw an exception.], Stack Trace :    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at Microsoft.Crm.CrmTraceSettings.Load(String traceDirectory)
   at Microsoft.Crm.CrmTrace.get_RefreshTrace()
   at Microsoft.Crm.CrmTrace.Write(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Int32 skipFrames, String format, Object[] args)
   at Microsoft.Crm.CrmTrace.TraceFormat(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, String format, Object[] args)
   at Microsoft.Crm.Authentication.Claims.ClaimsUtility.InitializeApplication()
   at Microsoft.Crm.MainApplication.Application_OnStart()
   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.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at System.Web.HttpApplication.InvokeMethodWithAssert(MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs)
   at System.Web.HttpApplication.ProcessSpecialRequest(HttpContext context, MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs, HttpSessionState session)
   at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext), Inner Exception: System.Web.HttpException (0x80004005): Request is not available in this context
   at System.Web.HttpContext.get_Request()
   at Microsoft.Crm.CrmConnectionStringBuilderHelper.GenerateConnectionStringPrefix()
   at Microsoft.Crm.CrmSqlConnectionManager..cctor(), Data: System.Collections.ListDictionaryInternal</Data>
    <Data>w3wp</Data>
    <Data>C:\Program Files\Microsoft Dynamics CRM\CRMWeb\</Data>
  </EventData>
</Event>
2nd error:
Log Name:      Application
Source:        MSCRMTracing
Date:          5/20/2019 10:17:34 AM
Event ID:      17204
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      WIN-9PFU3L4GVFH.crm.com
Description:
CrmTrace encountered an error. Additional Info:Error in LoadDeploymentSettings [The type initializer for 'Microsoft.Crm.CrmSqlConnectionManager' threw an exception.], Stack Trace :    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at Microsoft.Crm.CrmTraceSettings.Load(String traceDirectory)
   at Microsoft.Crm.CrmTrace.get_RefreshTrace()
   at Microsoft.Crm.CrmTrace.Write(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Int32 skipFrames, String format, Object[] args)
   at Microsoft.Crm.CrmTrace.TraceFormat(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, String format, Object[] args)
   at Microsoft.Crm.Authentication.Claims.ClaimsUtility.InitializeApplication()
   at Microsoft.Crm.MainApplication.Application_OnStart()
   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.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at System.Web.HttpApplication.InvokeMethodWithAssert(MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs)
   at System.Web.HttpApplication.ProcessSpecialRequest(HttpContext context, MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs, HttpSessionState session)
   at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) (Reporting Process:w3wp, AppDomain:C:\Program Files\Microsoft Dynamics CRM\CRMWeb\)
Event Xml:
<Event xmlns="schemas.microsoft.com/.../event">
  <System>
    <Provider Name="MSCRMTracing" />
    <EventID Qualifiers="49152">17204</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2019-05-20T07:17:34.000000000Z" />
    <EventRecordID>135440</EventRecordID>
    <Channel>Application</Channel>
    <Computer>WIN-9PFU3L4GVFH.crm.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Error in LoadDeploymentSettings [The type initializer for 'Microsoft.Crm.CrmSqlConnectionManager' threw an exception.], Stack Trace :    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at Microsoft.Crm.CrmTraceSettings.Load(String traceDirectory)
   at Microsoft.Crm.CrmTrace.get_RefreshTrace()
   at Microsoft.Crm.CrmTrace.Write(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Int32 skipFrames, String format, Object[] args)
   at Microsoft.Crm.CrmTrace.TraceFormat(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, String format, Object[] args)
   at Microsoft.Crm.Authentication.Claims.ClaimsUtility.InitializeApplication()
   at Microsoft.Crm.MainApplication.Application_OnStart()
   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.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at System.Web.HttpApplication.InvokeMethodWithAssert(MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs)
   at System.Web.HttpApplication.ProcessSpecialRequest(HttpContext context, MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs, HttpSessionState session)
   at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)</Data>
    <Data>w3wp</Data>
    <Data>C:\Program Files\Microsoft Dynamics CRM\CRMWeb\</Data>
  </EventData>
</Event>
How can I fix this? Please help.

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    It looks like the issue is with the connection string to the organisation database. This is stored in the Organization table in the MSCRM_Config database. It is not supported to directly edit this; the supported resolution would be to delete the organization, then import it using Deployment Manager, which will recreated the record in the Organization table

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Try to check whether MS SQL server service is running  by going to DB server , services.msc

    In addition you can also try to check whether you are able to reach DB server from CRM front end server.

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