我用的开发工具是VS2005,用的数据库是SQL Server 2000,运行PetShop 4.0 没有问题。可是点击登录时,也就是点击Sign in,会出现如下错误:
“/Web”应用程序中的服务器错误。
--------------------------------------------------------------------------------
配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。
分析器错误信息: Connection string cannot be blank.
源错误:
行 123: <providers>
行 124: <add name= "AspNetSqlMembershipProvider " type= "System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a " connectionStringName= "LocalSqlServer " enablePasswordRetrieval= "false " enablePasswordReset= "true " requiresQuestionAndAnswer= "true " applicationName= "/ " requiresUniqueEmail= "false " passwordFormat= "Hashed " maxInvalidPasswordAttempts= "5 " minRequiredPasswordLength= "7 " minRequiredNonalphanumericCharacters= "1 " passwordAttemptWindow= "10 " passwordStrengthRegularExpression= " " />
行 125: <add name= "MySqlMembershipProvider " type= "MySql.Web.Security.MySqlMembershipProvider, MySql.Web, Version=5.1.1.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d " connectionStringName= "LocalMySqlServer " enablePasswordRetrieval= "false " enablePasswordReset= "true " requiresQuestionAndAnswer= "true " applicationName= "/ " requiresUniqueEmail= "false " passwordFormat= "Clear " maxInvalidPasswordAttempts= "5 " minRequiredPasswordLength= "7 " minRequiredNonalphanumericCharacters= "1 " passwordAttemptWindow= "10 " passwordStrengthRegularExpression= " " />
行 126: </providers>
行 127: </membership>
源文件: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config 行: 125
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.832; ASP.NET 版本:2.0.50727.832
请各位大侠帮忙,谢谢!
------解决方案--------------------------------------------------------
数据库连接字符串为空
Connection string cannot be blank
------解决方案--------------------------------------------------------
用的撒子数据库哦? MySql 都出来了
配置文件中找 LocalSqlServer 这个键对应的值是什么