项目未在服务器中运行 [英] Project is not running in server

查看:81
本文介绍了项目未在服务器中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在c#.net应用程序中创建一个应用程序.我在本地和服务器中使用相同的数据库.所有功能在本地均能正常工作,但在服务器中则无法正常工作.我将编码放在try和catch之间,但未显示任何错误消息.我将dll文件正确放置在bin文件夹中.特别是删除功能仅在工作服务器上有效.在本地保存中,更新和删除功能可以正常工作.请任何人帮助解决此问题.

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

推荐答案

听起来像是具有适当访问权限的问题.连接到数据库时是否指定帐户和密码?如果答案是肯定的,请确保您的本地系统和服务器系统相同.
如果您使用的是集成安全性,则必须使用您的网页所运行的帐户的正确权限来管理数据库.尽管没有收到任何错误消息,这确实很奇怪.
我认为您应该在执行SQL的部分中自由地添加日志记录.您可以使用任何类型的日志记录API,但建议您使用 log4Net [ log4J [ ^ ] .


您说您正在使用相同的数据库.因此,您要从本地项目和服务器端连接到同一台DBMS服务器吗?
[/编辑]

希望对您有所帮助.

干杯!

-MRB
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[^].


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


这篇关于项目未在服务器中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