473,750 Members | 2,209 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?

Any help would be most appreciated.
Nov 26 '07 #1
1 2737
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.
Nov 26 '07 #2

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

Similar topics

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.
4
7814
by: Andreas Huber | last post by:
Hello there I need to serialize/deserialize some pretty simple data structures (no inheritance, few has relationships, ~20 classes) in three formats. One is XML (structure is not important as long as it's human-readable and modifiable), and two are proprietary binary formats. For XML I'll use the SoapFormatter, no sweat. For the two other formats I would like to implement my own formatters. Problem is the docs on implementing your own...
0
1346
by: Skip | last post by:
Hi, I get the following exception thrown when I try to run my code: "An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed."
3
1789
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...
1
1833
by: netsql | last post by:
?? Seralize a file and read it right back gives me this. Google was no help. hints? tia, ..V
0
755
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. The same code works fine in a standalone app. I have inspected System.Runtime.Remoting.dll with ildasm, and I can see the ....Channels.Http namespace there. I verified that the virtual directory is configured to use v2.0.50727 (the error message...
0
1239
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;
0
1179
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.
2
1411
by: Bill Fuller | last post by:
I have a dropdown combo box where the DataSource is bound to a CSLA BO returned from a WCF call. The dropdown list looks fine, but selecting an item returns "SYSTEM.RUNTIME.SERIALIZATION.EXTENSIONDATAOBJECT" (which seems to be related to WCF somehow) and I am not sure how to debug this. Does anyone know what might cause such a wierd behavior and how to fix it?
0
8999
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
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
9394
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...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6803
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
4712
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
4885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2223
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.