473,386 Members | 1,908 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,386 software developers and data experts.

Serialization fails when implicit conversion method included

Hi all,

I have a healthy class defined that happily serializes and deserializes from
the underlying XML file.

The problem I hit is that, as soon as I add an implicit conversion in any of
the classes (I'm converting from my class into OleDbParameter), the
deserialization fails. The following is the error displayed when the code
fails during ASPX (C#) processing:

File or assembly name bwkeldu1.dll, or one of its dependencies, was not
found.
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.IO.FileNotFoundException: File or assembly name
bwkeldu1.dll, or one of its dependencies, was not found.

Source Error:
Line 1119: {
Line 1120: System.IO.FileStream fs = new System.IO.FileStream(fileName,
System.IO.FileMode.Open, System.IO.FileAccess.Read);
Line 1121: System.Xml.Serialization.XmlSerializer serializer = new
System.Xml.Serialization.XmlSerializer(typeof(Opti ons));
Line 1122: returnValue = ((Options)(serializer.Deserialize(fs)));
Line 1123: returnValue._fileName = fileName;
Source File: e:\my projects\visual studio
projects\ncr\ncr.backoffice.v2\options.cs Line: 1121

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'bwkeldu1.dll' could not be loaded.
=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\RMLAPTOP\ASPNET\LOCALS~1\Temp\bwkeldu1 .dll
LOG: Appbase = file:///d:/inetpub/wwwroot/NCR
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/RMLAPTOP/ASPNET/LOCALS~1/Temp/bwkeldu1.dll.

Stack Trace:
[FileNotFoundException: File or assembly name bwkeldu1.dll, or one of its
dependencies, was not found.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound,
Assembly locationHint, StackCrawlMark& stackMark) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean
stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) +307
System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity) +21
System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() +67
System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() +0
System.Xml.Serialization.Compiler.Compile() +409
System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) +1259
System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultNamespace) +316
System.Xml.Serialization.XmlSerializer..ctor(Type type) +27
NCR.BackOffice.Options.Open(String fileName) in e:\my projects\visual
studio projects\ncr\ncr.backoffice.v2\options.cs:1121
NCR.BackOffice.Settings.get_Options() in e:\my projects\visual studio
projects\ncr\ncr.backoffice.v2\settings.cs:159
NCR.BackOffice.UI.INavigator.PopulateNavigator(Pag e Page, UltraWebTree
uwt, Settings settings) in e:\my projects\visual studio
projects\ncr\ncr.backoffice.v2\ui\inavigator.cs:18
NCR.Common.Navigation.UWT.Page_Load(Object sender, EventArgs e) in
d:\inetpub\wwwroot\ncr\common\navigation\uwt.aspx. cs:59
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Nov 17 '05 #1
2 2490
The module currently includes the following 'using' statements:

using System;
using System.Xml;
using System.Xml.Serialization;
using System.Reflection;
"Robert Magnusson" wrote:
Hi all,

I have a healthy class defined that happily serializes and deserializes from
the underlying XML file.

The problem I hit is that, as soon as I add an implicit conversion in any of
the classes (I'm converting from my class into OleDbParameter), the
deserialization fails. The following is the error displayed when the code
fails during ASPX (C#) processing:

File or assembly name bwkeldu1.dll, or one of its dependencies, was not
found.
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.IO.FileNotFoundException: File or assembly name
bwkeldu1.dll, or one of its dependencies, was not found.

Source Error:
Line 1119: {
Line 1120: System.IO.FileStream fs = new System.IO.FileStream(fileName,
System.IO.FileMode.Open, System.IO.FileAccess.Read);
Line 1121: System.Xml.Serialization.XmlSerializer serializer = new
System.Xml.Serialization.XmlSerializer(typeof(Opti ons));
Line 1122: returnValue = ((Options)(serializer.Deserialize(fs)));
Line 1123: returnValue._fileName = fileName;
Source File: e:\my projects\visual studio
projects\ncr\ncr.backoffice.v2\options.cs Line: 1121

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'bwkeldu1.dll' could not be loaded.
=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\RMLAPTOP\ASPNET\LOCALS~1\Temp\bwkeldu1 .dll
LOG: Appbase = file:///d:/inetpub/wwwroot/NCR
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/RMLAPTOP/ASPNET/LOCALS~1/Temp/bwkeldu1.dll.

Stack Trace:
[FileNotFoundException: File or assembly name bwkeldu1.dll, or one of its
dependencies, was not found.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound,
Assembly locationHint, StackCrawlMark& stackMark) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean
stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) +307
System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity) +21
System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() +67
System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() +0
System.Xml.Serialization.Compiler.Compile() +409
System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) +1259
System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultNamespace) +316
System.Xml.Serialization.XmlSerializer..ctor(Type type) +27
NCR.BackOffice.Options.Open(String fileName) in e:\my projects\visual
studio projects\ncr\ncr.backoffice.v2\options.cs:1121
NCR.BackOffice.Settings.get_Options() in e:\my projects\visual studio
projects\ncr\ncr.backoffice.v2\settings.cs:159
NCR.BackOffice.UI.INavigator.PopulateNavigator(Pag e Page, UltraWebTree
uwt, Settings settings) in e:\my projects\visual studio
projects\ncr\ncr.backoffice.v2\ui\inavigator.cs:18
NCR.Common.Navigation.UWT.Page_Load(Object sender, EventArgs e) in
d:\inetpub\wwwroot\ncr\common\navigation\uwt.aspx. cs:59
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

