Hi englere
In your code I changed
uid=ThePhileUser to
uid=sa.
string conStr = @"server=(local);database=ThePhile;uid=sa;pwd=pass word;";
It is like I have in my
config files. Is that correct?
I show all my ConnectionString config files of project ThePhile:
Web.config
<sessionState
mode="InProc"
stateConnectionString="tcpip=172.18.56.50"
sqlConnectionString="data source=(local);uid=sa;password="
cookieless="false"
timeout="20"
/>
Accounts.config
<ConnectionString>server=(local);database=thePhile ;uid=sa;pwd=;</ConnectionString>
AdsManager.config
<ConnectionString>server=(local);database=ThePhile ;uid=sa;pwd=;</ConnectionString>
Forums.config
<ConnectionString>server=(local);database=ThePhile ;uid=sa;pwd=;</ConnectionString>
MailingLists.config
<ConnectionString>server=(local);database=ThePhile ;uid=sa;pwd=;</ConnectionString>
NewsManader.config
<ConnectionString>server=(local);database=ThePhile ;uid=sa;pwd=;</ConnectionString>
Then I rebuild and execute your code.
Result after execution:
__________________________________________________ _________________________
Exception: Login failed for user 'sa'. Exception type: System.Data.SqlClient.SqlException
Press Return ...
__________________________________________________ _________________________
Debug
Quote:
quote:'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols loaded.
'Test': Loaded 'C:\Documents and Settings\EUGZ\My Documents\Visual Studio Projects\Test\bin\Debug\Test.exe', Symbols loaded.
'Test.exe': Loaded 'c:\windows\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.data.dll', No symbols loaded.
'Test.exe': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No symbols loaded.
'Test.exe': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.dll', No symbols loaded.
'Test.exe': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.thunk.dll', No symbols loaded.
'Test.exe': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll', No symbols loaded.
The program '[6092] Test.exe' has exited with code 0 (0x0).
|
I will wait other replays. Thanks a lot for your help.