且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将文件上传到实际的服务器

更新时间:2022-01-28 09:09:16

您应该允许从web.config访问Images文件夹。

例如我正在使用下一个设置:

< location path =Content / Images>

< system.web>

< identity impersonate = trueuserName =SomeUserpassword =UserPassword/>

< authorization>

< deny users =?/>

< / authorization>

< /system.web>

< / location>
You should allow from web.config the access to the Images folder.
For example I am using the next settings:
<location path="Content/Images">
<system.web>
<identity impersonate="true" userName="SomeUser" password="UserPassword"/>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>