Web服务器上的ASP.NET文件上传问题 [英] ASP.NET File Upload on webserver Problem

查看:76
本文介绍了Web服务器上的ASP.NET文件上传问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我有上载控件ionup.aspx页面,通过该页面我将图像上传到我的网站中的"Images"文件夹中.当我在租用服务器上运行网站时,一切正常.

但是,当我在Web服务器上部署网站时,它会在上传图像时拒绝访问我网站中的"Images"文件夹.

它给了我错误,如
如何授予用户访问该文件夹的权限.以及我需要在Web.Config文件中进行哪些更改才能删除此错误.

谢谢

Hi Friends,

I have upload control ion my upload.aspx page by which i am uploading the image to my "Images" folder in my website.when i run the website on loaal server everything works fine.

But when i deployed the website on the webserver, then it denies the access to the "Images" folder in my website while uploading the images.

It gives me error like "access denied to wwwroot directory in IIS directory"

How can I Give the user the privilege of accessing this folder. and what changes i need to make in Web.Config File to remove this error.

Thanks

推荐答案

我认为您需要检查IIS用户是否有权在该文件夹上写.

您应该向用户提供写访问权限.或检查
http://blogs.msdn.com/david.wang/archive/2005/08/20/Why-can-I-upload-a-file-without-IIS-Write-Permission.aspx
I think you need to check if IIS user has permission to write on the folder.

You should provide write access to the user. Or check
http://blogs.msdn.com/david.wang/archive/2005/08/20/Why-can-I-upload-a-file-without-IIS-Write-Permission.aspx


这篇关于Web服务器上的ASP.NET文件上传问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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