file access problem
From: David Perez Essenwanger (david_perez21_at_yahoo.com)
Date: 05/17/05
- Next message: Nicole Calinoiu: "Re: Troubleshoot Caspol"
- Previous message: satidar kumar via .NET 247: "problem with encryption / decryption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 17 May 2005 06:11:07 -0700
Hi there,
I am having problem trying to create a file on windows server 2003.
There is a problem creating this campaign: campaign1 --->
System.Exception: Error creating HTML files --->
System.UnauthorizedAccessException: Access to the path
"C:\Inetpub\wwwroot\eap\campaign\campaign1_Eng.html" is denied. at
System.IO.__Error.WinIOError(Int32 errorCode, String str) at
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String
msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path,
FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at
System.IO.StreamWriter.CreateFile(String path, Boolean append) at
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path,
Boolean append) at System.IO.File.CreateText(String path) at
e_ap.util.createFile(String path, String content) in
c:\inetpub\wwwroot\e_ap\util.cs:line 76 at
e_ap.campaign.createHTMLFiles(String code, String language, String
HTMLText) in c:\inetpub\wwwroot\e_ap\campaign.cs:line 260 --- End of
inner exception stack trace --- at e_ap.campaign.createHTMLFiles(String
code, String language, String HTMLText) in
c:\inetpub\wwwroot\e_ap\campaign.cs:line 271 at
e_ap.campaign.create(String usrName, Int32 temCode, String language,
String HTMLText) in c:\inetpub\wwwroot\e_ap\campaign.cs:line 64 --- End
of inner exception stack trace --- at e_ap.campaign.create(String
usrName, Int32 temCode, String language, String HTMLText) in
c:\inetpub\wwwroot\e_ap\campaign.cs:line 86 at
e_ap.camp12.btnContinue_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\e_ap\camp12.aspx.cs:line 208
the ASPNET user and even the IUSR user has full access to write to that
folder. Also the folder read-only attribute is off and in web.config the
authentication mode is None.
Does any body have any suggestion?
Thanks in advance
*** Sent via Developersdex http://www.developersdex.com ***
- Next message: Nicole Calinoiu: "Re: Troubleshoot Caspol"
- Previous message: satidar kumar via .NET 247: "problem with encryption / decryption"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|