Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2007

Tip: Looking for answers? Try searching our database.

System.Runtime.Serialization.SerializationException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cashdeskmac - 26 Nov 2007 16:21 GMT
Hi,

I am passing a couple of objects through a web service and get the error
message below when I check the event log:

System.Runtime.Serialization.SerializationException: The type
System.Web.HttpException in Assembly System.Web, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a is not marked as
serializable.

The stack trace tells me that the error is:

Client found response content type of '', but expected 'text/xml'.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) at etc., etc.

The objects I am passing through are a user-defined object and a boolean
value.  The object gets passed through the web service 1000's of times every
day but on this one method call it doesn't like it.  I have had this in the
past and it masked another problem, unfortunately it was so long ago that I
can't remember what the actual error was.  Could it be something to do with
the size of the object?

Any help would be most appreciated.
cashdeskmac - 26 Nov 2007 16:31 GMT
just to give you a bit more information, I went to IIS and browsed to the
asmx file.  It gave a list of methods available but when I tried to invoke a
couple I got a 500 server error.

I don't know if this helps you in identifying the problem.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.