Sir,
I am working on an e-commerce project using ASP.Net and C#.Net (Visual Studio 2005-Windows XP).
I am facing problems in the login module. I created the login accounts using the roles and users in the ASP.Net Website Administration Tool. The login module is working fine when I test the website within the Visual Studio. I mean the login form is working
properly under the Development Server integrated in the Visual Studio. What I want is to make this work properly under IIS (i.e. the Production Server). When I deployed the project to the IIS, the login form with the login control is displayed, but
cannot login and gives a login failed message. I posted this problem in few forums along with the source code of the login module only. But nobody cared in downloading my source code. I have searched about this issue in Google and they are providing good tutorial
links to solve this issue. Even after reading those I couldn’t solve this as I am new to Web Development. I need help from experts on this. Can you please provide me a sample source code with the web.config and also a description of the major steps in configuring
IIS to support the role based login?
I had gone through the following titles under google
Verify that your Membership database, ASPNETDB, is available from your production website. If you loaded this database in a server behind your Internet firewall, you may not have access to it. Thus, also verify your connection string to this database as
well.
Christopher Reed, MCT, MCPD, MCTS, Microsoft Specialist, MTA
"The oxen are slow, but the earth is patient."
some time it happens that aspnetdb is inside tha appdata folder but it is hide. so u please check the size of App_Data folder.
and see this link from here u can download code also. unzip that code and read the instructions.. thne u will be able to create aspnetdb and then test that application..
I shall be much obliged to you if you help me by downloading and checking the source code from the following link.
The page contain only a login form with the login control.
Please try deploying the project in IIS (Windows XP).
The login is working in Visual Studio but not in IIS. If you can successfully login in IIS too , then please help me by providing the necessary steps for that.
sherinnovati...
Member
11 Points
26 Posts
ASP.NET IIS login form not working
Jul 08, 2010 12:11 PM|LINK
Sir,
I am working on an e-commerce project using ASP.Net and C#.Net (Visual Studio 2005-Windows XP).
I am facing problems in the login module. I created the login accounts using the roles and users in the ASP.Net Website Administration Tool. The login module is working fine when I test the website within the Visual Studio. I mean the login form is working properly under the Development Server integrated in the Visual Studio. What I want is to make this work properly under IIS (i.e. the Production Server). When I deployed the project to the IIS, the login form with the login control is displayed, but cannot login and gives a login failed message. I posted this problem in few forums along with the source code of the login module only. But nobody cared in downloading my source code. I have searched about this issue in Google and they are providing good tutorial links to solve this issue. Even after reading those I couldn’t solve this as I am new to Web Development. I need help from experts on this. Can you please provide me a sample source code with the web.config and also a description of the major steps in configuring IIS to support the role based login?
I had gone through the following titles under google
"Always set the "applicationName" property when configuring ASP.NET 2.0 Membership and other Providers"
I would like you to see the following link which I tried. I think this will help you to help me.
http://www.asp.net/hosting/tutorials/users-and-roles-on-the-production-website-vb
Thanks in Advance.
Careed
All-Star
18796 Points
3648 Posts
Re: ASP.NET IIS login form not working
Jul 08, 2010 12:52 PM|LINK
Verify that your Membership database, ASPNETDB, is available from your production website. If you loaded this database in a server behind your Internet firewall, you may not have access to it. Thus, also verify your connection string to this database as well.
"The oxen are slow, but the earth is patient."
sherinnovati...
Member
11 Points
26 Posts
Re: ASP.NET IIS login form not working
Jul 08, 2010 04:31 PM|LINK
I had ASPNETDB in the development environment within the Solution Explorer->App_Data. (in Visual Studio)
But App_Data is empty in IIS. How to bring that database there in the IIS?
sukumarraju
All-Star
17297 Points
3052 Posts
Re: ASP.NET IIS login form not working
Jul 08, 2010 05:01 PM|LINK
Redeploy the application and make sure that you have ASPNETDB.MDF in your App_Data folder.
Application Architecture Guide 2.0
My Blog
Twitter
vishwaraj1
Contributor
3687 Points
861 Posts
Re: ASP.NET IIS login form not working
Jul 08, 2010 05:10 PM|LINK
some time it happens that aspnetdb is inside tha appdata folder but it is hide. so u please check the size of App_Data folder.
and see this link from here u can download code also. unzip that code and read the instructions.. thne u will be able to create aspnetdb and then test that application..
http://srikanthtechnologies.com/aspnet/projects/songs.html
Vishwaraj Malik
Skype ID: vishwaraj.malik
VB to C# Converter
Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
Careed
All-Star
18796 Points
3648 Posts
Re: ASP.NET IIS login form not working
Jul 08, 2010 07:46 PM|LINK
When you move your files over to the production server, you need to move the database file contained in App_Data directory as well.
"The oxen are slow, but the earth is patient."
sherinnovati...
Member
11 Points
26 Posts
Re: ASP.NET IIS login form not working
Jul 09, 2010 05:48 AM|LINK
Now I have the App_Data folder (not empty) in the production server. But still the problem persists. I cannot login. Please help
sukumarraju
All-Star
17297 Points
3052 Posts
Re: ASP.NET IIS login form not working
Jul 09, 2010 08:06 AM|LINK
Provide your Web.config , so that further help can be provided.
Also look at my article from blog on this issue at http://weblogs.asp.net/sukumarraju/archive/2010/01/17/configuring-web-application-to-utilise-asp-net-application-services-database.aspx
Application Architecture Guide 2.0
My Blog
Twitter
sherinnovati...
Member
11 Points
26 Posts
Re: ASP.NET IIS login form not working
Jul 09, 2010 12:41 PM|LINK
sherinnovati...
Member
11 Points
26 Posts
Re: ASP.NET IIS login form not working
Jul 09, 2010 01:00 PM|LINK
I shall be much obliged to you if you help me by downloading and checking the source code from the following link.
The page contain only a login form with the login control.
Please try deploying the project in IIS (Windows XP).
The login is working in Visual Studio but not in IIS. If you can successfully login in IIS too , then please help me by providing the necessary steps for that.
The download link is below.
http://www.mediafire.com/file/eilb1qohe52/login.rar
Thank You sukumarraju.