"System.Data.SqlClient.SqlException: Login failed for user 'VASANT\ASPNET'."

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2006
Posts: 10
Reputation: spring_patel is an unknown quantity at this point 
Solved Threads: 0
spring_patel spring_patel is offline Offline
Newbie Poster

"System.Data.SqlClient.SqlException: Login failed for user 'VASANT\ASPNET'."

 
0
  #1
Mar 31st, 2008
hi guys,

i'm upgrading a web application designed in visual studio 2003 to visual studio 2005.
i want to start from the scratch.

I've restored the database from the older application in sql server 2000 from another machine.

now whenever i try to execute that application an error is displayed stating

"System.Data.SqlClient.SqlException: Login failed for user 'VASANT\ASPNET'."

my sql server uses windows authentication mode,and i've made changes in the connectionstring accordingly...

but still it shows this error...

can ny body help me get rid of it..?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,296
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: "System.Data.SqlClient.SqlException: Login failed for user 'VASANT\ASPNET'."

 
0
  #2
Mar 31st, 2008
Is your username VASANT\ASPNET ? if so, then is that the same username that was used to create the original database?
Computers are man's attempt at designing a cat: It does whatever it wants, whenever it wants, and rarely ever at the right time.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 10
Reputation: spring_patel is an unknown quantity at this point 
Solved Threads: 0
spring_patel spring_patel is offline Offline
Newbie Poster

Re: "System.Data.SqlClient.SqlException: Login failed for user 'VASANT\ASPNET'."

 
0
  #3
Mar 31st, 2008
well no 'VASANT' is the server name, and in original conn. string 'sa' login was used with a blank password,

after restoring it into my pc i changed the conn string to match my settings....


Originally Posted by majestic0110 View Post
Is your username VASANT\ASPNET ? if so, then is that the same username that was used to create the original database?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,296
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: "System.Data.SqlClient.SqlException: Login failed for user 'VASANT\ASPNET'."

 
0
  #4
Mar 31st, 2008
I understand that VASANT is the server name what I am trying to get at is:is the username the same when the db was created as the username you are now using? (Ie. username = sa at both times)
Computers are man's attempt at designing a cat: It does whatever it wants, whenever it wants, and rarely ever at the right time.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,296
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: "System.Data.SqlClient.SqlException: Login failed for user 'VASANT\ASPNET'."

 
0
  #5
Mar 31st, 2008
just a thought, post your conn string:
Does it include?

Integrated Security=SSPI;
Last edited by majestic0110; Mar 31st, 2008 at 11:19 am.
Computers are man's attempt at designing a cat: It does whatever it wants, whenever it wants, and rarely ever at the right time.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 10
Reputation: spring_patel is an unknown quantity at this point 
Solved Threads: 0
spring_patel spring_patel is offline Offline
Newbie Poster

Re: "System.Data.SqlClient.SqlException: Login failed for user 'VASANT\ASPNET'."

 
0
  #6
Mar 31st, 2008
this is the connection string i'm using currently:
  1. <add key="ConnectionString" value="Data Source=VASANT;Initial Catalog=MillTown;Integrated Security=True"/>
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,296
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: "System.Data.SqlClient.SqlException: Login failed for user 'VASANT\ASPNET'."

 
0
  #7
Mar 31st, 2008
try changing "true" to "SSP1" let me know how it goes
Computers are man's attempt at designing a cat: It does whatever it wants, whenever it wants, and rarely ever at the right time.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC