如何解决服务器上的Windows服务连接问题 [英] How to solve Windows Service Connection Issue on server

查看:84
本文介绍了如何解决服务器上的Windows服务连接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好先生,



我正在开发Windows服务,

i尝试执行服务但每次都面临着异常,

i已经在连接字符串中给出了我的用户ID和密码

i无法理解为什么它会转到NT AUTHORITY



< pre lang =text>无法打开登录请求的数据库。登录失败。用户'NT AUTHORITY \LOCAL SERVICE'登录失败。



如果有人有意,请给我一个建议。

提前感谢

解决方案

据我所知,这不是服务登录权限问题。

显然,问题是你根本没有连接到某个数据库的权限。试着检查一下。


Hello Sir,

I'm working on windows service,
i trying to execute service but everytime face an excepetion,
i already given my userid and password in connectionstring
i cant understand that why it goes to "NT AUTHORITY"

Cannot open database requested by the login. The login failed. Login failed for user 'NT AUTHORITY\LOCAL SERVICE'.


if anyone have idea then pls give me a suggestion.
thanks in advance

解决方案

As far as I understand this is not a service logon permissions problem.
Evidently, the problem is that you simply don't have permissions to connect to a certain database. Try to check this.


这篇关于如何解决服务器上的Windows服务连接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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