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

Posted on 2010-01-09
Medium Priority
Last Modified: 2013-11-24

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
Question by:kevtrains
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 30

Accepted Solution

Feridun Kadir earned 2000 total points
ID: 26277015
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.

Author Comment

ID: 26291516
Thanks for the feedback. I ended up reinstalling the server and worked fine the second time around. Not sure why this happened. THanks

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question