Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I have an asp.net website which is developed in asp.net 4.0 with data binding from a database which is maintain in sql server 2000..
It it working fine on localhost but when I am deploying it on IIS and while running the page the following error is occurring..
 
Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.Data.OleDb.OleDbException: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
-----------
-> I am using mixed mode authentication and sql server 2008 is installed on my system
-> I am using the following connection string in my .cs page
 
using (OleDbConnection con3 = new OleDbConnection("Provider=SQLOLEDB;Data Source=192.168.2.4;Persist Security Info=True;User ID=sa;Initial Catalog=PCGWORK"))
Posted 4-Apr-13 19:46pm
Edited 4-Apr-13 19:48pm
v2

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

  Print Answers RSS
0 BillWoodruff 330
1 Mathew Soji 309
2 Maciej Los 295
3 DamithSL 225
4 Afzaal Ahmad Zeeshan 217
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,025


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 5 Apr 2013
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