阅读背景:

成员资格信息来自machine.config

来源:互联网 

I started a web application in Visual Studio 2012 wiht the usual login, register, etc. pages. I have SQL database with aspnet_xxx tables. All membership, roles and profiles use my connection string to this database. However, it seems the application uses "Membership" info from machine.config instead of web.config. I am including relevant parts of both below. In the Membership section of web.config, if I leave defaultProvider="DefaultMembershipProvider", and then run login.aspx and try to log in, I get an error saying "invalid object name: dbo.users", if I remove it from Membership section, I don't get the error but Membership section of Machine.config is used. The reason I know this is happening is that I set min password length in web.config to 6 and it is 7 in machine.config. In Register.aspx I have the following line:I started a web application in Visual Studio 20




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: