D
Doug Sherzan
After I upload an image to my webservice using a dime attachment I receive
ObjectDisposedException on any subsequent calls to any method on the web
service. I'm not disposing of any objects and I can download a dime
attatchment from the web service and still continue to call methods. The
exception is always thrown from the Reference.vb method. Any ideas would be
greatly Appreciated.
I'm using VS.Net 2003 (Framework 1.1) & WSE 1.0 SP1
Code:
strRet = MySvc.GetTestMsg() 'This method works fine
Dim m As New IO.MemoryStream
Me.PictureBox1.Image.Save(m, System.Drawing.Imaging.ImageFormat.Jpeg)
Dim dm As New Microsoft.Web.Services.Dime.DimeAttachment("image/jpg",
Microsoft.Web.Services.Dime.TypeFormatEnum.MediaType, m)
Me.MySvc.RequestSoapContext.Attachments.Add(dm)
Me.MySvc.UploadImage() 'This method works fine
strRet = MySvc.GetTestMsg() 'The method throws a ObjectDisposedException
exception
ObjectDisposedException on any subsequent calls to any method on the web
service. I'm not disposing of any objects and I can download a dime
attatchment from the web service and still continue to call methods. The
exception is always thrown from the Reference.vb method. Any ideas would be
greatly Appreciated.
I'm using VS.Net 2003 (Framework 1.1) & WSE 1.0 SP1
Code:
strRet = MySvc.GetTestMsg() 'This method works fine
Dim m As New IO.MemoryStream
Me.PictureBox1.Image.Save(m, System.Drawing.Imaging.ImageFormat.Jpeg)
Dim dm As New Microsoft.Web.Services.Dime.DimeAttachment("image/jpg",
Microsoft.Web.Services.Dime.TypeFormatEnum.MediaType, m)
Me.MySvc.RequestSoapContext.Attachments.Add(dm)
Me.MySvc.UploadImage() 'This method works fine
strRet = MySvc.GetTestMsg() 'The method throws a ObjectDisposedException
exception