Error while uninstalling / repairing SRSdataconnector for CRM 2011

I was facing the below while trying to repair Srsdataconnector and finally i resolved this.

\Error| System.Exception: Publishing CRM reports failed. —> System.TypeInitializationException: The type initializer for ‘Microsoft.Crm.Admin.AdminService.PIDGenNativeMethods’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘LicenseFilesLocationCache’ threw an exception. —> Microsoft.Crm.CrmException: Cannot load PidGen.dll because the following file locations do not exist:

C:\Program Files\Microsoft Dynamics CRM Reporting Extensions\PFiles\MSCRM\Server\bin\

and because cannot build files locations from the Registry for the following:

root = HKEY_LOCAL_MACHINE, path = SOFTWARE\Microsoft\MSCRM, key = CRM_Server_InstallDir

root = HKEY_LOCAL_MACHINE, path = Software\Microsoft\MSCRM Live, key = CRM_Live_InstallDir

at Microsoft.Crm.Admin.AdminService.PIDGenNativeMethods.LicenseFilesLocationCache..cctor()

— End of inner exception stack trace —

at Microsoft.Crm.Admin.AdminService.PIDGenNativeMethods.LicenseFilesLocationCache.get_Directory()

at Microsoft.Crm.Admin.AdminService.PIDGenNativeMethods..cctor()

— End of inner exception stack trace —

at Microsoft.Crm.Admin.AdminService.PIDGenNativeMethods.ValidateProductKeyV5(String sKey)

at Microsoft.Crm.Admin.AdminService.LicenseHelper.ReadLicense(Version buildVersion)

at Microsoft.Crm.Admin.AdminService.CrmLicenseService.IsDeploymentExpired()

at Microsoft.Crm.Caching.OrganizationSettingsCacheLoader.LoadCacheData(Guid key, ExecutionContext context)

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

at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context)

at Microsoft.Crm.Caching.CrmMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)

at Microsoft.Crm.BusinessEntities.SystemUserContext..ctor(ExecutionContext context, Boolean switchAuditingInfo)

Fix :

I have resolved this by created the path location manually which installer requires as per the error log.

C:\Program Files\Microsoft Dynamics CRM Reporting Extensions\PFiles\MSCRM

Then copied the Server folder from C:\Program Files\Microsoft Dynamics CRM Reporting Extensions\\MSCRM\.

Then Start run the Srsdataconnector.exe and “Repair”. Thisblog helped to resolve this error.

Original Source

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: