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: 19 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:













dynamic associated hyperlink creation

can a panel control resize itself when its parent window is resized?

sonorous signal within a chat room app

i can't use .cs file in app_code

how's working this forum?

start page

omg its not sorting the text :/

asp.net website administration tool

code folder -> seperate namespaces

how to fix error "the process cannot access the file because it is being used by another process"

aborting on-going click procedure in asp.net...

.net transaction

+ or - included in number

unique datalist validation

regularexpressionvalidator please help

data reader with null data

site slow / viewstate problems?

http error 404

keeping data fresh....

asp .net assembly/compilation issues re: visualstudio.net 2002 and 2003

isapi rewrite

filters and sorting

there are so many bugs in the template of "time track"

text writing security worries

how to work with parameters passed on the url

how to make a selection display

iis too many users on xp

pattern matching using regular expressions in c#

how to check which button was clicked

preserving values between views

disable button with javascript

escape and unescape functions in c#.

url rewriting

hot to convert web.sitemap to google site map?

calendar with more capabilities

excel multi-part import to sql server asp.net/vb.net

date object

best method for security

user collection.

what objects to display data on a webpage?

formatting server sent mail

the connection name 'connectionstring' was not found in the applications configuration or the connection string is empty.

colour coded chart

sorting datatable when manually adding rows

file upload utility

how can i load the same object after the pagepost back?

warnning message

best method for server-side insert/update

dynamic css pages?

question regarding relative references

   
  Privacy | Contact Us
All Times Are GMT