ASP.NET MVC users not being copied over on publish -


i'm new asp.net mvc, , i'm trying convert simple asp.net application mvc authorization.

i have working locally fine, when publish iis, users database apparently not copied on correctly (even though running on same machine developing on)

it not appear database access issue, since when create new user using register link can log in fine. problem is, users (and associated roles) created using asp.net web site administration tool aren't being recognized. error message gives me simple "log in or password incorrect" - there's nothing not being able access database or that.

does know should source of problem, or has else had problem before?

potentially releveant additional information:

when first published project, got error in web.config said "applicationservices" defined, preventing me accessing page on site. "fixed" in manner called "hacky" if trying polite - added "<remove name="applicationservices" />" right above it, portion of web.config looks this:

<remove name="applicationservices" /> <add name="applicationservices"      connectionstring="data source=.\sqlexpress;integrated security=sspi;attachdbfilename=|datadirectory|aspnetdb.mdf;user instance=true"      providername="system.data.sqlclient" /> 

any ideas?

roles , users partitioned applicationname. check aspnet_applications table , compare see in aspnet_roles , aspnet_users.

this post scott guthrie explains happening, , how configure applicationname on providers.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -