Upgrade an Application from the BizTalk Server 2010 to 2013. One error

I was moving the projects from the BizTalk Server 2010 to the BizTalk Server 2013 under the Visual Studio 2012.

I have spent a good chunk of time investigating this error and decided to blog on it to save you this time.

The error happens at deployment time at this command:

BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"..\<ApplicationName>\bin\Debug\<ApplicationName>.dll" -ApplicationName:"<ApplicationName>" -Options:GacOnAdd,GacOnImport,GacOnInstall

or when I Deploy a BizTalk project from the Visual Studio 2012.

error DEPLOY: Access to the path 'C:\Users\…\AppData\Local\Temp\2\BT\PID3656\BizTalkAssembly\c871b7bbc5c2ac36b7da3592c65912d5\<ApplicationName>.dll' is denied.

this error was coupled with another error

error MSB3073: The command "BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"..\<ApplicationName>\bin\Debug\<ApplicationName>.dll" -ApplicationName:"<ApplicationName>" -Options:GacOnAdd,GacOnImport,GacOnInstall" exited with code 1. […\<ApplicationShortName>\Deployment\Deployment.btdfproj]

Do you think it is something with permissions? Access is denied, right?

Nope. Nothing was wrong with permissions.

The problem was in the AssemblyInfo.cs file which is under the Properties folder of the project. For some reason this file was not stored in the source control and was not moved to the upgraded project.

To resolve this error create this file and… That’s it.

[UPDATE] Not so easy, not so easy...

Not any AssemblyInfo.cs is working! Make sure it has a line:

[assembly: Microsoft.XLANGs.BaseTypes.BizTalkAssembly(typeof(Microsoft.BizTalk.XLANGs.BTXEngine.BTXService))]

Print | posted on Friday, July 19, 2013 3:54 PM


No comments posted yet.
Post A Comment