Re: Need help for deserialize problem.
From: Eric Cherng (ericch1_at_remove_the_dot-hotmai.l.com)
Date: 07/07/04
- Next message: Ken Cox [Microsoft MVP]: "Re: DotNet WS from VB6 with MSXML2.XMLHTTP"
- Previous message: Eric Cherng: "Re: Asp.Net and Webservice using Impersonation/App Pools"
- In reply to: Byungchul Lee: "Need help for deserialize problem."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Jul 2004 15:36:47 -0700
As stated in the MSDN Library:
"Execution engine errors are fatal errors that should never occur. Such
errors occur mainly when the execution engine has been corrupted or data is
missing."
I would suggest you check the Message and the StackTrace properties of the
exception class to see if this provides any hints. Also check your event
log to see if there are any hints as to this error.
Finally try running your web service in IIS to see if the same problem
exists. If not, then you know the problem has something to do with your
"small web-server component".
Eric
"Byungchul Lee" <hotblade@hitel.net> wrote in message
news:OFGvOq9YEHA.2500@TK2MSFTNGP09.phx.gbl...
> Hello.
>
> I'm making a small web service program (with a small web-server component,
> without ASP.Net).
> I made a server and a client and client calls the service with invoke
> method.
>
> But I have a problem with sending string array to a server. When server
try
> to deserialize it, it makes weird
> exception(system.ExecutionEngineException).
>
> The server has a few more another functions and those works well.
> How can I solve this problem? Any kind of help will be greatly
appreciated..
>
> Here are some codes about the client and the server.
>
> client
> ===========
>
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://something
> /BulkData", RequestNamespace:="http://something",
> ResponseNamespace:="http://something",
> Use:=System.Web.Services.Description.SoapBindingUse.Literal,
> ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>
_
> Public Function BulkData(ByVal Name As String, ByVal ContentInfo As
> String()) As Integer
> Dim results() As Object = Me.Invoke("BulkData", New Object()
{Name,
> ContentInfo})
> Return CType(results(0), Integer)
> End Function
>
> Server
> ===========
> Dim reqMessage As New SoapMessage
> Dim msgFormatter As New SoapFormatter
> .
> .
> parameterArray(0) = "Name"
> parameterArray(1) = "ContentInfo"
> parameterTypes(0) = GetType(String)
> parameterTypes(1) = GetType(String())
> .
> .
> reqMessage.ParamNames = parameterArray
> reqMessage.ParamTypes = parameterTypes
>
> msgFormatter.TopObject = reqMessage
> reqMessage = msgFormatter.Deserialize(reqStream.BaseStream) ' Server hangs
> here
>
> Message
> ===========
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
> <BulkData xmlns="http://something">
> <Name>Device1</Name>
> <ContentInfo>
> <string>0,20040601150556,c:\files\music0.mp3,m</string>
> <string>1,20040601150556,c:\files\music1.mp3,m</string>
> <string>2,20040601150556,c:\files\music2.mp3,m</string>
> </ContentInfo>
> </BulkData></soap:Body></soap:Envelope>
>
>
>
>
- Next message: Ken Cox [Microsoft MVP]: "Re: DotNet WS from VB6 with MSXML2.XMLHTTP"
- Previous message: Eric Cherng: "Re: Asp.Net and Webservice using Impersonation/App Pools"
- In reply to: Byungchul Lee: "Need help for deserialize problem."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|