Login user id not persistent after user logs in. Works locally but not on server side.

Hi, I've built a mini app that runs of SQL Express 2005 with VWD Express 2005 locally with no problems on XP Pro.  When I split the app and the SQL database across two servers (Server 2003) the ASP.Net 2.0 Web Admin Tool doesn't seem be to working properly.  I'm using Forms authentication.  The user can sign in on the login screen but no authentication or retention of the user ID occurs.  Pages that are blocked from that certain user are now available, whereas on my local XP machine the restrictions are in effect.  I've checked the connections, authentication and authorization tags have been set in the web.config but still don't understand whats happening?  Can anyone help?

banker. 

0
banker
4/6/2008 5:57:25 AM
asp.net.security 27051 articles. 1 followers. Follow

1 Replies
701 Views

Similar Articles

[PageSpeed] 51

Hi

For investigation, could you provide more information?
It would be great if you paste your steps, Exception type, Exception message, call stack and so on.


Best Regards
XiaoYong Dai
Microsoft Online Community Support

Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
0
XiaoYong
4/8/2008 7:25:09 AM
Reply:

Similar Artilces:

login script provided--User cannnot login as local user the script fails but can login as local admin on xp pc
> Hi all > the error is as follows > novell client scripts has encountered a problem > and needs to close > the exception unknow s/w exception 0xc06d007e > occured in the application at location ox77e738b2 > I have never seen this before and i have tried reinstalling the cleint > but it didnt work. This occurs when the user ins logged into a xp pro pc > as a user though it doesnt occur when logged in as a local admin on the > box. this is only happening on one box. > Login script is below > MAP ERROR OFF BREAK OFF if member of ".every...

Login Control logs user in, but User is not authenticated, but user really is!
I am using aspnetmembershipprovider.  Everything works fine.  I slap a login control on my login page and am able to login and get to my secure folder etc.  When I try and put some code in the LoggedIn method "User.Identity.IsAuthenticated" = false, yet if I blow through that, I am logged, authenicated etc.  The documentation says that the LoggedIn event is "after the user is authenticated".  Any Ideas what is up?Thanks,TPS------------------------------------------------------Note Collaboration for your next confernce call.http://www.ConferenceCallNotes.com I am...

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection
This is my first time to deploy an asp.net2 web site. Everything is working fine on my local computer but when i published the web site on a remote computer i get the error "Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed" (only in pages that try to access the database) Help pleaseee Hi You could take a look at this : http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=152338&SiteID=1Sincerely,Young Fang Hi ...

Cannot open user default database. Login failed. Login failed for user 'DOMAIN\User'. (.Net SqlClient Data Provider)
Hi when i try and open a database in sql server management studio i get the error "Cannot open user default database. Login failed. Login failed for user 'DOMAIN\User'. (.Net SqlClient Data Provider)", what can i do to rectify this, i have googled around and still havent found no answers. Which authentication mode is your Sql Server configured - MixedMode, Windows Authentication or Sql Server Authentication? Please refer to http://msdn2.microsoft.com/en-us/library/ms366351.aspx and http://blogs.msdn.com/sql_protocols/archive/2006/02/21/536201.aspx    Ple...

Login failed for user 'Bachelorplace'. The user is not associated with a trusted SQL Server connection. (.Net SqlClient Data Provider)
please tellme how to resolve this error, i m using server studio management tool. and trying to connect using sql server authentication. my pc is over a domain.   Login failed for user 'Bachelorplace'. The user is not associated with a trusted SQL Server connection. (.Net SqlClient Data Provider)  check whether that sql server is allowing sqlauthentication or not.select that server -> right click it-> select  properties  -> in the window, select security -> check what is the server authentication. it should be  sqlserver and windows authentica...

User.IsInRole Not working on Intranet Server, works on local host
I have a problem....I have an application using Windows Authentication. What I want to do is use the roles defined in Active Directory to limit access to the application. When I run the app on the local host, Domain user groups are accessible for example using User.IsInRole("domainname\MIS") But when i moved the app to the Intranet server, the domain groups are not accessible anymore. The web directory is set to not allow anonymous access, and set to use windows authentication. The intranet server is on the same domain. Is there some sort of setting that I have to do. i...

how to get the user id of the currently logged in user?
hi,       m develoing a site whereby employees are supposed to log in and take orders.  the users are being created thru the ASP web Administration tool and stored by default into the SQL Server Database named AspNetDB.mdf that's stored in the App_Data folder of our website. the database is created auomatically. How to display the userid as this userid is too complicated and there can be many users with the same username. You can use the Membership class to get the info about a user: Membership.GetUser() The GetUser method can also take a username as a...

Server user id is not a valid user in database
Good afternoon, I just restored a database and am receiving the following error [Sybase][ODBC Driver][Adaptive Server Enterprise]Server user id 4 is not a valid user in database Is there a system function or stored procedure or some other SQL that I can use to fix this issue - or do I have to create the master logins and redo the restore. Thanks in advance. Whatty There is no magic wand... This is for the experienced dba. If you have a copy of master..syslogins in bcp native format then restore that too. You may need to delete most logins except sa & pr...

Users logging in as the same user..
HI there.. I have a problem with ASE12.0 .. I have created 10 users on the database and granted everybody permissions and all.. However, it seems everybody, no matter who logs in, logs in as the same user.. For eg... I have user logins John, Alex, Alan, Steve......etc etc And i created a user group for all of them (eg developers..) However, when they log on to isql, anything that they do will be under John, no matter if it is logins John, Alex, Steve... or etc etc.. If i do a sp_who.. all the connections will be listed as John. If they create tables, all table created will ...

Cannot open user default database. Login failed. Login failed for user 'Server\Username'... again
I have been working for a few month on a project, when suddenly I can not access the local database I use for testing. Here are some details:Microsoft Visual Studio, C# application, The database is in the folder "App_Data," gets attached automatically, and is accessed using Windows authentication, and hence, no user accounts were created explicitely. Connection string:<add name="ASPNETDBConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="Sy...

Creating a user to login with using the Login Control and the Ad provider... can't log user in after creation
  Hi I'm trying to create a user in AD from a web form, and then have the user be able to login to a web form with the login control and the Ad provider.   I have a user created by someone else in AD that can log in, but when I create the user using the code below they can't login.   Does anyone have any idea what I'm not doing to enable this user correctly, hes in the same ou and the same groups as the user that can login. the only difference i can see is the display name is not set and the AdminCount has not been set yet...&n...

Getting error "Login failed for user ''. The user is not associated with a trusted SQL Server connection" on trying to authenticate a user
Hi, I created aspnetdb on Sql Server 2005 and modified my web.config LocalSqlServer connection string to connect to the Sql Server instead of mdf file on Sql Server. When i click Log In button on my login control i am getting the error "Login failed for user ''. The user is not associated with a trusted SQL Server connection" But when i bind a radio button list or any control to select from aspnet_users or roles table data is displayed fine without any login errors (i am using aspnetdbConnectionString given below for binding data). Why is it happening only when i authenticate but...

Login control authenticates user and redirects, but does not log user in
I am trying our the "SQLite 3.0 Membership and Role Provider for ASP.NET 2.0" found here: http://www.eggheadcafe.com/articles/20051119.asp since I do not have access to a SQL server. However I have run into a problem where the login control authenticates the user, then redirects to the redirect page, but ASP.NET detects the user as not logged in. One weird thing I noticed is that on the redirect page there is a check: if(Page.User.Identity!=null) this.Label1.Text = "Welcome," + Page.User.Identity.Name + "!"; The label control displays "Welcome, !" meaning the login c...

How can i get the user id of the user currently logged in?
Hi, I need to get the userId of the user currently logged in. Do I need to use 'user profile' for that? I am using the database schemas installed by the aspnet_regsql.exe. Any suggestions will be very much appreciated. E     Dim user As MembershipUser        user = Membership.GetUser(True)        Label1.Text = user.UserName If this post was useful to you, please mark it as answer. Thank you!Regards.mimranshafiq.NET Web Developerhttp://www.dotnetclassic.com VB:Dim usr as MembershipUser=Membership....

Web resources about - Login user id not persistent after user logs in. Works locally but not on server side. - asp.net.security

Persistent - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

HTTP persistent connection - Wikipedia, the free encyclopedia
Under HTTP 1.0 , there is no official specification for how keepalive operates. It was, in essence, tacked on to an existing protocol. If the ...

Persistent Close Air Support (PCAS) - YouTube
DARPA's Persistent Close Air Support (PCAS) program envisions more precise, prompt and easy air-ground coordination for close air support—delivery ...

WA teens jailed for 6.5 years for 'persistent' killing
A trio of teenagers who fatally bashed a 16-year-old boy during a staged drug deal in Perth have been sentenced to six and a half years behind ...

Oil plunges on persistent global glut
Oil declined to the lowest level since 2008 in London amid estimates that OPEC's decision to scrap production limits will keep the market oversupplied. ...

APT attackers getting more evasive, even more persistent - applications, security, APTs, legal, FireEye ...
Fear of discovery fuels sneakier tactics by writers of persistent malware

Thousands of primary school students across NSW suspended for 'persistent misbehaviour'
THE number of children on long suspension from school has blown out to the highest level in five years.

Climate change proving a persistent biter of prime ministerial bottoms
For climate-change doomsayers and "warmists" alike, this has become the force majeure in Australian politics.

Persistent Scud prevails
Mark Philippoussis is about to enter Wimbledon's main stage having moved into the fourth round with an erratic, brave and, finally, convincing ...

Nobel laureate Desmond Tutu in Cape Town hospital with 'persistent infection'
... Town. Johannesburg: South African archbishop and Nobel laureate Desmond Tutu has been admitted to a hospital in Cape Town to treat a "persistent ...

Resources last updated: 1/20/2016 1:49:46 PM