473,766 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Runtime. Serialization.S erializationExc eption

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.S erializationExc eption: The type
System.Web.Http Exception in Assembly System.Web, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a 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.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall) at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.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?

I have browsed to the asmx page which shows a complete list of methods
available, and clicking the Invoke button threw up a 500 internal server
error. I don't know if that helps to identify the problem.

Any help would be most appreciated.

Nov 26 '07 #1
0 1182

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
813
by: Chris Aitchison | last post by:
Hello, I am attempting to have a class that I have written serialize so that it can be both passed as a parameter or return value for a webservice, and also be serialized to disk using the XmlSerializer. When this class is decalred as a return value for a WebMethod in an XML WebService I receive the following exception: System.IO.FileNotFoundException: File or assembly name rexz5r1o.dll, or one
0
613
by: Carsten | last post by:
Hi, I have a problem with instantiating a Web service. When the constructor for the proxy is called a SEHException is thrown. The call stack is shown below: System.Runtime.InteropServices.SEHException: External component has thrown an exception.
0
1538
by: Dmitry Shuklin | last post by:
I make __value type with some private fields. I want to implement System.ISerializable for custom serialization public __value struct NativeHandle : public System::Runtime::Serialization::ISerializable { void ISerializable::GetObjectData(System::Runtime::Serialization::SerializationInfo*
3
1793
by: Really stuck | last post by:
Hello, I'm getting the following error now with my aplication, but only when I run it ocally on my machine: System.Runtime.Serialization.SerializationException: Cannot find member name System.Data.SqlClient.SqlError. If I push the same build to a production server it runs without issue. This began happening suddenly and was working without issue locally on my machine. I've made no configuration changes to the machine except install windows...
6
2294
by: mookid8000 | last post by:
Hi group! Is it possible to scan an assembly *which has NOT been added as a reference* for types, and dynamically create instances of the loaded types? I have a program, MyProgram.exe, which at runtime uses Asseembly.LoadFile(...) to load an assembly, MyAssembly.dll. When MyAssembly.dll is added as a reference to the MyProgram project, serialization and de-serialization works lige a charm.
0
1241
by: Simon Hart | last post by:
Hi, I have the following code which is miss-behaving at one site: public class HMRHost { private int _pid;
3
1506
by: Thomee Wright | last post by:
I'm developing a client/server application (in VS2005 managed C++) which makes use of .Net remoting. A simplified solution which demonstrates the problem I'm having can be found at: http://www.nmt.edu/~elessar/RemotingTest.tar.bz2 http://www.nmt.edu/~elessar/RemotingTest.zip Uncommenting Server.cpp line 67 causes the problem. Removing it fixes the problem. The server listens on port 1357, and the client connects to localhost:1357.
8
12569
by: =?Utf-8?B?UGlnZ3k=?= | last post by:
Hi to all, I am getting this System.OutOfMemoryException calling the Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(<stream>,<Obj>) method. The type of <streamis IO.MemoryStream =====Exception: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
2
4502
by: =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= | last post by:
Hi, I am wondering why the .NET Framework is quite different from Win32 API when it comes to displaying system modal message boxes. Consider the four following types of system modal message boxes (please see associated source code below): 1) Win32 API with context ("btnWin32WithContext_Click") 2) .NET Framework with context ("btnFrameworkWithContext_Click") 3) Win32 API withOUT context ("btnWin32WithOUTContext_Click")
1
2742
by: =?Utf-8?B?Y2FzaGRlc2ttYWM=?= | last post by:
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.
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10009
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.