用户登录失败'NT AUTHORITY \\ NETWORK SERVICE' [英] Login failed for user 'NT AUTHORITY\NETWORK SERVICE'

查看:520
本文介绍了用户登录失败'NT AUTHORITY \\ NETWORK SERVICE'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在一直用strugling这2天没有任何正在添加更接近的解决方案。我已阅读20-30螺纹alteast和STIL无法解决这个问题。

请帮助我。

我有禁用匿名身份验证,使asp.net模拟。

我已经加入<身份冒充=真/>

我已经添加了一个用户到连接到我尝试连接到数据库中的安全登录

这是我使用ConnectionString:

 数据源= IPTOSERVER;初始目录=辉腾;用户ID =用户;密码=密码;

errormessage的:


  

无法打开数据库Phaeton.mdf所要求的登录。登录失败。


  
  

用户登录失败'NT AUTHORITY \\ NETWORK SERVICE'。



解决方案

在收到告诉您应用程序无法连接到sqlex preSS分贝的错误信息,而不是SQL服务器。
我只是改变了数据库的名称在SQL Server,然后相应地更新的ConnectionString,然后再试一次。

您的错误消息指出以下几点:

 无法打开数据库Phaeton.mdf的登录请求。登录失败。

在我看来你还在试图连接到基于文件的数据库,名称为Phaeton.mdf不符合新的SQL数据库名称辉腾。匹配

希望这有助于。

I been strugling with this for 2 days now without comming any closer to solution. I have read 20-30 threads alteast and stil can not resolve this.

Please help me out.

I have disable anonymous authentication, enable asp.net impersonation.

I have added <identity impersonate = "true" />

I have added the a user to the security logins that is connected to the database I try to connect to

This is the connectionstring I use:

Data Source=IPTOSERVER;Initial Catalog=Phaeton;User Id=User;Password=Password;

errormessage:

Cannot open database "Phaeton.mdf" requested by the login. The login failed.

Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.

解决方案

The error message you are receiving is telling you that the application failed to connect to the sqlexpress db, and not sql server. I will just change the name of the db in sql server and then update the connectionstring accordingly and try it again.

Your error message states the following:

Cannot open database "Phaeton.mdf" requested by the login. The login failed.

It looks to me you are still trying to connect to the file based database, the name "Phaeton.mdf" does not match with your new sql database name "Phaeton".

Hope this helps.

这篇关于用户登录失败'NT AUTHORITY \\ NETWORK SERVICE'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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