Webhost之后异步文件上传错误 [英] Asynchronous file Upload error After webhost

查看:80
本文介绍了Webhost之后异步文件上传错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


发布或部署之前
-----------------------------------------
我们已经开发了一个名为TNPDA的项目.
因为我们已经使用了异步文件上传器.
我们已经上传了图像,然后将其存储到特定的文件夹中.我们指定了路径,例如localhost/tnpda/images/
它正常工作.
出版后
-------------------
发布并托管到网站后,我们已经更改了路径,例如www.stfgk.in/tnpda/imagefolder ...
当我上传文件时它不起作用.它显示以下错误.
服务器响应错误:拒绝访问路径``D:\ WEBDATA \ www.stroweger.in \ tnpda \ imagedir \ hh.jpg''.
您是否要查看响应页面.

解决方案

,请问为什么要文件上传控件安全注意事项部分 [^ ]

向用户(通常是ASPNET用户)或模拟呼叫的用户帐户提供写许可权.

Hi,
BEFORE PUBLISH OR DEPLOYMENT
-----------------------------------------
We have develop a project namely TNPDA.
In that We Have use asynchronous file uploader.
We have upload the images.then it will store into specific folder.We specify the path like localhost/tnpda/images/
It works properly.
AFTER PUBLISHED
-------------------
after published and hosted into website, We have change the path like www.stfgk.in/tnpda/imagefolder...
IT WAS NOT WORKING WHEN I UPLOAD THE FILE.IT SHOW THE FOLLOWING ERROR.
Server response Error:''Access to the path ''D:\WEBDATA\www.stroweger.in\tnpda\imagedir\hh.jpg'' is denied.
Do you want to see the response page.

解决方案

And may I ask why a repost[^]?

Not just repost, I remmember commenting you it''s more than 3 times now. Right?

Please avoid reposts.
========


Now, once and for all, let me clarify what error means and the possible resolution.

When you are uploading a file to the server, you need to have appropriate write permission to the account processing the request on the directory that you are using to upload the file.

Check the MSDN link - FileUpload Control Security Considerations section[^]

Either provide the write permission to the user (generally ASPNET user) or to the user account that is impersonating the calls.


这篇关于Webhost之后异步文件上传错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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