Discussion:
WMI events in windows server SP2 2003 x64
(too old to reply)
biztalk
2009-07-30 12:34:01 UTC
Permalink
We have created one .Net application to catch biztalk suspension events.it
was running fine in 2003 32 bit environement..but when we change the os
version to windows 2003 sp2 x64 is started giving some problem. foe biztalk
we have something called MsBTS_SuspendedEvent..now the .NET applicaiton is
able to catch this events..but when it trying to call once more event and
trying to invoke one of the method of MSBTS_MessageInstance..it is throwing
"System.ArgumentException: The parameter is incorrect.
at
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
errorCode, IntPtr errorInfo)
at System.Management.ManagementObject.InvokeMethod(String methodName,
ManagementBaseObject inParameters, InvokeMethodOptions options)
at System.Management.ManagementObject.InvokeMethod(String methodName,
Object[] args)
at
CIT.ESS.BizTalk.BizTalkMonitorTool.BizTalkMonitorTool.MyEventHandler(Object
sender, EventArrivedEventArgs e)" error...

and the weird thing is we are not getting this error all time..the
application will work well for some time and then throw error some time..it
is not consistent..


Please help me to solve this issue.....
We are using Biztalk server 2006 R2, .NET 2.0

thanks,
--
Thanks and Regards,
Pandurang
urkec
2009-07-31 11:19:01 UTC
Permalink
See this link fof 32/65 bit WMI issues:

http://msdn.microsoft.com/en-us/library/aa390789(VS.85).aspx
--
urkec

My blog:
http://theadminblog.blogspot.com/

My CodeProject articles:
http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=4210975
Post by biztalk
We have created one .Net application to catch biztalk suspension events.it
was running fine in 2003 32 bit environement..but when we change the os
version to windows 2003 sp2 x64 is started giving some problem. foe biztalk
we have something called MsBTS_SuspendedEvent..now the .NET applicaiton is
able to catch this events..but when it trying to call once more event and
trying to invoke one of the method of MSBTS_MessageInstance..it is throwing
"System.ArgumentException: The parameter is incorrect.
at
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
errorCode, IntPtr errorInfo)
at System.Management.ManagementObject.InvokeMethod(String methodName,
ManagementBaseObject inParameters, InvokeMethodOptions options)
at System.Management.ManagementObject.InvokeMethod(String methodName,
Object[] args)
at
CIT.ESS.BizTalk.BizTalkMonitorTool.BizTalkMonitorTool.MyEventHandler(Object
sender, EventArrivedEventArgs e)" error...
and the weird thing is we are not getting this error all time..the
application will work well for some time and then throw error some time..it
is not consistent..
Please help me to solve this issue.....
We are using Biztalk server 2006 R2, .NET 2.0
thanks,
--
Thanks and Regards,
Pandurang
biztalk
2009-08-03 13:05:01 UTC
Permalink
hi urkec,
Thanks for reply..
one thing i observe is, as we are using multiple host application are not
ablet to fetch the required details.
We have setup the environment such a way that...
we have once host for receving the data (receive adapter), one for
processing (orchestration), one for sending (send adapter)...
we get this error only when we used different host at different part....
if we used same host we are not getting any error...

how we can aviod this error in multiple host environment.....
--
Thanks and Regards,
Pandurang
Post by urkec
http://msdn.microsoft.com/en-us/library/aa390789(VS.85).aspx
--
urkec
http://theadminblog.blogspot.com/
http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=4210975
Post by biztalk
We have created one .Net application to catch biztalk suspension events.it
was running fine in 2003 32 bit environement..but when we change the os
version to windows 2003 sp2 x64 is started giving some problem. foe biztalk
we have something called MsBTS_SuspendedEvent..now the .NET applicaiton is
able to catch this events..but when it trying to call once more event and
trying to invoke one of the method of MSBTS_MessageInstance..it is throwing
"System.ArgumentException: The parameter is incorrect.
at
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
errorCode, IntPtr errorInfo)
at System.Management.ManagementObject.InvokeMethod(String methodName,
ManagementBaseObject inParameters, InvokeMethodOptions options)
at System.Management.ManagementObject.InvokeMethod(String methodName,
Object[] args)
at
CIT.ESS.BizTalk.BizTalkMonitorTool.BizTalkMonitorTool.MyEventHandler(Object
sender, EventArrivedEventArgs e)" error...
and the weird thing is we are not getting this error all time..the
application will work well for some time and then throw error some time..it
is not consistent..
Please help me to solve this issue.....
We are using Biztalk server 2006 R2, .NET 2.0
thanks,
--
Thanks and Regards,
Pandurang
Loading...