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)

Post installation problems

(0) ShareShare
ReportReport
Posted on by 220

Hello everyone!

 

I have just installed CRM dynamics 4 as a fresh installation on a server called TO-AP1 port 5555 with a company called Gigatech. At first, when I tryied to access the webpage (http://TO-AP1:5555) I would get the following error "You are not authorized to view this page due to invalid authentication headers".

 The first thing I did to try to resolve the problem was use the following command in command promp: 

C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/2/NTAuthenticationProviders "Negotiate,NTLM"

It still didnt work and then I realized I didnt have the windows authentication feature installed so I installed that. Then I tryed to access the webpage (http://TO-AP1:5555) and was promped to login. I used the following syntax:

Username = Gigatech\Administrator     <-- the deployment administrator in the management console

Password = *******

and it said it was wrong and would prompt me 3 times, and then take me to a blank screen. I kept trying and then got "no users exist in the company" After that, I made sure only authentication type in IIS7 for CRM was "Windows Authentication" and disabled the others. Then I got the following error:

bject 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.BusinessEntities.SecurityLibrary.CheckPrivilegeGroupForOrganization(WindowsIdentity identity, IOrganizationContext context) +146
   Microsoft.Crm.BusinessEntities.SecurityLibrary.GetPrivilegedUserCallerAndBusinessGuidsFromThread(WindowsIdentity identity, IOrganizationContext context) +104
   Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId) +239
   Microsoft.Crm.Authentication.CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId) +388
   Microsoft.Crm.Authentication.WindowAuthenticationProviderBase.Authenticate(HttpApplication application) +722
   Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application) +301
   Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application) +105
   Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e) +1194
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171

 

I am at a complete loss, please advise :(

*This post is locked for comments

I have the same question (0)
  • sandipdjadhav Profile Picture
    18,306 on at

    Hello,

    if you google there are bunch of people who face this type of error and they given different different solutions, I faced almost same type of issue you face,

    My team leader added CRM Site as "Trusted Site" in internet option and bingoo... !!! its start working. May be it will work for you. Add your CRM Site as "Trusted Site" and check.

     

    Thanks
    Sandip

  • iyf Profile Picture
    220 on at

    Thank you for the advice! Unfortunartely, that did not work, but after enabling "anonomys authentication" and "ASP.net impersonation" it ended up working. The only problem I have is that I dont think they are the most secure authenication methods.....I would rather the user have to enter the credentials.

     But now I have a new problem unfortunately. I have implemented the IFD tool for web access. I have forwarded web traffic coming in on port 80 to go to the "TO-AP1" server on port 5555 which is where CRM web page is location.

     So the user would enter http://wideareaIP:5555 which should redirect to 192.168.1.2:5555 but instead, it is going to the IIS default website at port 80, which means it is redirecting to 192.168.1.2:80. I am 100% sure that my router is set to send traffic coming in on port 80 and destination of 5555 to the AP server on port 5555. But why is it going to port 80 on the AP server where CRM is located? Any help is greatly appreciated

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