Biztalk dll in use error after deploying using WMI
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Biztalk dll in use error after deploying using WMI




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Biztalk dll in use error after deploying using WMI  
suraj


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-31-05 07: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









[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:30 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register