2014-12-04 213 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實例去了。所有頁面現在都正常工作。

相關問題