Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > XML Serialize doesn't save to web server hard drive

Thread Tools

XML Serialize doesn't save to web server hard drive

Posts: n/a
I have ASP.Net code that works fine on 3 VS.Net development machines but
does not work on a non-development environment Windows Tablet PC.

All environments run their own copy of the web application on localhost.

The code serializes some objects that I wrap into a holder class
(AerospaceXML) which works and looks like a dream.

Here is the code...

string filename = this.Request.MapPath("") + "\\NavHistory.xml";
Stream stream = new FileStream(filename, FileMode.Create);
XmlSerializer ser = new XmlSerializer(typeof(AerospaceXML));
AerospaceXML xmlobj = new AerospaceXML();
ser.Serialize(stream, xmlobj);

The problem is that the file NavHistory.xml is not saved to the hard drive
on the server only on the tablet computer.

The user is logged in with administrator rights.

The web site has write privileges.

The web.config file includes the line:

<identity impersonate="true"/>

I've even tried checking the box "Script source access" in the file and web
sharing properties box of the folder.

I believe that this is a security issue, but can't nail it.

Any ideas?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive is Disk 0 CHANGES to hard drive is Disk 1??? And still works!!! Spin Computer Support 7 04-09-2008 09:04 PM
Change Master/Boot Hard Drive to Slave/Non boot Hard Drive & Visa Versa Computer Information 0 01-18-2005 01:57 PM
serialize to SQL Server Blob instead of XML serialize Gordz ASP .Net 3 06-07-2004 07:46 PM
Help, Hard Drive hell......Hard drive not installing. Win98se Anthropy Computer Support 4 02-24-2004 08:54 PM
Moving Mozilla files from old hard drive to new hard drive Nate Firefox 1 02-21-2004 09:09 PM