2014-12-04 222 views
0

如何禁用表单身份验证?每当我导航到页面时,页面都会尝试通过服务器上的SQL实例进行身份验证。我没有设置表单身份验证,但仍然没有改变。表单身份验证设置为无,但仍在尝试使用SQL Server进行身份验证

http://go.microsoft.com/fwlink/?LinkId=169433 - >


<system.web> 
<httpRuntime maxRequestLength="65536" executionTimeout="3600"/> 
<compilation debug="true" targetFramework="4.0" /> 
<!--<authorization> 
    <allow users="*"/> 
</authorization>--> 
<!--<authentication mode="None"> 
    <forms loginUrl="~/Account/Login" timeout="2880" defaultUrl="~/" /> 
</authentication>--> 
<profile defaultProvider="DefaultProfileProvider"> 
    <providers> 
    <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, 

System.Web.Providers,版本= 1.0.0.0,Culture = neutral, PublicKeyToken = 31bf3856ad364e35“ connectionStringName =”DefaultConnection“applicationName =”/“/>

+2

FormsAuthentication与SQL无关。这完全是一个基于cookie的系统。显然还有一些其他情况正在导致数据库访问。我注意到你有一个配置文件提供商..这是最有可能做数据库访问。 – 2014-12-04 08:33:14

回答

0

好了,所以我离开启用表单认证,并且相当设置IIS有安装服务器的访问权限,以SQL Express实例去了。所有页面现在都正常工作。

相关问题