473,614 Members | 2,351 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 1998
<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
1329
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
1503
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 "Any". As for de-serization we have to give the class name which have the field of fix Type.
2
3447
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 knowing about the objects type. Am I way off base with my perceptions?
2
1505
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
940
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. XMLDocument.DocumentElement is passed to the Web method which takes an
4
3993
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 xmlns:ns1="urn:partnermapping.xxxxxx.com" xsi:type="ns1:PartnerMapping"> <AccountID>98401</AccountID>
5
4748
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 specify types that are not known statically. at...
0
3952
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 at how to do that, although it might be a little length. Lets take the following problem: ...
0
8197
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
8142
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
8589
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
8287
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,...
0
8443
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
6093
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
5548
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1438
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.