Re: Need help for deserialize problem.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Eric Cherng (ericch1_at_remove_the_dot-hotmai.l.com)
Date: 07/07/04


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>
>
>
>
>



Relevant Pages

  • Each client gets the same port number
    ... This class creates a server socket that will ... For each new connection request from client ... */ private String calculate{String result = null; ...
    (comp.lang.java.help)
  • Re: pygame and socket.recv
    ... player, and for the communication, I am sending a pickle string across ... The client sends a dictionary to the server. ... time.sleep to keep the frame rate at 40 frames per second. ...
    (comp.lang.python)
  • Re: Applet Consideration
    ... > the client applet to connect to the server. ... everything is sent as String. ... >> I made it so the client has absolutely no knowledge that the db exists. ... Each thread must be initialized by a login. ...
    (comp.lang.java.databases)
  • Re: Applet Consideration
    ... the client applet to connect to the server. ... My computer(the server) is behind a router ... > i.e. boolean login(String domain, String user, String pass) ...
    (comp.lang.java.databases)
  • Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
    ... Not to IIS. ... A client uses IE to talk with a server. ... String) As String ...
    (microsoft.public.dotnet.framework.aspnet)