Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a asp.net application develop with visual studio 2008. my database is sql server 2000. and this is pc2. visual studio is pc1 and also published in pc1. when i open the application as debug mood I found no error and I can work with pc2 database. but when i have published the application at pc1 then database is not connected.

I could not understand what is the problem. Please help.
Posted
Comments
Arkadeep De 24-Mar-15 1:29am    
what is the error showing..
Md. Mahfujul 24-Mar-15 1:36am    
no massage show but not get the data. example don't show dropdown list data which is load from database.
Schatak 24-Mar-15 2:55am    
When you are binding your data..use exception handling you will get to know if there is some error.
then only one can help you to resolve errors

1 solution

If you're getting different functionality between debug and release then chances are you have a config transformation in your project which is altering the config files depending on the target mode. In the root of your project see if you have a file called web.release.config, and in that file you might find a transformation that changes the connection string. You have to make sure this connection is still valid, or if you don't want to change the connection between debug and release then simply remove the transformation from the file.
 
Share this answer
 
v2

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