Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 ASPNETBD.mdf deployment problem

Author  Topic 

nmpgaspar
Starting Member

1 Post

Posted - 2008-05-14 : 10:07:01
I have created some users to my site using the WAT tool.
Therefore, the user information was automatically stored in ASPNETBD.mdf file.

When running the site in Visual Studio 2008, it works all just fine, but after deploying, i'm still able to query the database, but the logins no longer work. I always get: “Login attempt unsuccessful, please try again.”

I found that the problem is exposed on http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx

But, i do not have any 'membership' tag in my web.config file, only <roleManager enabled="true"/>, which i changed to:

<roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">

<providers>

<add
applicationName="/"
name="AspNetWindowsTokenRoleProvider"
type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

</providers>
</roleManager>

But no good. I'm still getting the same error after deploying. anyone knows how to fix that?
   

- Advertisement -