Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am creating one application in c#.net application. I am using the same database in local and server. All the functions are working properly in local but in server it is not working properly. I put the coding between try and catch but no error message is displayed. i put the dll files in the bin folder correctly. Particularly delete function is only working server. In local save, update and delete functions are working fine. Please any one help to solve this problem
Posted
Comments
Ashishmau 26-May-11 7:35am    
What error ur getting???
#realJSOP 26-May-11 7:37am    
"Not working" doesn't tell us ANYTHING.
janablisslogix 26-May-11 7:39am    
thank you for your replay?? but i am not getting any error?? after click my save button all field empty but records are not saving in database
#realJSOP 26-May-11 7:42am    
Have you considered using the debugger?

1 solution

Sounds like an issue with the proper access rights. Do you specify an account and a password when you connect to the database. If the answer is yes, please make sure that it's the same for your local and the server system.
If you are using integrated security you'll have to administer the database with the proper right for the account your webpage is running under. It is really strange though that you are not receiving any error messages.
I think you should add logging liberally in the parts that are doing the SQL stuff. You can use any kind of logging API, but I suggest you look into log4Net[^] an offspring of log4J[^].

[Edit]
You said you are using the same database. So you are connecting to the same DBMS server from your local project and the server side?
[/Edit]

I hope this helps some.

Cheers!

-MRB
 
Share this answer
 
v2
Comments
janablisslogix 26-May-11 7:54am    
Thank you for your replay. After i download this log4net how can i use that
Manfred Rudolf Bihy 26-May-11 18:10pm    
On the site I linked to there are resources like documentation and examples. Try it out and if you run into problems use their forum to get help.

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