I've got a simple MVC 4 application with a user and role defined in the ASP.NET Configuration. They work fine locally (Running with F5) but when published to Azure Web Site the users don't exist or at least, when trying to log in I can't. Could either be
the user doesn't exist or that the passwords isn't matching.
e.g. I have a page for Admins only, I have one admin user. Locally I created the user and role in the ASP.NET Configuration page and I can log in as Admin and access the secured page. After publishing to Azure Web Site I can't log in as Admin.
Can anyone help? How do I publish my ASP.NET Configuration?
I am currently working on a new tutorial that shows how to this by using the dbDacFx provider during web publishing. Send me a message with your email address and I'll send you an advance copy. You can also deploy the database separately from web publishing;
see the links at
http://www.asp.net/whitepapers/aspnet-web-deployment-content-map#databaseseparate
BanksySan1
Member
3 Points
6 Posts
ASP.NET Users not publishing to Azure
Jan 20, 2013 08:58 PM|LINK
I've got a simple MVC 4 application with a user and role defined in the ASP.NET Configuration. They work fine locally (Running with F5) but when published to Azure Web Site the users don't exist or at least, when trying to log in I can't. Could either be the user doesn't exist or that the passwords isn't matching.
e.g. I have a page for Admins only, I have one admin user. Locally I created the user and role in the ASP.NET Configuration page and I can log in as Admin and access the secured page. After publishing to Azure Web Site I can't log in as Admin.
Can anyone help? How do I publish my ASP.NET Configuration?
Thanks in Advance
(I'm using Visual Studio Express 2012 for Web)
Dave
tdykstra
Contributor
4463 Points
624 Posts
Microsoft
Moderator
Re: ASP.NET Users not publishing to Azure
Jan 30, 2013 08:08 PM|LINK
I am currently working on a new tutorial that shows how to this by using the dbDacFx provider during web publishing. Send me a message with your email address and I'll send you an advance copy. You can also deploy the database separately from web publishing; see the links at http://www.asp.net/whitepapers/aspnet-web-deployment-content-map#databaseseparate