CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.getting_started Tags:
Item Type: Date Entered: 11/7/2004 8:49:28 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 15 Views: 24 Favorited: 0 Favorite
16 Items, 1 Pages 1 |< << Go >> >|
"ahmedegy3" <>
NewsGroup User
Access to the path is denied11/7/2004 8:49:28 AM

0

Hi,

I'm using a System.IO.Directory.Delete(Path,true);command in a custom module and yet on my hosted server it says access to the path is denied. the error message:

Access to the path "d:\domains\mysite.com\wwwroot\myfolder" is denied.

i Hope any one can helpe me fix it?
"narayanas" <>
NewsGroup User
Re: Access to the path is denied11/7/2004 10:54:44 AM

0

Check with your hosting provider whether you have delete permissions to do so.
Regards, Narayana Rao Surapaneni Architect | Author | MCSD for .NET | MCSD | SCJP www.msdeveloper.info
"Vimpyboy" <>
NewsGroup User
Re: Access to the path is denied11/7/2004 11:23:09 AM

0

Give the ASPNET-account write permissions on the folder.
Mikael S?derstr?m
"BhatiaWorld" <
NewsGroup User
Re: Access to the path is denied11/7/2004 11:37:59 AM

0

Hi,

I also faced such problem in the past .
When I contact my Host Service Provider.
He told me that in that server ASP.net is not autorized user, So it is denying the access.I think your problem is same.

Is it running succesfully on local machine.
My Blog: DotNetError@BhatiaWorld
"ahmedegy3" <>
NewsGroup User
Re: Access to the path is denied11/7/2004 12:16:27 PM

0

Bhatia,

Yes it is running succesfully on local machaine
"sreedhark" <>
NewsGroup User
Re: Access to the path is denied11/7/2004 12:42:06 PM

0

Like other seaid, it could be problem of permissions, so Please ask your ISP to give proper permissions (ASPNET user permissions)
Sreedhar
Microsoft MVP (ASP.NET)
http://www.w3coder.com
weblog http://weblogs.asp.net/skoganti
"ksubramonian"
NewsGroup User
Re: Access to the path is denied12/21/2005 6:46:21 PM

0

STEP1:

Goto control panalSlect " UserAccounts" you should see an username called ASPNET.

STEP2:

Goto the file you are trying to access. (232.txt) right click -> Properties -> security -> Add

Add the user ASPNET and also select the check box 'write' permission.

Step3:Run the application again you should be able to access the file.


S U B R A M O N I A N K [MCP]
"defiant1970" <
NewsGroup User
Re: Access to the path is denied12/30/2005 10:26:51 PM

0

what happens if you do give ASPNET the permision to write to the folder and you still get the access denied???
Harry Rorarius
Epic Computers
www.epiccomputers.biz
"azamsharp" <>
NewsGroup User
Re: Access to the path is denied12/31/2005 3:47:06 AM

0

It is possible that the user that created the folder does not have permission to delete the folder.

Hope it helps!
AzamSharp
Microsoft Certified Professional
My Blog
KoffeeKoder
Interested in writing for KoffeeKoder! Email me!
"defiant1970" <
NewsGroup User
Re: Access to the path is denied12/31/2005 3:54:29 AM

0

what exactly do you mean by that???
Harry Rorarius
Epic Computers
www.epiccomputers.biz
"azamsharp" <>
NewsGroup User
Re: Access to the path is denied12/31/2005 6:00:38 AM

0

What I mean is that it is possible that one user has the read and execute permission but not the write permission.


Hope it helps!
AzamSharp
Microsoft Certified Professional
My Blog
KoffeeKoder
Interested in writing for KoffeeKoder! Email me!
"defiant1970" <
NewsGroup User
Re: Access to the path is denied12/31/2005 3:50:59 PM

0

I gave ASPNET full control over the the file. The permisions were granted to ASPNET by the user Administrator

That is what driving me crazy


Harry Rorarius
Epic Computers
www.epiccomputers.biz
"defiant1970" <
NewsGroup User
Re: Access to the path is denied12/31/2005 8:55:30 PM

0

Would Active directory security have anything to with it?????
Harry Rorarius
Epic Computers
www.epiccomputers.biz
"defiant1970" <
NewsGroup User
Re: Access to the path is denied1/7/2006 2:27:49 AM

0

Just to conclued the problem wasen't my permisions it was the programing of my upload sub.  I found a good example of one and I got my mine to work.  thank you for your help!

 

Harry

 


Harry Rorarius
Epic Computers
www.epiccomputers.biz
"thuhue" <>
NewsGroup User
Re: Access to the path is denied6/16/2006 7:37:09 PM

0

What does the programing of your upload sub have to do with the problem? Please elaborate so I can learn. Thanks.
"defiant1970" <
NewsGroup User
Re: Access to the path is denied9/25/2007 1:48:52 AM

0

I used

 If Not (inpthumbup.PostedFile Is Nothing) Then

     Dim intFileNameLengtht as Integer
     Dim strFileNamePatht as String
     Dim strFileNameOnlyt as String

     'Logic to find the FileName (excluding the path)
     strFileNamePatht = inpthumbup.PostedFile.FileName
     intFileNameLengtht = Instr(1, StrReverse(strFileNamePatht), "\")
     strFileNameOnlyt = Mid(strFileNamePatht, (Len(strFileNamePatht)-intFileNameLengtht)+2)

     inpthumbup.PostedFile.SaveAs("c:\Inetpub\wwwroot\epiccomputers\ProductImages\THUMBS\" & strFileNameOnlyt)
  

    End If

and it worked fine in 2000

now That I am in 2003 I get the same error I went through and NETWORK SERVICE and ASPNET Write permission and no dice any Idias??

FYI Its a local Server on ISP (only if you consider the server the ISP)

 

 


Harry Rorarius
Epic Computers
www.epiccomputers.biz
16 Items, 1 Pages 1 |< << Go >> >|


Free Download:













master page and form action

how to assign imageurl to menuitem from theme w/o full path to theme directory

designer.vb issue

master pages posting

update panel question

banner ad space & master pages

vertical aligning problems again

master pages and javascript in some content pages

could not find 'contentholder' in current master page or pages

image map - defining the hotspots?

editable content in master pages

masterpage full postback and the order of events..

<menu problem--want to hide the menu within menu>

masterpages; adding content to head and strict xhtml

menu control not displaying images !!

better css menu that supports postback?

'read only' version

custom sitemapprovider retaining old values

make nav treeview visible only on mouseover

navigation drop down menu

specifying masterpages dynamically using pagebasetype in web.config

can theme be related to different css file in different conditions?

content placeholder title problem

get contents of contentplaceholder from containing masterpage

accessing a control in masterpage

how to use a property defined in .master?

background image for a asp.net menu

master pages

multiple user controls with the same template - master page?

assigning a string variable with a value received from the treeview control

webpart lifecycle problem

'asp._masterpage_master' does not contain a definition for 'topmenurepeater_itemcommand'

menu positioning on the page ????

need help starting asp menu control on child node

menu problem ..

menu control and image control

master page navigation troubles

help with my blog error

sitemap problem with url rewriting

how to access a web user control in masterpage from form?

subset of larger bug? aspmenus and css

i'm having a helluva time registering a custom sitemap provider.

sitemapnode selectable attribute

treeview - controlling child nodes showing

muntiple contentplaceholder in one masterpage issues

reference master page in separate project

how to display a routing???

master pages and server.execute don't get along.

multiple web.sitemap files

.net treeview control with drag and drop functionality

   
  Privacy | Contact Us
All Times Are GMT