Error deploying BizTalk Application - Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

ScArcher2 picture ScArcher2 · Aug 11, 2010 · Viewed 9.9k times · Source

Any idea why I would be getting this Access Denied Exception?

I'm deploying a very basic BizTalk 2009 project from Visual Studio.

error DEPLOY:
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

error DEPLOY: at Microsoft.BizTalk.Gac.Fusion.IAssemblyCache.InstallAssembly(AssemblyCacheInstallFlag flags, String manifestFilePath, FusionInstallReference referenceData) at Microsoft.BizTalk.Gac.Gac.InstallAssembly(String assemblyPathname, Boolean force)
at Microsoft.BizTalk.Deployment.BizTalkAssembly.GacInstall(String assemblyLocation)
at Microsoft.BizTalk.Deployment.BizTalkAssembly.PrivateDeploy(String server, String database, String assemblyPathname, String applicationName)
at Microsoft.BizTalk.Deployment.BizTalkAssembly.Deploy(Boolean redeploy, String server, String database, String assemblyPathname, String group, String applicationName, ApplicationLog log)

error DEPLOY: Unspecified exception: "
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

error DEPLOY: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

: PerformingEndChangeRequestsWithRollBack

error DEPLOY: Failed to add resource(s). Change requests failed for some resources. BizTalkAssemblyResourceManager failed to complete end type change request. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Answer

AllenG picture AllenG · Aug 11, 2010

Use Run As -> Administrator for Visual Studio. You must have Admin privileges to deploy BizTalk assemblies (since they deploy to the GAC).