我從ASP.NET配置中創建了一個用戶 我正在使用sql server,但我沒有創建任何成員資格數據庫。其中,admin是我做科瑞用戶訪問被拒絕創建App_Data子目錄
<authentication mode="Forms">
<forms loginUrl="Login.aspx"></forms>
</authentication>
<authorization>
<allow users="admin" />
<deny users="?" />
</authorization>
:
我沒有這個添加到配置文件。 ,它的效果非常好。
我已經uploded我的網站,我得到了我要創建具有寫權限的App_Data文件夾並將其添加到我的應用程序文件夾中的錯誤之後,現在我得到這樣的:
與網絡相關的或特定於實例在建立與SQL Server的連接時發生錯誤。服務器未找到或無法訪問。驗證實例名稱是否正確,並將SQL Server配置爲允許遠程連接。 (提供者:SQL網絡接口,錯誤:26 - 錯誤定位服務器/實例指定)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
喜PRASHANT,日Thnx烏拉圭回合的答案,我使用的是2008年,在這裏重量我做:在實例名稱的SQL Server 2008>右鍵 - >小平面>從Facet下拉列表中選擇「Surface Area Configuration」>我沒有找到就像你說的所以我檢查了RemoteDacEnabled(true)但是沒有發生:$ – Sosy
你有Sql Server Management Studio嗎?如果是,則可以打開它並右鍵單擊相關實例,然後轉到屬性 - >連接 - >選中「允許遠程連接到此服務器」。 您可能還必須啓用TCP/IP協議才能通過配置管理器啓用。 – Prashant