1
这是Default.aspx文件Windows身份验证在本地系统
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"Inherits="Default"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
Welcome to sample website:)
</div>
</form>
</body>
</html>
这是web.config文件
<?xml version="1.0"?>
<configuration>
<system.web>
<authentication mode="Windows"/>
<identity impersonate="true"/>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
</configuration>
我无法获得Windows身份验证,我做了必要的修改也在applicationhost.config文件中。很好地帮助我如何继续前进。