Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2080
  • Last Modified:

CRM Error Object reference not set to an instance of an object.

Hi

I am experiencing an error with a new CRM 4.0 installation.  I have completed the installation successfully. When I try to log in to the CRM, I receive the sign in page. After sign in, I receive this error. Can anybody provide any assistance on the error or what I should do to get more information? Thanks for your help

 
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.

[NullReferenceException: Object reference not set to an instance of an object.]
   Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckPrivilegeGroupForOrganization(WindowsIdentity identity, IOrganizationContext context) +112
   Microsoft.Crm.BusinessEntities.SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context) +64
   Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId) +199
   Microsoft.Crm.Sdk.InProcessCrmService.Execute(Object request) +167
   Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.ExecuteInternal() +605
   Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveAvailableLanguagesCommand.Execute() +10
   Microsoft.Crm.Application.Utility.ApplicationLanguage.get_AvailableLanguages() +211
   Microsoft.Crm.Application.Controls.AppUIPage.get_AvailableLanguages() +5
   Microsoft.Crm.Application.Controls.AppUIPage.SetCurrentUICulture() +16
   Microsoft.Crm.Application.Controls.AppPage..ctor() +19
   Microsoft.Crm.Web.Default..ctor() +11
   ASP.default_aspx..ctor() +13
   __ASP.FastObjectFactory_app_web_y9go213k.Create_ASP_default_aspx() +20
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
0
kevtrains
Asked:
kevtrains
1 Solution
 
Feridun KadirPrincipal ConsultantCommented:
If this is an on-premise installation on your own server, you shouldn't receive a sign-in page. CRM normally uses your windows credential for authentication.

Two things to check (though I don't think they are that relevant to the error message):

- is your windows account a CRM user?
- have you added the CRM URL to either Local Intranet or Trusted Sites in Internet Explorer?

Also, you could try adding another Windows account to CRM to see if the problem is due to a specific user account.
0
 
kevtrainsAuthor Commented:
Thanks for the feedback. I ended up reinstalling the server and worked fine the second time around. Not sure why this happened. THanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now