Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I got an asp.net application that has been deployed to production. I'm using integrated security as part of my connection and it times out in production. The timeout is due to not being able to connect to the database. I get Login failed. I'm using Windows Authentication and we're using IIS6. However, from my development machine it runs great.

this is my connstring: add name="blah" connectionstring="Data Source=serverName; Initial Catalog=Blah;Integrated Security=True;" providername="System.Data.SqlClient">

Any feedback is greatly appreciated. Thx.
Posted
Updated 12-Dec-12 1:18am
v2
Comments
ZurdoDev 12-Dec-12 9:06am    
I believe you need to set Identity impersonate=true in your webconfig or check that the account running your app pool has permissions to SQL.
Kuthuparakkal 12-Dec-12 22:47pm    
Check the web.config on deployed location, verify your connection string is valid. Sometimes VS replace double quote (") with """

1 solution

On Production Machine, Check your connection string. Open Notepad save it as myName.udl
close it. then open it again. Enter your preferences like server name, provider and check your connection there. Use the same connection string in web.config and try to run it again.
If that does not work for you, I guess provide Username and password and use those credentials in web.config
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900