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)

ERROR 404 - Dynamics CRM 2011

(0) ShareShare
ReportReport
Posted on by

Hi! 

I am trying to help in the Spanish community in one strange error.

Sometime Dynamics CRM 2011 getting me “404 Error page”.

What I have done for resolve this error? Well I enable the trace and I have some data:

I have two errors:

at AuthenticationEngine.Execute(Object sender, EventArgs e)  ilOffset = 0x10B

                at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x5D

                at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

                at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0xF6

                at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C

                at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x15B

                at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)  ilOffset = 0x32

                at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B

A failure occurred during the execution of the AuthenticationPipeline: System.InvalidCastException: La conversión especificada no es válida.

   en Microsoft.Crm.Metadata.MultiOrgSharableMetadataCacheLoader.LoadPrivileges(Boolean isSystemDataLoaded, CrmDbConnection connection, IDbTransaction transaction, MetadataContainer systemContainer, MetadataContainer aggregateContainer, TableFillPropertiesMultiOrg properties, CounterList counter)

   en Microsoft.Crm.Metadata.MultiOrgSharableMetadataCacheLoader.LoadContainerData(Boolean isSystemDataLoaded, Boolean isSystemLanguageDataLoaded, CrmDbConnection connection, IDbTransaction transaction, MetadataContainer systemContainer, MetadataContainer aggregateContainer, List`1 fillProperties, CounterList counter)

   en Microsoft.Crm.Metadata.MultiOrgSharableMetadataCacheLoader.BuildMetadataContainerFromDatabase(LoadMasks masks, CrmDbConnection connection, IDbTransaction transaction, CounterList counter)

   en Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.<>c__DisplayClass1.<LoadMetadataContainerFromDatabase>b__0(CrmDbConnection sqlConn, IDbTransaction sqlTrans)

   en Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadMetadataContainerFromDatabaseInternal(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, Guid organizationId, CounterList counter, BuildMetadataContainerFromDatabaseTemplate buildMetadataContainerFromDatabase, Nullable`1 optionalVersionNumberToFilterResults)

   en Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadMetadataContainerFromDatabase(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, Guid organizationId, CounterList counter, Nullable`1 optionalVersionNumberToFilterResults)

   en Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabaseInternal(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, IOrganizationContext context, CounterList counter)

   en Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabase(LoadMasks masks, IOrganizationContext context, CounterList counter)

   en Microsoft.Crm.Metadata.DynamicMetadataCacheFactory.LoadMetadataCache(LoadMethod method, CacheType type, IOrganizationContext context)

   en Microsoft.Crm.Metadata.MetadataCache.LoadCache(IOrganizationContext context, Boolean fileOnlyIfExists)

   en Microsoft.Crm.Metadata.MetadataCache.GetInstance(IOrganizationContext context)

   en Microsoft.Crm.BusinessEntities.BusinessEntityMoniker..ctor(Guid id, String entityName, IOrganizationContext orgContext)

   en Microsoft.Crm.Caching.UserDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context)

   en Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)

   en Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.CreateEntry(TKey key, IOrganizationContext context)

   en Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)

   en Microsoft.Crm.BusinessEntities.SecurityLibrary.GetUserInfoCommon(IOrganizationContext context, Guid userGuid, LocatorServiceContext locatorServiceContext)

   en Microsoft.Crm.BusinessEntities.SecurityLibrary.GetUserInfoInternal(WindowsIdentity identity, IOrganizationContext context, UserAuth& userInfo, LocatorServiceContext locatorServiceContext)

   en Microsoft.Crm.BusinessEntities.SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId, LocatorServiceContext locatorServiceContext)

   en Microsoft.Crm.Authentication.CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId)

   en Microsoft.Crm.Authentication.WindowsAuthenticationProviderBase.Authenticate(HttpApplication application, WindowsIdentity userIdentity)

   en Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)

   en Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)

   en Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)

 

and

 

at DynamicMetadataCacheLoader.LoadMetadataContainerFromDatabaseInternal(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, Guid organizationId, CounterList counter, BuildMetadataContainerFromDatabaseTemplate buildMetadataContainerFromDatabase, Nullable`1 optionalVersionNumberToFilterResults)  ilOffset = 0xE0

                at DynamicMetadataCacheLoader.LoadMetadataContainerFromDatabase(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, Guid organizationId, CounterList counter, Nullable`1 optionalVersionNumberToFilterResults)  ilOffset = 0x39

                at DynamicMetadataCacheLoader.LoadCacheFromDatabaseInternal(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, IOrganizationContext context, CounterList counter)  ilOffset = 0x1B

                at DynamicMetadataCacheLoader.LoadCacheFromDatabase(LoadMasks masks, IOrganizationContext context, CounterList counter)  ilOffset = 0x20

                at DynamicMetadataCacheFactory.LoadMetadataCache(LoadMethod method, CacheType type, IOrganizationContext context)  ilOffset = 0x12E

                at MetadataCache.LoadCache(IOrganizationContext context, Boolean fileOnlyIfExists)  ilOffset = 0xC0

                at MetadataCache.GetInstance(IOrganizationContext context)  ilOffset = 0x71

                at BusinessEntityMoniker..ctor(Guid id, String entityName, IOrganizationContext orgContext)  ilOffset = 0x19

                at UserDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context)  ilOffset = 0x6D

                at ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)  ilOffset = 0x0

                at CrmMultiOrgCacheBase`2.CreateEntry(TKey key, IOrganizationContext context)  ilOffset = 0x0

                at CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)  ilOffset = 0xE

                at SecurityLibrary.GetUserInfoCommon(IOrganizationContext context, Guid userGuid, LocatorServiceContext locatorServiceContext)  ilOffset = 0x0

                at SecurityLibrary.GetUserInfoInternal(WindowsIdentity identity, IOrganizationContext context, UserAuth& userInfo, LocatorServiceContext locatorServiceContext)  ilOffset = 0x34

                at SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId, LocatorServiceContext locatorServiceContext)  ilOffset = 0x36

                at CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId)  ilOffset = 0x41

                at WindowsAuthenticationProviderBase.Authenticate(HttpApplication application, WindowsIdentity userIdentity)  ilOffset = 0x9F

                at AuthenticationStep.Authenticate(HttpApplication application)  ilOffset = 0x31

                at AuthenticationPipeline.Authenticate(HttpApplication application)  ilOffset = 0x11

                at AuthenticationEngine.Execute(Object sender, EventArgs e)  ilOffset = 0x10B

                at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x5D

                at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

                at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0xF6

                at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C

                at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x15B

                at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)  ilOffset = 0x32

                at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B

