web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

slow when login crm (CrmException: The current organization id could not be determined.)

(0) ShareShare
ReportReport
Posted on by

We are encountering an issue with our Microsoft Dynamics 365 On-Premises environment where users cannot access the organization URL.

Environment Details:

  • Product: Microsoft Dynamics 365 On-Premises

  • Version: 9.1.42

  • Server: D365.test.local

  • Organization Name: test-01

  • URL: https://192.168.7.181/test-01

  • IIS Version: IIS 10

Issue Description:
When attempting to access the organization URL, the application fails to load and generates an ASP.NET exception in the Windows Event Viewer.

Event Log Details:
Log Name: Application
Source: ASP.NET 4.0.30319.0
Event ID: 1309
Event Code: 3005

Exception:
 

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          3/5/2026 10:55:03 PM
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      D365.test.local
Description:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 3/5/2026 10:55:03 PM 
Event time (UTC): 3/5/2026 8:55:03 PM 
Event ID: 3bbfd3b4bde5467381b9f23b2dccef4f 
Event sequence: 271 
Event occurrence: 2 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT-1-134172169416366596 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\Program Files\Dynamics 365\CRMWeb\ 
    Machine name: D365 
 
Process information: 
    Process ID: 9448 
    Process name: w3wp.exe 
    Account name: test\administrator 
 
Exception information: 
    Exception type: CrmException 
    Exception message: The current organization id could not be determined.
   at Microsoft.Crm.Application.Security.UserInformationIdentity.get_OrganizationId()
   at Microsoft.Crm.CrmCache`1.InternalAddEntry(String cacheKey, Object value, String[] dependencyKeys, IOrganizationContext context)
   at Microsoft.Crm.CrmCache`1.AddEntryNoLock(String key, TValue value, String[] dependencyKeys, IOrganizationContext context)
   at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntityFromLookupInternal(String key, TValue value, IOrganizationContext context)
   at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntryFromLookupCallback(String key, TValue value, IOrganizationContext context, Object parameter)
   at Microsoft.Crm.CrmCache`1.AddEntry(String key, TValue value, IOrganizationContext context, AddEntryCallback`1 callback, Object callbackParameter)
   at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntryFromLookup(String key, TValue value, IOrganizationContext context)
   at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.Themes.Theme.get_Current()
   at ASP.test_01__common_styles_theme_css_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Request information: 
    Request URL: https://192.168.7.181:443/test-01/_common/styles/theme.css.aspx?lcid=1033&ver=-533910750 
    Request path: /test-01/_common/styles/theme.css.aspx 
    User host address: 192.168.7.181 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: test\administrator 
 

the users login but after 40 sec of slow 

 

Note : attached screen shots of the current state

1.PNG
2.PNG

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    39 on at
    The error you’re seeing in Microsoft Dynamics 365:
     
    CrmException: The current organization id could not be determined
     
    combined with very slow login (~40 seconds) usually indicates a configuration or authentication resolution problem, not a simple IIS error.
    This issue typically occurs when CRM cannot resolve the organization context during the request pipeline.
    Most Common Causes in Dynamics 365 On-Prem 9.1

    Incorrect CRM Deployment URL Binding (Very Common)
     
    Your organization URL is:
     
    https://192.168.7.181/test-01
     
    But Dynamics expects access using the server hostname, not the IP.
     
    Example:
    https://D365.test.local/test-01
     
    CRM resolves the organization using host headers + deployment configuration.
    Using an IP address often breaks organization resolution.
     
    Fix
    Avoid IP-based URLs.
     
    CRM Website Authentication Configuration
    Verify IIS authentication settings.
     
    CRMAppPool Identity Problem
     
    Your log shows:
    Process account: test\administrator
    This is not recommended.
     
    CRMAppPool should run under:
    Network Service
    or a dedicated CRM service account.
     
    Missing Organization Mapping in Deployment Manager
    Open Microsoft Dynamics 365 Deployment Manager
    Check:
    Organizations
     → test-01
    Verify:
    • Organization is Enabled
    • State = Ready
    If not:
    • Right Click → Enable

    DNS Resolution Delay (Causes 40s Login Delay)
    The 40 second delay strongly suggests DNS resolution issues.
    Test from the CRM server:
    • ping D365.test.local
    • nslookup D365.test.local
    Also test reverse lookup:
    • nslookup 192.168.7.181
    If reverse DNS fails → authentication delays occur.
    Fix by adding DNS A and PTR records.
     
    SPN (Kerberos) Issues
    If using Windows Authentication:
    Check SPN:
    • setspn -L D365
    • If CRMAppPool uses domain account:
    • setspn -S HTTP/D365.test.local test\crmservice
     
    CRM Cache Issue
    Sometimes CRM cache causes this error.
    Clear CRM cache:
    C:\Program Files\Dynamics 365\CRMWeb\Server\bin\assembly
    Restart:
    • IISRESET
       

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 51 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans