file access problem

From: David Perez Essenwanger (david_perez21_at_yahoo.com)
Date: 05/17/05


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 ***



Relevant Pages

  • "Event ID 6482, Office Sharepoint Server" error in Application Log
    ... MOSS has SP1 applied to both WSS and MOSS sides, ... access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, ... FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean ... at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Having few problems with Windows Service
    ... FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean ... access, FileShare share, Int32 bufferSize, FileOptions options) ... at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding ...
    (microsoft.public.dotnet.languages.csharp)
  • Having few problems with Windows Service
    ... access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, ... FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean ... at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding ...
    (microsoft.public.dotnet.languages.csharp)
  • File.WriteAllText fails: "file is being used by another process"
    ... access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, ... FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean ... at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding ...
    (microsoft.public.dotnet.framework)
  • Re: problems with authenication in C#
    ... String eventArgument) +18> System.Web.UI.Page.RaisePostBackEvent ...
    (microsoft.public.dotnet.languages.csharp)

Quantcast