Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I m developing webapplication in asp.net 3.0.
in my web application i upload image in image folder,which in root folder.

my webapplication in local system is D:\application\Webapplication

and i have given path for storing image is "~\Images\img.jpg"

in localhost my application running fine.but while uploading on server.
it providing error
and error is

Access to the path D:\inetpub\vhosts\geetapublicschool.org\httpdocs\images\img.JPG' is denied.

how can i solve problem.

Pls help me out.

Thanks in advance.
Posted

1 solution

Are you in the web hierarachy or somewhere out on the file system? If
outside, you may be using a transverse type of operation, which requires a
reduction in security in IIS 6. If not, check the security set up with the
..NET Configuration tool.

---
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"HNguyen" wrote:
[color=blue]
> Access denied error while uploading a file to a web server.
>
> I am getting the following error while trying to upload a file to our web
> server: Error: Access to the path "e:\web\...\DBConnection.txt" is denied.
> We are working with IIS 6.0 on Windows 2003 Server running .NET Framework
> 1.1. To perform the upload we are using PostedFile.SaveAs(FileLocation).
> We have tried the following solutions:
>
> 1.. ASP.NET Machine Account has Modify, Read, Write and Execute
> permissions from the top down.
> 2.. IUSER_Machine has Modify, Read, Write and Execute permissions from the
> top down.
> 3.. Indexing Services is not running
> 4.. Temporarily granted administrative rights to ASP.NET Machine Account.
> Thanks in advance.
>
>
>[/color]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900