473,324 Members | 2,501 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,324 software developers and data experts.

xmlserialization and filenotfound exception too

hi all;
i got a dll with a simple class that instances a new XmlSerializer in her
own method;
i referenced that dll in a ascx control's code behind; the .ascx control is
inserted in a aspx page.

browsing the aspx page in IE, it crashes and i saw it throw a
FileNotFoundException calling the New of the XmlSerializer.
it says me it can't find 'c:\windows\temp\f5g6ds54.dll'

if i try to instantiate in the same mode the xmlserializer on the same class
in a win App, it run regularly.
i saw Christoph Schittko's article on MSDN, i downloaded the tool suggested,
and the tool serialize my class without problem.
if i try to compile from the command prompt the source file named
f5g6ds54.0.cs created in c:\windows\temp with the command inserted in the
corrisponding .cmdline file, it works fine.

i guess can be a code access security issue, but i can't know where to start
for resolve it.
(i ran it in VS2003, framework 1.1, win server2003 and IIS 6.0)
anyone has suggestion for me?

thanks
niko

Nov 12 '05 #1
1 1528
likely not a code access security issue, but rather a directory security
issue.
The creation of the temp DLL file for xml serialization is failing, due to
directory security .

The directory is often in c:\windows\temp

I believe the ASPNET user needs access to that dir.
Or on IIS6, it may be the IIS_WPG group?

Sorry I don't know for certain and cannot test this just now.

see also
http://gotdotnet.com/Community/Messa...aspx?id=222199

-Dino
"alocin" <al****@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
hi all;
i got a dll with a simple class that instances a new XmlSerializer in her
own method;
i referenced that dll in a ascx control's code behind; the .ascx control
is
inserted in a aspx page.

browsing the aspx page in IE, it crashes and i saw it throw a
FileNotFoundException calling the New of the XmlSerializer.
it says me it can't find 'c:\windows\temp\f5g6ds54.dll'

if i try to instantiate in the same mode the xmlserializer on the same
class
in a win App, it run regularly.
i saw Christoph Schittko's article on MSDN, i downloaded the tool
suggested,
and the tool serialize my class without problem.
if i try to compile from the command prompt the source file named
f5g6ds54.0.cs created in c:\windows\temp with the command inserted in the
corrisponding .cmdline file, it works fine.

i guess can be a code access security issue, but i can't know where to
start
for resolve it.
(i ran it in VS2003, framework 1.1, win server2003 and IIS 6.0)
anyone has suggestion for me?

thanks
niko

Nov 12 '05 #2

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

Similar topics

1
by: Tom | last post by:
I load an assembly via Assembly assembly=Assembly.LoadFile(assemblyName); .... foreach(Type t in types) { attribs=t.GetCustomAttributes(typeof(MayaPanelAttribute),true); }
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...
12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
2
by: Roman Muntyanu | last post by:
Hi All, I got exception when call Activator.GetObject( ... ) When I start my application I register Channel to communicate between two computers and register type ReceiverLocator for remoting...
0
by: Simon Stewart \(C# MVP\) | last post by:
Hi Our scenario is: Various business objects on a server using interfaced-based remoting being called by a thick Windows client - all written in .NET 1.1. Objects are running under a domain...
5
by: Lee Alexander | last post by:
hi, Perhaps someone can help me. I am trying to serialize an object but the serialization isn't working. I have created a small console app to show my problem. Perhaps someone with more...
0
by: A programmer desperatly needing help! | last post by:
I use the xmlserialization on asp.net pages and on previous machines it never gave a problem. But now i somethings get a: Timed out waiting for a program to execute. The command being executed was...
3
by: MovnOn | last post by:
I've created an installation package for my program. Before installation, I use the User Interface to get values that are added to the registry. One of the values that the user must add is a path...
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...
1
by: ropo | last post by:
I have a class library used by a windows service executable, both binaries and dependancies are in one bin directory located on c:. 1) I can run a test app on my class library without failure 2)...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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)...
1
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...
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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.