in

How do I identify and fix an "Object reference not set to an instance error" after installing Microsoft Dynamics CRM 4.0 on Windows 2008 Server and SQL 2008 Server?

I have cleanly installed Microsoft Dynamics CRM 4.0 with all service packs and hotfixes applied to a Windows 2008 Server x64 Standard with SQL 2008 Server x64 Standard.

I followed the support for installing Dyn CRM 4.0 on Windows 2008 to a T. http://support.microsoft.com/kb/950100

Everything installed just fine without any errors. However after the reboot and trying to reference the URL under which Dyn CRM 4.0 resides, it throws the following exception error.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

----------------------------------------------------------------------------------------------------------------------------------------------------------

Any guidance, work around, or a fix would be most appreciated.
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
Server Error in '/' Application.
--------------------------------------------------------------------------------
 
Object reference not set to an instance of an object. 
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.NullReferenceException: Object reference not set to an instance of an object.
 
Source Error: 
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
 
Stack Trace: 
 
 
[NullReferenceException: Object reference not set to an instance of an object.]
   Microsoft.Crm.Authentication.WebConfigAuthenticationSettings..ctor() +44
   Microsoft.Crm.Authentication.WebConfigAuthenticationSettings..cctor() +31
 
[TypeInitializationException: The type initializer for 'Microsoft.Crm.Authentication.WebConfigAuthenticationSettings' threw an exception.]
   Microsoft.Crm.Authentication.WebConfigAuthenticationSettings.get_Instance() +0
   Microsoft.Crm.ServerLocatorService.IsPathBasedURLsEnabled() +54
   Microsoft.Crm.MapOrgVirtualPathProvider.GetDirectory(String virtualDir) +45
   System.Web.Hosting.VirtualPathProvider.GetDirectoryWithCheck(String virtualPath) +31
   System.Web.Compilation.BrowserCapabilitiesCompiler.GetBrowserCapabilitiesType() +246
   System.Web.Compilation.BrowserCapabilitiesCompiler.get_BrowserCapabilitiesFactory() +125
   System.Web.Configuration.HttpCapabilitiesEvaluator.EvaluateFinal(HttpRequest request, Boolean onlyEvaluateUserAgent) +27
   System.Web.Configuration.HttpCapabilitiesEvaluator.Evaluate(HttpRequest request) +325
   System.Web.Configuration.HttpCapabilitiesBase.GetBrowserCapabilities(HttpRequest request) +82
   System.Web.HttpRequest.get_Browser() +135
   System.Web.ErrorFormatter.RequiresAdaptiveErrorReporting(HttpContext context) +159
 
 
 
 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Open in New Window Select All

Solution: How do I identify and fix an "Object reference not set to an instance error" after installing Microsoft Dynamics CRM 4.0 on Windows 2008 Server and SQL 2008 Server?

Good to hear.