Exception while loading Metadata Cache from Database with LoadMasks = OData, All using new connection and new transaction. Exception: System.InvalidCastException: La conversión especificada no es válida.

   en Microsoft.Crm.Metadata.MultiOrgSharableMetadataCacheLoader.LoadPrivileges(Boolean isSystemDataLoaded, CrmDbConnection connection, IDbTransaction transaction, MetadataContainer systemContainer, MetadataContainer aggregateContainer, TableFillPropertiesMultiOrg properties, CounterList counter)

   en Microsoft.Crm.Metadata.MultiOrgSharableMetadataCacheLoader.LoadContainerData(Boolean isSystemDataLoaded, Boolean isSystemLanguageDataLoaded, CrmDbConnection connection, IDbTransaction transaction, MetadataContainer systemContainer, MetadataContainer aggregateContainer, List`1 fillProperties, CounterList counter)

   en Microsoft.Crm.Metadata.MultiOrgSharableMetadataCacheLoader.BuildMetadataContainerFromDatabase(LoadMasks masks, CrmDbConnection connection, IDbTransaction transaction, CounterList counter)

   en Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.<>c__DisplayClass1.<LoadMetadataContainerFromDatabase>b__0(CrmDbConnection sqlConn, IDbTransaction sqlTrans)

   en Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadMetadataContainerFromDatabaseInternal(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, Guid organizationId, CounterList counter, BuildMetadataContainerFromDatabaseTemplate buildMetadataContainerFromDatabase, Nullable`1 optionalVersionNumberToFilterResults)

 

About environment

2016_2D00_05_2D00_09_5F00_12h07_5F00_01.png

 

2016_2D00_05_2D00_09_5F00_12h08_5F00_26.png

But not all is bad news, I find one solution (and I don’t know why this works). I asked that is possible create a new organization y and then, test it.

For test only I created the new organization and worked but then try to open the old organization and worked without problem.

 

2016_2D00_05_2D00_09_5F00_12h10_5F00_40.png

 

Is as the new org refreshed all metadata I don’t know really. But this solution only work for few hours. When I getting the 404 error I have to open the TEST org y then all org will work without problem.

Do you know why the CRM getting me 404 error all time?

 

*This post is locked for comments

I have the same question (0)

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