ASP.NET – Web.config登录错误找不到存储过程’dbo.aspnet_Chec
我正在使用表单身份验证和gettnig以下错误:
这是我的web.config文件中的代码: <?xml version="1.0"?> <configuration> <connectionStrings> <add name="OleConnectionStringSource" connectionString="Data Source=alg-sql01;Initial Catalog=PriceFinder;User ID=PriceFinderUser;Password=******;Integrated Security=false" providerName="System.Data.SqlClient" /> <add name="OleConnectionStringTarget" connectionString="Data Source=alg-sql01;Initial Catalog=PriceFinder;User ID=PriceFinderUser;Password=******;Integrated Security=false" providerName="System.Data.OleDb;" /> <add name="PriceFinderConnectionString" connectionString="Data Source=alg-sql01;Initial Catalog=PriceFinder;Integrated Security=True" providerName="System.Data.SqlClient" /> <add name="PriceFinderConnectionString2" connectionString="Data Source=alg-sql01;Initial Catalog=PriceFinder;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <compilation debug="true" targetFramework="4.0" /> <authentication mode="Forms"> <forms loginUrl="~/default.aspx" timeout="2880" /> </authentication> <membership> <providers> <clear/> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="OleConnectionStringSource" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> </providers> </membership> <profile> <providers> <clear/> <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/> </providers> </profile> <roleManager enabled="false"> <providers> <clear/> <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /> <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /> </providers> </roleManager> ????? 我该如何解决这个错误?你需要看到任何其他文件吗? 解决方法
您是否在SQL-Server中创建了表和存储过程?
如果您使用MS Sql-Server作为DBMS,请查看this link并执行aspnet_regsql.exe. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- IIS7 – 一次只能提供一页.这是一个让我crazy!
- asp.net – 如何打包/发布PDF以进行部署?
- asp.net – Response.Redirect(Request.Url.AbsolutePath)总
- ASP.NET:如果使用onclick,则不会调用OnServerClick事件处理
- asp.net-mvc – asp.net mvc博客引擎
- asp.net 2.0中利用Ajax2.0实现JSON传送大量页面数据
- asp.net-mvc-3 – 在MVC 3上启用黄屏死机
- IIS应用程序池_缓存回收
- asp.net-mvc – MVC EditorFor里面的另一个EditorFor
- asp.net-mvc-4 – 如何开发一个ASP.NET Web API接受一个复杂
- ASP.NET MVC中引用JavaScript的正确方法?
- asp.net – 从C#代码增加Http Runtime MaxReques
- asp.net-mvc – 在asp.net mvc中选择列表用法
- ASP.NET Cookieless Forms在登录页面被加入书签时
- asp.net-mvc – 如何管理服务层中的事务?
- asp.net – 何时可以安全地禁用viewstate?
- 如何在ASP.NET Web表单中将路由重定向到另一个路
- Asp.Net / C#何时?等于A? (é等于E)
- asp.net-mvc-2 – ASP.MVC 2 RTM ModelState Id属
- 打造更好用的 EF 自动审计