473,320 Members | 1,969 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.

getting error at time of XmlSerialization

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
XmlSerializer xmlSerializer = new XmlSerializer(typeof(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.....waiting for your response.

Thanks & Regards,
Rushikesh
Integreon.

Nov 12 '05 #1
3 1973
<IM***********@gmail.com> wrote in message news:11*********************@o13g2000cwo.googlegro ups.com...
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.."


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*********************@o13g2000cwo.googlegro ups.com...
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.."


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*********************@g49g2000cwa.googlegro ups.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 XmlSerializerPreCompiler 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
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
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...
2
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...
2
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...
0
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...
0
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...
4
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...
5
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...
0
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.