将Web应用程序上载到服务器时,访问被拒绝错误 [英] Access denied Error while uploading webapplication to server

查看:87
本文介绍了将Web应用程序上载到服务器时,访问被拒绝错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在ASP.NET 3.0中开发Web应用程序.
在我的Web应用程序中,我将图像上传到图像文件夹中,该文件夹位于根文件夹中.

我在本地系统中的Web应用程序是D:\ application \ Webapplication

我给定的存储图像的路径是〜\ Images \ img.jpg"

在本地主机中,我的应用程序运行良好.但是在服务器上上传时却没有.
它提供了错误
错误是

拒绝访问路径D:\ inetpub \ vhosts \ geetapublicschool.org \ httpdocs \ images \ img.JPG''.

我该如何解决问题.

请帮我.

在此先感谢您.

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.

推荐答案

您是网络上的分层结构还是文件系统上的某个部分?如果
在外面,您可能正在使用横​​向操作,这需要
降低IIS 6中的安全性.如果不是,请使用
检查安全性 ..NET配置工具.

---
格雷戈里·比默(Gregory A. MVP; MCP:+ I,SE,SD,DBA
***************************
跳出框框思考!
***************************
"HNguyen"写道:
[color = blue]
>将文件上传到Web服务器时访问被拒绝错误.
>
>尝试将文件上传到我们的网站时出现以下错误
>服务器:错误:拒绝访问路径"e:\ web \ ... \ DBConnection.txt".
>我们正在运行.NET Framework的Windows 2003 Server上使用IIS 6.0.
> 1.1.要执行上传,我们使用的是PostedFile.SaveAs(FileLocation).
>我们尝试了以下解决方案:
>
> 1 .. ASP.NET计算机帐户具有修改,读取,写入和执行
>自上而下的权限.
> 2 .. IUSER_Machine具有
的修改",读取",写入"和执行"权限. >自上而下.
> 3 ..索引服务未运行
> 4 ..临时授予ASP.NET计算机帐户的管理权限.
>提前谢谢.
>
>
> [/color]
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]


这篇关于将Web应用程序上载到服务器时,访问被拒绝错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