Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IIS6 ASP.NET SQL-Server
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 12-Dec-12 2:17am
Edited 12-Dec-12 2:18am
v2
Comments
ryanb31 at 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 at 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
good
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
  Permalink  

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

  Print Answers RSS
0 Kornfeld Eliyahu Peter 275
1 Maciej Los 214
2 Sergey Alexandrovich Kryukov 200
3 King Fisher 185
4 OriginalGriff 163
0 OriginalGriff 6,223
1 DamithSL 4,724
2 Maciej Los 4,196
3 Kornfeld Eliyahu Peter 3,894
4 Sergey Alexandrovich Kryukov 3,496


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2014
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