none
"Access denied" when deploying app from Tutorial 1

    Question

  • I am attempting to go through the BizTalk tutorials. I am on the final steps in tutorial 1, but getting an "access denied" error when attempting to deploy the solution.

    Errors are as follows:

    Error 1 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))  0 0 
    Error 2 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)  0 0 
    Error 3 Unspecified exception: "
    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"

    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))  0 0 
    Error 4 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))  0 0 
    Error 5 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))  0 0 
    Error 7 Assembly "EAIOrchestrations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8d769bf148885f71" references the following assemblies that must be deployed before deploying this assembly:
    Assembly "EAISchemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8d769bf148885f71"  0 0 
    Error 8 Deploy operation failed.
    ""
    Assembly "EAIOrchestrations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8d769bf148885f71" references the following assemblies that must be deployed before deploying this assembly:
    Assembly "EAISchemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8d769bf148885f71"  0 0 
    Error 9 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)  0 0 
    Error 10 Deploy operation failed.
    ""
    Assembly "EAIOrchestrations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8d769bf148885f71" references the following assemblies that must be deployed before deploying this assembly:
    Assembly "EAISchemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8d769bf148885f71"  0 0 
    Error 11 Failed to add resource(s). Change requests failed for some resources. BizTalkAssemblyResourceManager failed to complete end type change request. Deploy operation failed.
    ""
    Assembly "EAIOrchestrations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8d769bf148885f71" references the following assemblies that must be deployed before deploying this assembly:
    Assembly "EAISchemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8d769bf148885f71"  0 0 

    Friday, July 10, 2009 8:48 PM

Answers

  • You have dependencies to the EAIOrchestrations assembly and the EAISchemas assembly before you deploy your solution. Open the GAC (C:\windows\assembly folder) and drag your EAISchemas assembly which is in the bin folder of your project and then the EAIOrchestrations assembly. Then redeploy your solution. Also make sure in the Project Properties you have a Strong Naming Key file associated with your project. Set a good name for your project like Tutorial 1 in the Application Name property and Restart Host Instances property to True.

    After this deploy your project and just in case restart your host instances.
    Abdul Rafay http://abdulrafaysbiztalk.wordpress.com/ Please mark this answer if it helps
    • Marked as answer by Bill2010 Sunday, July 12, 2009 3:28 PM
    Saturday, July 11, 2009 7:10 AM

All replies

  • You have dependencies to the EAIOrchestrations assembly and the EAISchemas assembly before you deploy your solution. Open the GAC (C:\windows\assembly folder) and drag your EAISchemas assembly which is in the bin folder of your project and then the EAIOrchestrations assembly. Then redeploy your solution. Also make sure in the Project Properties you have a Strong Naming Key file associated with your project. Set a good name for your project like Tutorial 1 in the Application Name property and Restart Host Instances property to True.

    After this deploy your project and just in case restart your host instances.
    Abdul Rafay http://abdulrafaysbiztalk.wordpress.com/ Please mark this answer if it helps
    • Marked as answer by Bill2010 Sunday, July 12, 2009 3:28 PM
    Saturday, July 11, 2009 7:10 AM

  • The Visual Studio 2010 BizTalk Deploy capability will copy assemblies as needed.  There is no reason to do the steps manually.

    Here is the easy, proper solution:

    Create BTSAdmin account, as member of BizTalk Server Administrators group. 

    Log on using BTSAdmin account.

    Run VS as administrator.  Right click on VS shortcut and choose "Run as administrator".
     
    Nothing else is necessary.
     
    She says this clearly in the video.

    • Proposed as answer by DaveMac1960 Tuesday, November 19, 2013 2:24 PM
    Sunday, September 11, 2011 4:14 PM