在IIS错误发布网站 [英] Publishing website on IIS error

查看:135
本文介绍了在IIS错误发布网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,当我发布通过IIS我的网站,我得到这个错误code,你可以看到下面。你能帮助我吗?

 配置错误
    说明:该请求提供服务所需的配置文件的处理过程中发生错误。请检查下面的特定错误详细信息并适当地修改配置文件。    分析器错误信息:这是使用注册为allowDefinition =应用程序级别之外'MachineToApplication'的节是错误的。这个错误可以通过未被配置为在IIS中应用程序的虚拟目录引起的。    源错误:
    27号线:LT; /组件>
    第28行:LT; /编译>
    第29行:LT;身份验证模式=表格>
    第30行:LT;形式loginUrl =〜/帐号/登录超时=2880/>
    31号线:LT; /认证>
    源文件:C:\\用户\\ FURKAN \\桌面\\ WebCity \\ webcity \\ web.config行:29

然后,我将我的根字典应用程序,但我得到这个错误

 配置错误
说明:该请求提供服务所需的配置文件的处理过程中发生错误。请检查下面的特定错误详细信息并适当地修改配置文件。分析器错误信息:无法识别的属性targetFramework。请注意,属性名称是区分大小写的。源错误:
第17行:LT;的System.Web>
第18行:LT;的httpRuntime requestValidationMode =2.0/>
第19行:LT;编译调试=真targetFramework =4.0>
第20行:其中,组件>
第21行:LT;添加组件=System.Web.Abstractions,版本= 4.0.0.0,文化=中性公钥= 31BF3856AD364E35/>
源文件:C:\\用户\\ FURKAN \\桌面\\ WebCity \\ WebCity \\ web.config行:19


解决方案

回答第一个问题是这样的:

这通常意味着你还没有配置的目录为您的网站作为一个应用程序。打开IIS管理器,找到根目录为您的网站(其中web.config中的),单击右键,然后选择转换为应用程序。

有关新的问题,它是.NET版本的问题。你要么没有asp.net 4.0安装,或者您有应用程序池设置为使用错误的框架。这也许是后者,所以去高级设置为您的网站,选择应用程序池设置,并选择使用4.0框架调用ASP.NET 4.0应用程序池,或任何其他。如果没有任何,那么你需要安装.NET 4.0

Hi everyone when i publish my website via IIS, I get this error code as you can see at below. Can you help me ?

 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 27:       </assemblies>
    Line 28:     </compilation>
    Line 29:     <authentication mode="Forms">
    Line 30:       <forms loginUrl="~/Account/LogOn" timeout="2880" />
    Line 31:     </authentication>


    Source File: C:\Users\furkan\Desktop\WebCity\webcity\web.config    Line: 29 

Then I converted my root dictionary to Application but I get this error

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: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error: 


Line 17:   <system.web>
Line 18:     <httpRuntime requestValidationMode="2.0" />
Line 19:     <compilation debug="true" targetFramework="4.0">
Line 20:       <assemblies>
Line 21:         <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />


Source File: C:\Users\furkan\Desktop\WebCity\WebCity\web.config    Line: 19 

解决方案

The answer to the first issue was this:

This usually means you have not configured the directory for your website as an application. Open up IIS Manager, find the root directory for your website (where web.config is), right click, and select "Convert to Application".

For the new issue, it's a problem of the .NET version. You either don't have asp.net 4.0 installed, or you have the application pool set to use the wrong framework. It's probably the latter, so go to the advanced setting for your site, select the Application Pool setting, and choose an Application Pool called ASP.NET 4.0, or any other that uses the 4.0 framework. If there aren't any, then you need to install .NET 4.0

这篇关于在IIS错误发布网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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