上传时出错 [英] error at upload time

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

问题描述

嗨......我有一个网络应用程序..在我的本地电脑上工作正常......但是当我上传那个时间它会给出错误,如...,



**************错误*******************

这是一个错误使用注册为allowDefinition ='MachineToApplication'的部分超出应用程序级别。此错误可能是由于虚拟目录未在IIS中配置为应用程序而造成的。





 ASP.NET来识别传入的用户。 
第50行: - >
第51行:< 身份验证 mode = 表格 < span class =code-keyword>>
第52行:< 表单 path = / timeout = 100 保护 = 所有 < span class =code-attribute> defaultUrl = Default.aspx / >
第53行:< / authentication >







PLZ帮助我....

解决方案

您托管应用程序时似乎没有提供正确的路径。通常,当您使用IIS映射文件夹时,如果您达到一级,则会出现此错误。


您好Kavita,



似乎您的文件夹donot具有使用应用程序保存和删除文件的适当安全权限。



您可能需要为保存上传文件的文件夹提供安全权限。

您好Kavita,



请将您的文件夹转换为应用程序,它将解决您的问题。请转到IIS - >域 - >你的文件夹 - >右键单击,然后将其转换为应用程序。希望它有所帮助


Hi...I have one web application..On my local pc it works fine...but when i uploaded that time it gives error like...,

**************Error*******************
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS..


ASP.NET to identify an incoming user.
Line 50:         -->
Line 51:     <authentication mode="Forms">
Line 52:       <forms path="/" timeout="100" protection="All"           defaultUrl="Default.aspx" />
Line 53:     </authentication>




PLZ HELP ME....

解决方案

it seems like you do not give proper path when you host your application. Generally this error will occur if you are one level up when you map folder with IIS.


Hi Kavita,

It seems your folder donot have proper security rights to save and delete file using application.

You may need to provide security right to folder in which you save uploaded file.


Hi Kavita,

Please just kindly convert your folder to application, it will solve your problem. Please just go to IIS--> domain--> your folder--> right click and then convert it to application. Hope it helps


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

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