473,503 Members | 3,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wierd Error

Ok I'm doing some XMLSerialization for my applications config information
that the user sets up. And I am getting file not found exceptions. however
the file that it is trying to serialize is there. So, Anyhow I tracked it
down to that when you create the serializer:

XmlSerializer configSerializer = new XmlSerializer(typeof(Config));

..NET will generate a temp DLL on the fly that actually does all the work.
This file is generated in your temp directory. The name of the file is
random per run of the application, and it is a three fold step, .NET
generates a <random file name>.out file and from that creates a <random file
name>.cs and from there <random file name>.dll. However something goes wrong
in the process and the .cs and .dll file never get created, which causes a
file not found exception to occur.

Anyone have any clue as to what is going on. This used to work, and I have
reinstalled .NET and VS and the whole nine yards, Also no info on this type
of error, that I can find anyhow, on MSKB.

All help is appreciated.

Thanks
-Evan

Jul 21 '05 #1
2 1477
The Xml Serializer has some holes in its type support.
Sometimes it gets confused and will fail to generate a proper DLL.
For example, jagged arrays are problematic. Search the archives of
the microsoft.public.dotnet.xml newsgroup for some examples.

Can you post a testcase?

-Dino
Microsoft
"Evan Freeman[C++ Samuri]" <Ev****@rcn.com> wrote in message
news:zs**************@news-srv1.fmr.com...
Ok I'm doing some XMLSerialization for my applications config information
that the user sets up. And I am getting file not found exceptions. however
the file that it is trying to serialize is there. So, Anyhow I tracked it
down to that when you create the serializer:

XmlSerializer configSerializer = new XmlSerializer(typeof(Config));

.NET will generate a temp DLL on the fly that actually does all the work.
This file is generated in your temp directory. The name of the file is
random per run of the application, and it is a three fold step, .NET
generates a <random file name>.out file and from that creates a <random file name>.cs and from there <random file name>.dll. However something goes wrong in the process and the .cs and .dll file never get created, which causes a
file not found exception to occur.

Anyone have any clue as to what is going on. This used to work, and I have
reinstalled .NET and VS and the whole nine yards, Also no info on this type of error, that I can find anyhow, on MSKB.

All help is appreciated.

Thanks
-Evan

Jul 21 '05 #2
I couldn't find anything in the XML group about this particular error.

As to a test case not sure what you are looking for exactly. My class/Type
is just a public calss with about 5 public strings that I serialize and
deserialize. I use it for the user settings of the appication.

So something like this.

public class foo
{
public string str1;
public string str2;
public string str3;
public string str4;
public string str5;
};

syntax may be off, but you get the idea.

Enjoy....help =]

-Evan
"Dino Chiesa [Microsoft]" <di****@online.microsoft.com> wrote in message
news:O2*************@TK2MSFTNGP09.phx.gbl...
The Xml Serializer has some holes in its type support.
Sometimes it gets confused and will fail to generate a proper DLL.
For example, jagged arrays are problematic. Search the archives of
the microsoft.public.dotnet.xml newsgroup for some examples.

Can you post a testcase?

-Dino
Microsoft
"Evan Freeman[C++ Samuri]" <Ev****@rcn.com> wrote in message
news:zs**************@news-srv1.fmr.com...
Ok I'm doing some XMLSerialization for my applications config information that the user sets up. And I am getting file not found exceptions. however the file that it is trying to serialize is there. So, Anyhow I tracked it down to that when you create the serializer:

XmlSerializer configSerializer = new XmlSerializer(typeof(Config));

.NET will generate a temp DLL on the fly that actually does all the work. This file is generated in your temp directory. The name of the file is
random per run of the application, and it is a three fold step, .NET
generates a <random file name>.out file and from that creates a <random

file
name>.cs and from there <random file name>.dll. However something goes

wrong
in the process and the .cs and .dll file never get created, which causes a file not found exception to occur.

Anyone have any clue as to what is going on. This used to work, and I have reinstalled .NET and VS and the whole nine yards, Also no info on this

type
of error, that I can find anyhow, on MSKB.

All help is appreciated.

Thanks
-Evan


Jul 21 '05 #3

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

Similar topics

3
1986
by: vool | last post by:
Hi all, I've got a really wierd problem here. When I access a web page that adds information to a database on a PC running XP Pro it works as it should. When I access the same page from a...
0
1288
by: Niranjan | last post by:
Access XP Windows XP This code has been working for over 5 years with no problems and all of a sudden I am running into these wierd problems. I have this code to delete a record....
1
6798
by: paul reed | last post by:
Hello, I am having some weird behavior between two machines...one which is running the 1.1 framework and one which is running 1.0. After opening a child form from a parent...I update the...
7
2337
by: Shane Bishop | last post by:
I've been fighting with the Page_Load event firing twice. I looked through this user group and saw several other people having similar problems. There were various reasons for it:...
1
935
by: Shaman | last post by:
ok i got this wierd problem which took me 4 hours already and im still stuck :/ anybody know what is wrong here ------Code----- Public Class guildnod Private node() As TreeNod Private tot As...
1
1204
by: YourAverageJoe | last post by:
To whom it may concern: I'm running Fedora Core 4 on a rather low-spec system (considered good cirkabout '99), this one program I'm trying to run is dependant on Python, so I downloaded the RPM,...
3
1527
by: Tom | last post by:
We are experiencing some wierd debugging behavior. What happens is that, during debugging with VS 2003, the debugger seems to 'skip' statements that are associated with database operations. For...
8
3275
by: John Nagle | last post by:
Here's a wierd problem: I have a little test case for M2Crypto, which just opens up SSL connections to web servers and reads their certificates. This works fine. But if I execute ...
5
1704
by: desktop | last post by:
I am confused about the use of the template parameter "E" in the below class. Since when is it allowed to use these parameters like "E(1)" and what does it mean (where can I read more about this...
1
1483
by: samneil | last post by:
I have 1 Database( MS Access) with 9 tables and 6 queries, Now I'm trying to view my 2 different tables on my VB6.0 using 2 Datagrids and 2"adodc".... here are the names of my two tables:...
0
7064
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...
0
7315
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...
1
6974
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...
0
7445
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...
1
4991
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...
0
4665
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...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.