473,549 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getting error at time of XmlSerializatio n

Hi Friends,

My work is stuck up because of this unresolvable and unbelievable
Error.

I'm trying to Serialize my Class object using XmlSerializatio n. And at
below line, I m getting "error File or assembly name xxxxxxx.dll, or
one of its dependencies, was not found.."

///I got error at this point
XmlSerializer xmlSerializer = new XmlSerializer(t ypeof(myObject) );

Error: {"File or assembly name xxxxxxx.dll, or one of its dependencies,
was not found." }

As this is an IO error and I'm not using any external file. I am not
understand why this is happen with my code.

Thanks in advance.....wai ting for your response.

Thanks & Regards,
Rushikesh
Integreon.

Nov 12 '05 #1
3 1991
<IM***********@ gmail.com> wrote in message news:11******** *************@o 13g2000cwo.goog legroups.com...
I'm trying to Serialize my Class object using XmlSerializatio n. And at
below line, I m getting "error File or assembly name xxxxxxx.dll, or
one of its dependencies, was not found.."


Is this in an ASP.NET web application? Have you granted the ASP.NET
logon identity security privileges to create/write/read files from the TEMP
folder?

For background, that 'random' assembly name is an assembly that gets
dynamically code-generated in .NET 1.1 and earlier by the XML serializer
when it reflects against the Type of myObject. A common cause for getting
this error is you don't have access to read/write/create it (although this isn't
the only reason it may arise.)
Derek Harmon
Nov 12 '05 #2
Hi Derek,

No I'm not using ASP.NET, I'm creating a WinForm desktop application.
And I login as Administrator. So i don't think that permission of Temp
folder is responsible for this error. I already tried this, I tried to
create a file manually. This error came after making some change in My
Class, but I don't know how to resolve it.

Thanks & Regards,
Rushikesh
Integreon.

Derek Harmon wrote:
<IM***********@ gmail.com> wrote in message news:11******** *************@o 13g2000cwo.goog legroups.com...
I'm trying to Serialize my Class object using XmlSerializatio n. And at
below line, I m getting "error File or assembly name xxxxxxx.dll, or
one of its dependencies, was not found.."


Is this in an ASP.NET web application? Have you granted the ASP.NET
logon identity security privileges to create/write/read files from the TEMP
folder?

For background, that 'random' assembly name is an assembly that gets
dynamically code-generated in .NET 1.1 and earlier by the XML serializer
when it reflects against the Type of myObject. A common cause for getting
this error is you don't have access to read/write/create it (although this isn't
the only reason it may arise.)
Derek Harmon


Nov 12 '05 #3
<IM***********@ gmail.com> wrote in message news:11******** *************@g 49g2000cwa.goog legroups.com...
This error came after making some change in My Class, but I don't
know how to resolve it.


You may want to try the XmlSerializerPr eCompiler described in an MSDN
article by Christophe Schittko on troubleshooting other causes of XmlSerializer
errors,

http://msdn.microsoft.com/library/en...trblshtxsd.asp

If the changes made to some XML serialization attributes on your class are
breaking the serializer, then the error messages from XSPC should help you
track down the culprit. You can download XSPC from Chris Sells' website,

http://www.sellsbrothers.com/tools/#...zerPreCompiler
Derek Harmon
Nov 12 '05 #4

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

Similar topics

0
1322
by: Omkar Singh | last post by:
When I serialize my class using XmlSerialization.serialize, it make a lot of reference in the output document. Is there any way to off XmlSerialiation class to make references.
0
1498
by: Omkar Singh | last post by:
I am using XmlSerialization and XmlDeserialization for making soap Body part. Then I am making sopa-header and other part of soap envelope manually. At last joining all part to get complete soap packet. Can anyone tell me how can I handle the case of "Any" during serialization and how to de-serialize the soap-packet containg the field the...
2
3446
by: STom | last post by:
I have just started reading up on XMLSerialization and still do not understand the practical use of this technology. For example, if I have to know the class type on the client and on the web service side, wouldn't it be easier to just use .Net remoting? I envision some point of passing over the XML document but the web service not really...
2
1498
by: pb | last post by:
Hi, I'm having problems deploying a project to win2003. It is currently on win2000 server and works fine - it also works fine on my development machine - win2003. Both my machine and the new machine are running .net 1.1 sp1. I get an error when I try to descrialize a file (with code): XmlTextReader reader = new XmlTextReader(fileName);
0
937
by: IMS.Rushikesh | last post by:
Hi Friends, My work is stuck up because of this unresolvable and unbelievable Error. I'm trying to Serialize my Class object using XmlSerialization. And at below line, I m getting "error File or assembly name xxxxxxx.dll, or one of its dependencies, was not found.." ///I got error at this point
0
369
by: Matthew Copeland | last post by:
A little background. This is a VB.Net client application , and it uses a web reference to a web service, which has been properly refreshed. My app takes collections of two serializable objects, and serializes them to a XMLDocument object. The serializer uses Chris Lovett's XMLNodeWriter.dll to write directly to the XMLDocument. ...
4
3971
by: pfrisbie | last post by:
I am developing a Web Services interface with C# and our partner is using Java (Axis 1.1). They require me to include xsi:types in the SOAP Messages I send them. For example: <Partner xmlns="urn:partner.xxxxx.com"> <RequestID>239</RequestID> <TimeStamp>2006-03-06T17:10:51.4662331-06:00</TimeStamp> <Subject...
5
4743
by: igotyourdotnet | last post by:
I'm creating a web service this is going to return an arraylist of items. When I try and run it Im' getting the following error message: System.InvalidOperationException: There was an error generating the XML document. ---System.InvalidOperationException: The type Car List was not expected. Use the XmlInclude or SoapInclude attribute to...
0
3949
by: IanWright | last post by:
This is a little bit more of an advanced topic for serialization. For those who don't know what XML serialization is, then this probably isn't for you just yet. For those that do, you may have come across the problem of serializing an interface, something that you simply can't do using the standard XmlSerialization techniques. This articles looks...
0
7551
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...
0
7750
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. ...
0
7991
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...
1
7509
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...
0
7838
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...
0
5118
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1084
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
790
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...

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.