Ok I'm doing some XMLSerializatio n 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 configSerialize r = new XmlSerializer(t ypeof(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 2 1489
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.publi c.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 XMLSerializatio n 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 configSerialize r = new XmlSerializer(t ypeof(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
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******** *****@TK2MSFTNG P09.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.publi c.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 XMLSerializatio n 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 configSerialize r = new XmlSerializer(t ypeof(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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 PC running XP Home I get a ' Internal
server error - page cannot be dispalyed' message.
|
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.
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
I am getting error 2465.
|
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 database then call the __doPostBack function of
the window.opener. This has been working like a charm for
the last several months. Our ISP where we run the .NET app
recently upgraded to 1.1 of the framework. When I run my
app at the ISP...the...
|
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:
AutoEventWireup="true" instead of AutoEventWireup="false"
Spyware software
And having your events all wired wrong
I had done everything to my machine, stripped it down to just have
..NET on it and I was still having this problem until...
|
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 Intege
Sub New(ByVal gname As String
tot =
node(tot) = New TreeNode(gname
| |
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, but when I tried installing it, the following packages were
"missing:" python, python2, and /usr/bin/python. Pretty wierd, huh? I think so
too. Any way of solving the problem would make me one grateful human being!
With regards, Anonymous
|
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 instance,
I can be single-stepping through a VB.NET program, and once I hit a DB
related statement (such as setting command parameters, executing a data
reader, etc) the debugger will simply 'skip' ahead a number of
statements (if not all the way to...
|
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
socket.setdefaulttimeout(5.0)
so that the sockets don't wait too long if there's no SSL server, I get
|
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 kind of use)?
template <typename E>
class Mytest {
public:
Mytest(int n) {
s = E(0);
|
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: "Employee" and "Work" so I've tried opening them, I had no problems with the Employee table, but with my Work table, it says "syntax error on FROM Clause" isn't it WIERD? and I'v asked my classmate to try it on his Computer at home, he had no problems...
|
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,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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,...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
| |
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |