Wrox Programmer Forums
|
Visual Web Developer 2005 Discuss creating ASP.NET 2.0 sites with Microsoft's Visual Web Developer 2005. If your question is more specific to a piece of code than the Visual tool, see the ASP.NEt 2.0 forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 11th, 2006, 05:23 AM
Registered User
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login Control and IIS

Hi,

I have a login control located on my site.master, with a LoginView. When I debug a page using VS2005 it logs in O.K and shows the log in details in the Login View.

When I publish the site to ISS and do the same ( login, that is )nothing happens after logging in, the page is just refreshed. If I provide a invalid login, it does inform me of the invalid login.

The username etc was previously set up using Web Admin Tool

Thanks for any help


 
Old February 22nd, 2006, 01:00 PM
Authorized User
 
Join Date: Oct 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you managed to fix this one as I am having a simular problem where it tells me that the 'Your login attempt was not successful. Please try again'.

I am using the same username and password as before?

Anyone got any ideas?

Regards
Ryan
 
Old April 15th, 2006, 01:12 AM
Registered User
 
Join Date: Feb 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to samir_katore
Default

hello ,
when you enter login name and password dont press enter, Click on Button "login" this works?
I dont't why it is happaning, but when i use it in edit it works for enter. but iis i have to click the login button.

samir
 
Old May 12th, 2006, 06:36 PM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you have IntegratedSecurity=True in your webconfig file and you run your application from the debugger, the SQL server will recognize you and authenticate you to use the db. But when you run from IIS, the SQL server will not know who is using the application. There are two ways to solve this problem. First, you could add a user id and password in the webconfig file for connection string..
for example...

<connectionStrings>
<add name="LocalSqlServer" connectionString="Data Source=servername1;Initial Catalog=aspnetdb;User ID=sa;Password=sa"
providerName="System.Data.SqlClient" />
</connectionStrings>
(or)
second
Create a user in sql server and give him full permissions. ask your dba.
This should solve your problem.





Similar Threads
Thread Thread Starter Forum Replies Last Post
login control hastikeyvan ASP.NET 3.5 Basics 1 May 7th, 2008 04:47 AM
Login Control p330418 ASP.NET 2.0 Basics 0 February 21st, 2008 01:03 AM
Login Control in IIS msrushton ASP.NET 2.0 Basics 0 January 11th, 2006 05:21 AM
IIS and Microsoft Management Control mmarkym Classic ASP Basics 6 October 9th, 2003 04:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.