zoukankan      html  css  js  c++  java
  • [解决]IIS7:: allowDefinition='MachineToApplication' 的节是错误的

    配置错误

    说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。

    分析器错误消息: 在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误。

    源错误:

    行 10: 	<system.web>
    行 11: 		<compilation debug="true" targetFramework="4.0"/>
    行 12: 		<authentication mode="Forms">
    行 13: 			<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
    行 14: 		</authentication>

    源文件: G:\asp.net\WebSite3\web.config    行: 12 

    在iis中选择选择你的网站,单机右击转为应用程序即可解决。

    如下图:

  • 相关阅读:


    django 认证系统--3
    django 认证系统--2
    django 认证系统--1


    关于二叉树
    [GeeksForGeeks] Remove all half nodes of a given binary tree
    [LintCode] Letter Combinations of a Phone Number
  • 原文地址:https://www.cnblogs.com/liul21cn/p/2985363.html
Copyright © 2011-2022 走看看