BizTalk Server General - Biztalk dll in use error after deploying using WMI

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > January 2005 > Biztalk dll in use error after deploying using WMI





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Biztalk dll in use error after deploying using WMI
suraj

2005-01-31, 2:54 am

Hi all,
I am trying to deploy a Biztalk assembly using WMI.But soon after i am
done with my deployment if i try to rebuild my BizTalk solution i get
"Access denied. dll in use error"
My code runs as a COM+ service and the only way i can rewrite my biztalk dll
is by restarting my COM+ service.
Did anyone get this error before throw insight


My simple code looks like as shown below:
ManagementClass Instance =null;
ManagementBaseObject inParams =null;
ManagementBaseObject outParams =null;
try
{
Instance = new
ManagementClass(@\\testmachine\ROOT\Micr
osoftBizTalkServer:MSBTS_DeploymentS
ervice);
Instance.Get();
inParams = Instance.GetMethodParameters("Deploy");
inParams["Server"] = "testmachine";
inParams["Database"] = "BizTalkMgmtDB";
inParams["Assembly"] = assemblyPath; { Absolute path to the dll
is given here}
inParams["Install"] = true;

outParams = Instance.InvokeMethod("Deploy",inParams,null);
return true;
}
catch(Exception e)
{
throw e;
}
finally
{
if(Instance !=null)
{
Instance.Dispose();
Instance=null;
}
if(inParams !=null)
{
inParams.Dispose();
inParams=null;
}
if(outParams !=null)
{
outParams.Dispose();
outParams=null;
}
}
Regards




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com