ObjectDisposedException

H

Harry

Hello,
My client program is making web method calls into a web
service layer which in turn call Visual SourceSafe's COM
interface. The above mentioned exception will occurre
whenever I make consecutive calls after I open the
SourceSafe's database. For example, making check out item
call after a successful add item call. The stack trace is
listed below.

Additional information: Cannot access a closed file.


Unhandled Exception: System.ObjectDisposedException:
Cannot access a closed file.
at System.IO.__Error.FileNotOpen()
at System.IO.FileStream.Read(Byte[] array, Int32
offset, Int32 count)
at Microsoft.Web.Services.StreamHelper.BinaryCopy
(Stream from, Stream to, Int32 bufferSize)
at Microsoft.Web.Services.StreamHelper.BinaryCopy
(Stream from, Stream to)
at Microsoft.Web.Services.OutputStream.Close()
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
(String methodName, Object[] parameters)
at DimeClient.rnv_sandeep_2k2.cvccwsWse.CheckOutItem
(String ItemToCheckOut, String CheckOutFileName, String&
Comment, Int32 Flags) in c:\documents and
settings\t19bgtx.nyl-corp\my documents\visual studio
projects\dimeclient\web references\rnv-sandeep-2k2
\reference.cs:line 225
at com.nyl.rnv.rwb.vcc.Form1.mnuCheckOut_Click(Object
sender, EventArgs e) in c:\documents and
settings\t19bgtx.nyl-corp\my documents\visual studio
projects\dimeclient\form1.cs:line 469
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc
(Message& m)
at System.Windows.Forms.ContainerControl.WndProc
(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage
(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc
(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback
(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW
(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.
UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop
(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.ThreadContext.RunMessageLoopInner
(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop
(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at com.nyl.rnv.rwb.vcc.Form1.Main() in c:\documents and
settings\t19bgtx.nyl-corp\my documents\visual studio
projects\dimeclient\form1.cs:line 325
The program '[2172] DimeClient.exe' has exited with code 0
(0x0).

Any suggestion? Thanks.

Harry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top