VPuser
asked on
CRM 4.0 Invalid license
When opening the Deployment Manager:
The type initializer for 'PIDGenNativeMethods' threw an exception.
System.TypeInitializationE xception
Server stack trace:
at Microsoft.Crm.Admin.AdminS ervice.Lic enseHelper .PIDGenNat iveMethods .Call(Stri ng licenseKey)
at Microsoft.Crm.Admin.AdminS ervice.Lic enseHelper .ReadLicen se()
at Microsoft.Crm.Tools.Admin. LicenseCon troller.Ge tRemaining DaysIfTria lLicenseAn dIsNotific ationDay()
at Microsoft.Crm.Tools.Admin. DMSnapInCo ntroller.G etRemainin gDaysIfTri alLicenseA ndIsNotifi cationDay( )
at Microsoft.Crm.Tools.Admin. DMSnapInHe lper.Displ ayMessageB oxIfTrialL icenseAndI sNotificat ionDay(Con sole console)
at Microsoft.Crm.Tools.Admin. DMSnapIn.O nInitializ e()
at Microsoft.ManagementConsol e.SnapInBa se.Initial ized()
at Microsoft.ManagementConsol e.Internal .SnapInCli ent.Micros oft.Manage mentConsol e.Internal .ISnapInCl ient.Initi alize(ISna pInPlatfor m snapInPlatform)
at System.Runtime.Remoting.Me ssaging.St ackBuilder Sink._Priv ateProcess Message(In tPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Me ssaging.St ackBuilder Sink.SyncP rocessMess age(IMessa ge msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
at Microsoft.ManagementConsol e.Executiv e.SnapInIn itializati onOperatio n.OnStart( )
at Microsoft.ManagementConsol e.Executiv e.RunningO perationsT able.Enque ueOperatio n(Operatio n operation)
at Microsoft.ManagementConsol e.Executiv e.StandAlo neComponen tData..cto r(SnapInRe gistration Info info, Int32 bookkeepingId)
at Microsoft.ManagementConsol e.Advanced .Framework SnapInFact ory.Micros oft.Manage mentConsol e.Advanced .ISnapInFa ctory.Crea teSnapIn(I nt32 bookkeepingId, String snapInKey, Object& snapIn)
When accessing CRM (WEB):
Server Error in '/' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Invalid license. PidGen.dll cannot be loaded from this path C:\Program Files\Microsoft Dynamics CRM\Server\bin\PidGen.dll
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: Microsoft.Crm.CrmException : Invalid license. PidGen.dll cannot be loaded from this path C:\Program Files\Microsoft Dynamics CRM\Server\bin\PidGen.dll
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:
[CrmException: Invalid license. PidGen.dll cannot be loaded from this path C:\Program Files\Microsoft Dynamics CRM\Server\bin\PidGen.dll]
Microsoft.Crm.Admin.AdminS ervice.PID GenNativeM ethods..cc tor() +254
[TypeInitializationExcepti on: The type initializer for 'PIDGenNativeMethods' threw an exception.]
Microsoft.Crm.Admin.AdminS ervice.PID GenNativeM ethods.Cal l(String licenseKey) +0
Microsoft.Crm.Admin.AdminS ervice.Lic enseHelper .ReadLicen se() +322
Microsoft.Crm.Admin.AdminS ervice.Crm LicenseSer vice.IsDep loymentExp ired() +99
Microsoft.Crm.Caching.Orga nizationSe ttingsCach eLoader.Lo adCacheDat a(Guid key, ExecutionContext context) +120
Microsoft.Crm.Caching.Obje ctModelCac heLoader`2 .LoadCache Data(TKey key, IOrganizationContext context) +123
Microsoft.Crm.Caching.Basi cCrmCache` 2.CreateEn try(TKey key, IOrganizationContext context) +119
Microsoft.Crm.Caching.Basi cCrmCache` 2.LookupEn try(TKey key, IOrganizationContext context) +119
Microsoft.Crm.BusinessEnti ties.Secur ityLibrary .IsOrganiz ationSpeci alUser(Gui d organizationId, Guid userId, ExecutionContext context) +188
Microsoft.Crm.Caching.User DataCacheL oader.Load CacheData( Guid key, ExecutionContext context) +766
Microsoft.Crm.Caching.Obje ctModelCac heLoader`2 .LoadCache Data(TKey key, IOrganizationContext context) +553
Microsoft.Crm.Caching.Basi cCrmCache` 2.CreateEn try(TKey key, IOrganizationContext context) +119
Microsoft.Crm.Caching.Basi cCrmCache` 2.LookupEn try(TKey key, IOrganizationContext context) +119
Microsoft.Crm.BusinessEnti ties.Secur ityLibrary .GetUserIn foInternal (WindowsId entity identity, IOrganizationContext context, UserAuth& userInfo) +396
Microsoft.Crm.BusinessEnti ties.Secur ityLibrary .GetCaller AndBusines sGuidsFrom Thread(Win dowsIdenti ty identity, Guid organizationId) +212
Microsoft.Crm.Authenticati on.CrmWind owsIdentit y..ctor(Wi ndowsIdent ity innerIdentity, Boolean publishCrmUser, Guid organizationId) +389
Microsoft.Crm.Authenticati on.WindowA uthenticat ionProvide rBase.Auth enticate(H ttpApplica tion application) +723
Microsoft.Crm.Authenticati on.Authent icationSte p.Authenti cate(HttpA pplication application) +302
Microsoft.Crm.Authenticati on.Authent icationPip eline.Auth enticate(H ttpApplica tion application) +106
Microsoft.Crm.Authenticati on.Authent icationEng ine.Execut e(Object sender, EventArgs e) +1194
System.Web.SyncEventExecut ionStep.Sy stem.Web.H ttpApplica tion.IExec utionStep. Execute() +80
System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously) +171
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3618
The type initializer for 'PIDGenNativeMethods' threw an exception.
System.TypeInitializationE
Server stack trace:
at Microsoft.Crm.Admin.AdminS
at Microsoft.Crm.Admin.AdminS
at Microsoft.Crm.Tools.Admin.
at Microsoft.Crm.Tools.Admin.
at Microsoft.Crm.Tools.Admin.
at Microsoft.Crm.Tools.Admin.
at Microsoft.ManagementConsol
at Microsoft.ManagementConsol
at System.Runtime.Remoting.Me
at System.Runtime.Remoting.Me
Exception rethrown at [0]:
at Microsoft.ManagementConsol
at Microsoft.ManagementConsol
at Microsoft.ManagementConsol
at Microsoft.ManagementConsol
When accessing CRM (WEB):
Server Error in '/' Application.
--------------------------
Invalid license. PidGen.dll cannot be loaded from this path C:\Program Files\Microsoft Dynamics CRM\Server\bin\PidGen.dll
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: Microsoft.Crm.CrmException
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:
[CrmException: Invalid license. PidGen.dll cannot be loaded from this path C:\Program Files\Microsoft Dynamics CRM\Server\bin\PidGen.dll]
Microsoft.Crm.Admin.AdminS
[TypeInitializationExcepti
Microsoft.Crm.Admin.AdminS
Microsoft.Crm.Admin.AdminS
Microsoft.Crm.Admin.AdminS
Microsoft.Crm.Caching.Orga
Microsoft.Crm.Caching.Obje
Microsoft.Crm.Caching.Basi
Microsoft.Crm.Caching.Basi
Microsoft.Crm.BusinessEnti
Microsoft.Crm.Caching.User
Microsoft.Crm.Caching.Obje
Microsoft.Crm.Caching.Basi
Microsoft.Crm.Caching.Basi
Microsoft.Crm.BusinessEnti
Microsoft.Crm.BusinessEnti
Microsoft.Crm.Authenticati
Microsoft.Crm.Authenticati
Microsoft.Crm.Authenticati
Microsoft.Crm.Authenticati
Microsoft.Crm.Authenticati
System.Web.SyncEventExecut
System.Web.HttpApplication
--------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3618
ASKER
Hi,
the file exists. File version: 1.6.0.34463
Regards,
Morten
the file exists. File version: 1.6.0.34463
Regards,
Morten
Are you perhaps using a trial license that has expired?
Did Deployment Manager previously work?
Did Deployment Manager previously work?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It solved the CRM problem
"We had to disable Group Policy restrictions on theOU where the CRM Server resides"
I have the same issue, could you elaborate on the above to help resolve?
Do you mean removing/preventing any GPOs from applying to the OU in which the CRM server sits? I have the same GP applying to other CRM installations, the only different policy I have applying to this one in are to set members of local admins.
Any help appreciated.
I have the same issue, could you elaborate on the above to help resolve?
Do you mean removing/preventing any GPOs from applying to the OU in which the CRM server sits? I have the same GP applying to other CRM installations, the only different policy I have applying to this one in are to set members of local admins.
Any help appreciated.
Can you check if C:\Program Files\Microsoft Dynamics CRM\Server\bin\PidGen.dll exists?
Regards,
Chinmay.