Hi,
I have a webservice, which works fine. I am working in windows xp. I hosted the webservice by integrating with .mpp file using COM component and it works successfully.
Now I uploaded into the server, its windows 2003 server. When I run the webservice it executes perfectly for the first time, whereas it does not execute from second time onwards. But the same webservice when worked from visual studio 2005 inside windows server 2003, runs successfully.
I get the error as below
System.Runtime. InteropServices .COMException: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJ ECTED))
at System.RuntimeT ype.ForwardCall ToInvokeMember( String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Microsoft.Offic e.Interop.MSPro ject.Applicatio nClass.Quit(PjS aveType SaveChanges)
at Service.CheckPr oject(String projectID) in C:\vcclient\App _Code\Service.v b:line 41
Line 41, consists of the following code
gobjProjectInst ance1 = New Microsoft.Offic e.Interop.MSPro ject.Applicatio n
gobjProjectInst ance.FileOpen(F ileName)
But I repeat that it works fine while running in visual studio
Can anyone help me out please.
Regards
cmrhema
I have a webservice, which works fine. I am working in windows xp. I hosted the webservice by integrating with .mpp file using COM component and it works successfully.
Now I uploaded into the server, its windows 2003 server. When I run the webservice it executes perfectly for the first time, whereas it does not execute from second time onwards. But the same webservice when worked from visual studio 2005 inside windows server 2003, runs successfully.
I get the error as below
System.Runtime. InteropServices .COMException: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJ ECTED))
at System.RuntimeT ype.ForwardCall ToInvokeMember( String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Microsoft.Offic e.Interop.MSPro ject.Applicatio nClass.Quit(PjS aveType SaveChanges)
at Service.CheckPr oject(String projectID) in C:\vcclient\App _Code\Service.v b:line 41
Line 41, consists of the following code
gobjProjectInst ance1 = New Microsoft.Offic e.Interop.MSPro ject.Applicatio n
gobjProjectInst ance.FileOpen(F ileName)
But I repeat that it works fine while running in visual studio
Can anyone help me out please.
Regards
cmrhema
Comment