Nov 17 '05 #2
Is anyone able to help with the below? I can include more information if
required...

"Robert Magnusson" wrote:
Hi all,

I have a healthy class defined that happily serializes and deserializes from
the underlying XML file.

The problem I hit is that, as soon as I add an implicit conversion in any of
the classes (I'm converting from my class into OleDbParameter), the
deserialization fails. The following is the error displayed when the code
fails during ASPX (C#) processing:

File or assembly name bwkeldu1.dll, or one of its dependencies, was not
found.
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.IO.FileNotFoundException: File or assembly name
bwkeldu1.dll, or one of its dependencies, was not found.

Source Error:
Line 1119: {
Line 1120: System.IO.FileStream fs = new System.IO.FileStream(fileName,
System.IO.FileMode.Open, System.IO.FileAccess.Read);
Line 1121: System.Xml.Serialization.XmlSerializer serializer = new
System.Xml.Serialization.XmlSerializer(typeof(Opti ons));
Line 1122: returnValue = ((Options)(serializer.Deserialize(fs)));
Line 1123: returnValue._fileName = fileName;
Source File: e:\my projects\visual studio
projects\ncr\ncr.backoffice.v2\options.cs Line: 1121

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'bwkeldu1.dll' could not be loaded.
=== Pre-bind state information ===
LOG: Where-ref bind. Location =
C:\DOCUME~1\RMLAPTOP\ASPNET\LOCALS~1\Temp\bwkeldu1 .dll
LOG: Appbase = file:///d:/inetpub/wwwroot/NCR
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/DOCUME~1/RMLAPTOP/ASPNET/LOCALS~1/Temp/bwkeldu1.dll.

Stack Trace:
[FileNotFoundException: File or assembly name bwkeldu1.dll, or one of its
dependencies, was not found.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound,
Assembly locationHint, StackCrawlMark& stackMark) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean
stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) +307
System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity) +21
System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() +67
System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly() +0
System.Xml.Serialization.Compiler.Compile() +409
System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings) +1259
System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultNamespace) +316
System.Xml.Serialization.XmlSerializer..ctor(Type type) +27
NCR.BackOffice.Options.Open(String fileName) in e:\my projects\visual
studio projects\ncr\ncr.backoffice.v2\options.cs:1121
NCR.BackOffice.Settings.get_Options() in e:\my projects\visual studio
projects\ncr\ncr.backoffice.v2\settings.cs:159
NCR.BackOffice.UI.INavigator.PopulateNavigator(Pag e Page, UltraWebTree
uwt, Settings settings) in e:\my projects\visual studio
projects\ncr\ncr.backoffice.v2\ui\inavigator.cs:18
NCR.Common.Navigation.UWT.Page_Load(Object sender, EventArgs e) in
d:\inetpub\wwwroot\ncr\common\navigation\uwt.aspx. cs:59
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

Nov 17 '05 #3

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

Similar topics

2
by: Russell Reagan | last post by:
In a newer version of a chess program I am writing, I have created classes that are (more or less) drop in replacements for things that used to be plain old integer or enumerated variables (colors,...
0
by: Casey | last post by:
So I'm using XmlSerializer to serialize out a wrapper object that contains an arbitrary number of other objects. The class definitions listed below are made to be very generic. Some of the...
9
by: Girish | last post by:
Im trying to understand implicit type conversions from object -> string and vice versa. I have two classes, one Driver and one called StringWrapper. These are just test classes that try and...
11
by: Aaron Queenan | last post by:
Given the classes: class Class { public static implicit operator int(Class c) { return 0; } } class Holder
3
by: AVL | last post by:
Hi, I'm new to .net. I need some info on serialization. What is serialization? Why do we need it? Why objects need to be serialized if they need to be stored in session or viewstate?
36
by: Chad Z. Hower aka Kudzu | last post by:
I have an implicit conversion set up in an assembly from a Stream to something else. In C#, it works. In VB it does not. Does VB support implicit conversions? And if so any idea why it would work...
3
by: Paulo Morgado [MVP] | last post by:
Hi all ..NET Framework 1.1 I have created several types that are serailized to XML as strings. Someting like this: public struct MyInt32 : IXmlSerializable { int value;
0
by: JosAH | last post by:
Introduction Upon hearing the word, "Serialization", the first question which comes to mind is ... "What is Serialization?" We know that we can create resusable objects in Java. But the...
1
by: kikisan | last post by:
I am developing a windows service which utilizes the following classes: interface IPersistable; abstract class PersistableObject : IPersistable;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...

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.