farshad Posted November 25, 2003 Posted November 25, 2003 Hi, Using vb.net in my application I can use the following code to write a file as .xml and save it on the network Dim sw As StreamWriter Dim strPath = "G:\folder1\test" sw = File.CreateText(strPath & ".XML") 'Create the XML file... sw.Write("testdata") Why can I not do the same task in ASP.NET? Thanks Quote Farshad
Administrators PlausiblyDamp Posted November 25, 2003 Administrators Posted November 25, 2003 ASP.net applications run under the local account ASPNET, this account would need to have permissions to the share. You may want to investigate impersonation - this would allow you to run web apps as if they were a different user. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
fadi Posted November 27, 2003 Posted November 27, 2003 or u can give the aspnet account permissions to write on the file,that would work too Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.