Click here to Skip to main content
13,249,813 members (65,844 online)
Rate this:
Please Sign up or sign in to vote.
I got an 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 12-Dec-12 2:17am
Updated 12-Dec-12 2:18am
ryanb31 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171114.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100