网站上传问题 [英] Website Uploading Problem
本文介绍了网站上传问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过在文件系统中使用asp.net和c#来构建网站
现在我将其上传到了网络上
当我过去运行该页面时,它显示了这样的错误
I Build a website by using asp.net and c# in filesystem
now i uploaded it in the web
when i used to run that page,it shows an error like this
Server Error in ''/'' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: 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.
Source Error:
Line 24: ASP.NET to identify an incoming user.
Line 25: -->
Line 26: <authentication mode="Windows" />
Line 27: <!--
Line 28: The <customErrors> section enables configuration
Source File: C:\Domains\manjummelprovince.org\wwwroot\cmsnew\testwebsite\web.config Line: 26
Version Information: Microsoft .NET Framework Version:2.0.50727.3607; ASP.NET Version:2.0.50727.3082
我该怎么办才能消除此错误
我也将其转换为iis应用程序,然后在上传到Web时可以通过本地主机运行,它显示相同的错误
请帮助我
Kishore R->
what can i do to remove this error
i also converted it as iis application,and then it can run via local host,bt when uploading into web,it shows same error
Kindly help me
Kishore R-->
推荐答案
仅检查应用程序中是否有多个Web.Config文件?
此外,检查您在IIS中使用的正确框架,注册该框架并重置IIS,然后重试.
Just check, if you have multiple Web.Config files in your application?
Further, check for the correct framework you are using in IIS, register the framework and reset the IIS and re-try.
替换第26行的部分XML元素:
Replace the partial XML element on line 26:
"Windows" />
与:
with:
<authentication mode="Windows" />
这篇关于网站上传问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文