Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have jus now created a virtual directory and hosted my web application in iis 6. in my application i am using a login page,.the problem is it is not connecting to the database. what setting should i do to connect to the sql 2008 database.Help me friends...
Posted
Comments
StianSandberg 9-Aug-12 8:45am    
what have you tried? Do you have any code?
ajithk444 10-Aug-12 0:27am    
<add connectionstring="Data Source=(local)\SQLEXPRESS;Initial Catalog=ISSUserReigistration;Integrated Security=True" name="ISSUserReigistration">

this is the code i have used in my web config for connection string. I m using sql2008 r2.it supports windows authentication only.help me what to do for this configuration...

Hi,

Here you need to do steps to identify problem.

1) check if you connection string is correct in Config file.
2) check if your database server available.
3) add logging in your application to identify exception.

Actually some exception occur from your application but you may have not creating logging so not getting exact error message.

Please Add Logging in you code and then you will identify your issue.

Hope this information helps you,

Thanks
-Amit Gajjar.
 
Share this answer
 
v2
Check application pool user. If you use integrated security, the user impersonated by the pool will try to connect to the database, thus needs to have all required rights. You also need to check if the database server and service can be contacted from the web server from network and firewall point of view. The exact exception message you get will help you in identifying the problem - and if you add it to your post, we also can help you in it.
 
Share this answer
 

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