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

Topics: Server Deployment
Jul 31, 2013 at 8:02 PM
Trying to Deploy Biztalk Solution via Tools/BTDF to my local BTS on my VM:
...DeploySchemas:
BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"..\SCHEMAS\bin\Debug\Aoc.Dx.Get.Services.SCHEMAS.dll" -ApplicationName:"Aoc.Dx.Get.Services" -Options:GacOnAdd,GacOnImport,GacOnInstall
Microsoft (R) BizTalk Application Deployment Utility Version 3.9.469.0
Copyright (c) 2010 Microsoft Corporation. All rights reserved.

Information: Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="Aoc.Dx.Get.Services.Schemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=acb921476099768e") to application "Aoc.Dx.Get.Services"...
Serialized BizTalk assembly "Aoc.Dx.Get.Services.Schemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=acb921476099768e" from "..\SCHEMAS\bin\Debug\Aoc.Dx.Get.Services.SCHEMAS.dll".
Information: Validating resources (count=1)...
  • Validating resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="Aoc.Dx.Get.Services.Schemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=acb921476099768e")...
    Information: Performing change requests...
    Information: Calling BeginTypeChangeRequest for all selected resource types...
    PerformingBeginChangeRequest
    Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="Aoc.Dx.Get.Services.Schemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=acb921476099768e") to store.
    Information: * Performing change request on type "System.BizTalk:BizTalkAssembly" (count=1)...
    Information: Deploy server="WIN-GTIF1P1OPLB" database="BizTalkMgmtDb" assembly="C:\Users\BizTalk2010\AppData\Local\Temp\BT\PID4436\BizTalkAssembly\bc4df8bfd399a2b38b4b2c69ed38f5a5\Aoc.Dx.Get.Services.SCHEMAS.dll"
    EXEC : error : [C:\P4_Workspaces\ESBDataExchange\Person\Aoc.Dx.Get.Services\Deployment\Deployment.btdfproj]
    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    EXEC : error : at Microsoft.BizTalk.Gac.Fusion.IAssemblyCache.InstallAssembly(AssemblyCacheInstallFlag flags, String manifestFilePath, IntPtr referenceData) [C:\P4_Workspaces\ESBDataExchange\Person\Aoc.Dx.Get.Services\Deployment\Deployment.btdfproj]
    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)
    EXEC : error : Unspecified exception: " [C:\P4_Workspaces\ESBDataExchange\Person\Aoc.Dx.Get.Services\Deployment\Deployment.btdfproj]
    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
Coordinator
Jul 31, 2013 at 8:56 PM
You have to run Visual Studio as Administrator.