BIZTALK UNDEPLOY/REMOVE SYNTAX
I always have trouble understanding the official "doc" of the BTSDEPLOY
as it applies to the "REMOVE" option.
I'm documenting here for my own sanity - so I can look it up again in the future and not waste time having to test all the permuations.
The trick is that you use EITHER keyword 'Assembly=' or 'Name=", each has different parameters. In the case of 'Assembly=' you specify a fully qualified file name with .dll suffix and no version/culture/publickeytoken is needed. In the case of 'Name=' you specifyi the assembly (without the .DLL) but version/culture/publickey token is required. You can get all this info of course from the c:\Windows\Assembly (the GAC - Global Assembly Cache) [just right click, then click properties on the assembly].
BTSDEPLOY REMOVE SERVER="(LOCAL)" DATABASE="BiztalkMgmtDb" ASSEMBLY="R:\Visual Studio Projects\TestCorrelation\bin\Development\TestCorrelation.dll"
BTSDEPLOY REMOVE SERVER="(LOCAL)" DATABASE="BiztalkMgmtDb" Name="CorrelationTest1" Version=1.0.0.0 Culture=neutral PublicKeyToken=7675163010ccf412
Also remember that "Server=" is the name of the SQL server where you BiztalkMgmtDb resides which is not necessarily the same as your Biztalk Server. You will have to unenlist your orchestrations before undeploying them. Also your undeploys must be sequenced. For instance, undeploy orchestrations first then schemas. If an assembly references another assembly, undeploy the assembly that references the other first. Likewise, schemas often build upon other schemas, so you have to undeploy the top-level schema first.


<< Home