473,320 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Obscure serialization exception -- why?

I've encountered the following exception when deploying my solution to a load
balanced environment:

Unable to find assembly 'App_WebReferences.wayyy8_t, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Runtime.Serialization.SerializationExceptio n:
Unable to find assembly 'App_WebReferences.wayyy8_t, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null'.

Here's an overview:
-- ASP.NET 2.0 web application
-- ASP.NET 2.0 web service (no WSE)
-- Proxy generated by wsdl.exe through IDE
-- Web app uses SQL Server session, matching machine keys in web.config files
-- Physical path to web application matches across all instances
-- Round robin load balancing of web site and web service
-- Web site communicates with web service through load balancer, sending and
receiving a complex type defined in the web service application
-- Web site shoves the resulting instance into SQL Server session
-- Exception is thrown trying to access session item through a lazy property
on PostBack
-- Note that this is a SerializationException, not NullReference or
InvalidCast.

Given that the error is a SerializationException, unable to find assembly,
and that the exception appears to be happening when attempting to use a type
that has been defined in the web service application
(App_WebReferences.xxxx), I believe removing that type from session would
eliminate the exception. But I don't want to do a total overhaul of the
application and service API. So I've refactored this type out into a common
assembly that both the web site and web service use, and I've developed a
couple of conversion methods to convert between the common type and the type
created by wsdl.exe. I have not had the opportunity to see if this workaround
will be successful, but I feel pretty confident that it will be.

Just in case, and to further my own understanding, can someone explain to me
what is causing the SerializationException?
Aug 1 '06 #1
0 2942

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

Similar topics

0
by: Stephan Moeller | last post by:
Hi NG, I serialize the following class over .net remoting: using System; using System.Collections; namespace JobServerLib {
0
by: HakonB | last post by:
Hi all I get an exception when trying to deserialize a simple configuration file using XML Serialization. The very long stacktrace can be seen at the bottom of this message. I've see other...
1
by: andrewcw | last post by:
There is an error in XML document (1, 2). I used XML spy to create the XML and XSD. When I asked to have the XML validated it said it was OK. I used the .net SDK to generate the class. I have...
4
by: ron | last post by:
Hi, I have class object that i serialize using the System.Xml.Serialization class. Intermittently the object is not getting serialized correctly, using System.Xml.Serialization classes....
5
by: francois | last post by:
First of all I would to to apologize for resending this post again but I feel like my last post as been spoiled Here I go for my problem: Hi, I have a webservice that I am using and I would...
3
by: Steve | last post by:
I've been following a couple remoting tutorials on the web, they are all pretty much the same. I've got my different applications built(client, server and remote object (dll)) The client is...
2
by: Maximus | last post by:
Hi Everyone, I was using Inprocess session objects, but incase of aspnet process crashes the session objects were lost as a result I decided to shift to out of porocess session objects. For this...
0
by: CJ Taylor | last post by:
hey everyone, thought I would ask this here because the web service groups seems pretty light on conversation. I'm buliding a web service, but keep getting this error. I understand the error,...
8
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.