Click here to Skip to main content
14,878,631 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Test Problem :
In My Asp.Net web appllication, I couldn't connect sql server from project.No connection error, no user authentication error.

Project Environment:
ASP.Net, C#3.5, SQL Express 2005(Standart end test DB server)

Problem with System Details :
Windows 7 Home Premium 64 bit OS Framework 3.5, SQL Server 2005 Express

Case :
Project run normally and when try to connect sql server then error occured.No error details; just "Sample Error" and sqlDB connection details.No exception details.

Details :
I tested my project also Windows XP Pro SP3 (32 bit OS), Windows 7 Professional and Ultimate (32 bit OS).Windows Server 2008 64 bit OS.Its worked fine.
But in 64 bit systems i come accross some problems.
Firstly i couldn't install sql server Exp. 2005 Management Studio normally.
Then i solve the problem like that; i copied "sql....Msi" file to C directory and run command prompt as administrator and run installation process from command promp.After that i couldn't attached my database file properly it's attached (read-only).Then i changed my standart db file location to sql server standart data location.It worked fine and i connected to sql server from SSMS normally.
When i couldn't connected sql server i change my standard connection string.I've tried to connected as windows authentication and sql server authentication.But no connection error no authentication error occured.

I think my problem with;
Windows 7 Home Premium 64 bit OS directory authentication or
Windows 7 Home Premium IIS configuration settings.

Project Directory:C:\inetpub\wwwroot\Prjct
Database Directory:Default sql Data file.

I'm tring to solve my problem.Please help me.

Thanks in advance.
Updated 24-May-10 21:13pm

1 solution

Do you build your app to target 32 bit ? If not, try it. If this works, your problem is that you're using a 32 bit dll somewhere, or perhaps even your SQL server version ?
exorsystem 25-May-10 3:28am
Thanks Christian,
I have changed my question and add Details section "Windows Server 2008 64 bit experience".It worked properly.I also add Network Service user to sql didn't worked.

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