项目未在服务器中运行

编程入门 行业动态 更新时间:2024-10-28 20:28:31
本文介绍了项目未在服务器中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

I am creating one application in c# 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

更多推荐

项目未在服务器中运行

本文发布于:2023-10-27 16:25:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1533917.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:器中   项目

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!