I am trying to port some old legacy ASP code to ASP.NET. The default
language used in the ASP was JSCRIPT.
I simply shifted the ASP code to a Jscript WEBFORM.
Now in that code there I need to work with files using the FileSystemObject.
I am trying to create a new file and then open it for writing to it.
var f=fs.OpenTextFile(fp.ParentFolder + "/" + uname + "/prefs.txt", 2);
However I am getting an error
System.Security.SecurityException: Exception from HRESULT: 0x800A0046
(CTL_E_PERMISSIONDENIED).
This is not very clear to me. I have already given write permissions to the
ASPNET process to the concerned folder.
Please guide me.....
Regards
Amit Anand
Hi,
That's an error due to Windows permissions rather than .NET permissions. Are
you sure you have exactly the right path, and have given the right user
read/write access to the path?
Do you have impersonation turned on or anything?
Peter
--
Peter Torr -- pt...@microsoft.com
This must be the disclaimer I waited years to read:
http://www.microsoft.com/info/cpyright.htm