0
我正在使用Windows 8.1,在其上安裝了VS2012和VS2013,並且我在IIS上運行我的網站,但是每當我運行我的項目時,有關LocalSqlServer連接字符串的錯誤在我的機器配置中爲空。我在「C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Config」目錄下查看了我的機器配置,發現連接字符串在那裏。我差不多花了2天時間,但無法讓我的網站在IIS上運行。任何幫助表示讚賞? 在應用程序配置中找不到連接「LocalSqlServer」,或者連接字符串爲空
Server Error in '/GCC.Server' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
Source Error:
Line 257: <roleManager>
Line 258: <providers>
Line 259: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 260: <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 261: </providers>
Source File: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config Line: 259
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009
這是完全錯誤的圖像不可讀因爲我的筆記本電腦的分辨率。
你可以發佈有問題的完整錯誤,而不是在圖像?它不可讀。 –