Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: ASP.Net Permissions


Message #1 by "Samuel Engelman" <samuel_engelman@p...> on Mon, 26 Aug 2002 15:05:36 -0400
After implementing an ASP.Net application, I am getting an error when I am
trying to write to a local folder.

The ASPNET, SYSTEM, and IUSR accounts all have access to the folder I am
trying to write to.

The error is :

Erro number 76


Could not find a part of the path "d:\".
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String
path)
   at System.IO.Directory.CreateDirectory(String path)
   at
DeveloperSupport.Tools.Notification.EmailNotification.GetAttachments(String
sFolderName) in \\dsdotnet.prudential.com\wwwroot
$\Notification\Email\EmailNotification.vb:line 76
   at
DeveloperSupport.Tools.Notification.EmailNotification.ProcessMessage(String
sFrom, String sTo, String sCC, String sBCC, String sSubject, String sBody,
Boolean bBeep, String sRuleName) in \\dsdotnet.prudential.com\wwwroot
$\Notification\Email\EmailNotification.vb:line 39
   at DeveloperSupport.Tools.Notification.Message.SendMessage(String sFrom,
String sTo, String sCC, String sBCC, String sSubject, String sBody, Boolean
bBeep, String sRuleName) in \\dsdotnet.prudential.com\wwwroot
$\Notification\Message.asmx.vb:line 112</stacktrace>



Notice the error message states that the problem is with d:\. The folder I
am trying to write to is a subfolder in the d drive.

Any help would be appreciated

Message #2 by Imar Spaanjaars <Imar@S...> on Mon, 26 Aug 2002 21:20:10 +0200
Do you have the directory path hardcoded in the app, or are you using a 
relative path? In the latter case, you may need to make this a full path 
using Server.MapPath()

Somehow, it looks like you are using or creating a directory like: 
c:\Intetpub\wwwroot\MyApp\d:\MyFolder

If this doesn't help, post some code so we can take a look at it.

HtH

Imar





At 03:05 PM 8/26/2002 -0400, you wrote:
>After implementing an ASP.Net application, I am getting an error when I am
>trying to write to a local folder.
>
>The ASPNET, SYSTEM, and IUSR accounts all have access to the folder I am
>trying to write to.
>
>The error is :
>
>Erro number 76
>
>
>Could not find a part of the path "d:\".
>at System.IO.__Error.WinIOError(Int32 errorCode, String str)
>    at System.IO.Directory.InternalCreateDirectory(String fullPath, String
>path)
>    at System.IO.Directory.CreateDirectory(String path)
>    at
>DeveloperSupport.Tools.Notification.EmailNotification.GetAttachments(String
>sFolderName) in \\dsdotnet.prudential.com\wwwroot
>$\Notification\Email\EmailNotification.vb:line 76
>    at
>DeveloperSupport.Tools.Notification.EmailNotification.ProcessMessage(String
>sFrom, String sTo, String sCC, String sBCC, String sSubject, String sBody,
>Boolean bBeep, String sRuleName) in \\dsdotnet.prudential.com\wwwroot
>$\Notification\Email\EmailNotification.vb:line 39
>    at DeveloperSupport.Tools.Notification.Message.SendMessage(String sFrom,
>String sTo, String sCC, String sBCC, String sSubject, String sBody, Boolean
>bBeep, String sRuleName) in \\dsdotnet.prudential.com\wwwroot
>$\Notification\Message.asmx.vb:line 112</stacktrace>
>
>
>
>Notice the error message states that the problem is with d:\. The folder I
>am trying to write to is a subfolder in the d drive.
>
>Any help would be appreciated


Message #3 by "Samuel Engelman" <samuel_engelman@p...> on Mon, 26 Aug 2002 15:27:28 -0400
I have an absolute path.

When I give full permissions to everyone to the root it works fine so there
is no problem with the code.

If I give full permission to the ASPNET account to the root it also works


                                                                                                               
              Imar Spaanjaars                                                                                  
              <Imar@S...>                       To:                                         "ASP+"   
                                                           <aspx@p...>                                 
                                                          cc:                                                  
              Monday August 26, 2002 03:20 PM             Subject:   [aspx] Re: ASP.Net Permissions            
              Please respond to "ASP+"                                                                         
                                                                                                               
                                                                                                               




Do you have the directory path hardcoded in the app, or are you using a
relative path? In the latter case, you may need to make this a full path
using Server.MapPath()

Somehow, it looks like you are using or creating a directory like:
c:\Intetpub\wwwroot\MyApp\d:\MyFolder

If this doesn't help, post some code so we can take a look at it.

HtH

Imar





At 03:05 PM 8/26/2002 -0400, you wrote:
>After implementing an ASP.Net application, I am getting an error when I am
>trying to write to a local folder.
>
>The ASPNET, SYSTEM, and IUSR accounts all have access to the folder I am
>trying to write to.
>
>The error is :
>
>Erro number 76
>
>
>Could not find a part of the path "d:\".
>at System.IO.__Error.WinIOError(Int32 errorCode, String str)
>    at System.IO.Directory.InternalCreateDirectory(String fullPath, String
>path)
>    at System.IO.Directory.CreateDirectory(String path)
>    at
>DeveloperSupport.Tools.Notification.EmailNotification.GetAttachments(String

>sFolderName) in \\dsdotnet.prudential.com\wwwroot
>$\Notification\Email\EmailNotification.vb:line 76
>    at
>DeveloperSupport.Tools.Notification.EmailNotification.ProcessMessage(String

>sFrom, String sTo, String sCC, String sBCC, String sSubject, String sBody,
>Boolean bBeep, String sRuleName) in \\dsdotnet.prudential.com\wwwroot
>$\Notification\Email\EmailNotification.vb:line 39
>    at DeveloperSupport.Tools.Notification.Message.SendMessage(String
sFrom,
>String sTo, String sCC, String sBCC, String sSubject, String sBody,
Boolean
>bBeep, String sRuleName) in \\dsdotnet.prudential.com\wwwroot
>$\Notification\Message.asmx.vb:line 112</stacktrace>
>
>
>
>Notice the error message states that the problem is with d:\. The folder I
>am trying to write to is a subfolder in the d drive.
>
>Any help would be appreciated



---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.

---




  Return to Index