用户'(null)'登录失败。原因:与trus无关 [英] Login failed for user '(null)'. Reason: Not associated with a trus

查看:233
本文介绍了用户'(null)'登录失败。原因:与trus无关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我访问Web应用程序时,我收到以下错误消息,其中

Web应用程序使用SPPI连接到数据库。


"用户''(null)''登录失败。原因:与可信任的

连接无关


Web应用程序仅授予web.config中的一个组

< authorization>

< allow roles =" Domain \ AGroup" />

< deny users =" *" />

< / authorization>


我有两个帐号,userA和userB,属于同一组

" Domain\AGroup"。 userA可以成功访问Web应用程序,而

userB不能并提示上述错误。


您是否遇到过同样的问题?


谢谢!

I got the following error message when I access the web application, in which
the web application use SPPI to connect to database.

"Login failed for user ''(null)''. Reason: Not associated with a trusted
connection"

The web application is grant to a group only in web.config
<authorization>
<allow roles="Domain\AGroup" />
<deny users="*" />
</authorization>

I have two 2 accounts, userA and userB, which belong to the same group
"Domain\AGroup". userA can access the web application successfully, whereas
userB cannot and prompted the above error.

Do all you have encountered the same problem?

Thanks!

推荐答案

数据库是否在同一台机器上?

你使用的是模仿< identity impersonate =" true" /> ?


-

Scott
http://www.OdeToCode.com/blogs/scott/


星期五,2005年4月29日02:32:14 -0700,男孩

< bo*@discussions.microsoft.com>写道:
Is the database on the same machine?
Are you using impersonation <identity impersonate="true"/> ?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 29 Apr 2005 02:32:14 -0700, boy
<bo*@discussions.microsoft.com> wrote:
当我访问Web应用程序时,我收到以下错误消息,其中Web应用程序使用SPPI连接到数据库。
用户登录失败(null)''。原因:与可信任的
连接无关

仅在web.config中授予一个组的Web应用程序
< authorization>
< allow roles = QUOT; Domain\AGroup" />
< deny users =" *" />
< / authorization>

我有两个帐户,userA和userB,它们属于同一个组
Domain\AGroup。 userA可以成功访问Web应用程序,而用户B不能并提示上述错误。

您是否遇到过同样的问题?

谢谢!
I got the following error message when I access the web application, in which
the web application use SPPI to connect to database.

"Login failed for user ''(null)''. Reason: Not associated with a trusted
connection"

The web application is grant to a group only in web.config
<authorization>
<allow roles="Domain\AGroup" />
<deny users="*" />
</authorization>

I have two 2 accounts, userA and userB, which belong to the same group
"Domain\AGroup". userA can access the web application successfully, whereas
userB cannot and prompted the above error.

Do all you have encountered the same problem?

Thanks!






是的,我使用了模拟< identity impersonate =" true" />在web.config中。

如果我没有,所有帐户,userA和userB都无法连接到

数据库。

但是,acount,userA可以成功访问!


数据库安装在Web应用程序的另一台机器上。


" Scott Allen"写道:
yes, i used impersonation <identity impersonate="true"/> in the web.config.
if i didn''t, all accounts, userA and userB should failed to connect to
database.
however, acount, userA can access succesfully!

the database is installed on another machine from the web application.

"Scott Allen" wrote:
数据库是否在同一台机器上?
您是否正在使用模拟< identity impersonate =" true" /> ?

Scott
http://www.OdeToCode.com/blogs/scott/

2005年4月29日星期五02:32:14 -0700,男孩
< bo * @ discussions.microsoft.com>写道:
Is the database on the same machine?
Are you using impersonation <identity impersonate="true"/> ?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 29 Apr 2005 02:32:14 -0700, boy
<bo*@discussions.microsoft.com> wrote:
当我访问Web应用程序时,我收到以下错误消息,其中Web应用程序使用SPPI连接到数据库。
用户登录失败(null)''。原因:与可信任的
连接无关

仅在web.config中授予一个组的Web应用程序
< authorization>
< allow roles = QUOT; Domain\AGroup" />
< deny users =" *" />
< / authorization>

我有两个帐户,userA和userB,它们属于同一个组
Domain\AGroup。 userA可以成功访问Web应用程序,而用户B不能并提示上述错误。

您是否遇到过同样的问题?

谢谢!
I got the following error message when I access the web application, in which
the web application use SPPI to connect to database.

"Login failed for user ''(null)''. Reason: Not associated with a trusted
connection"

The web application is grant to a group only in web.config
<authorization>
<allow roles="Domain\AGroup" />
<deny users="*" />
</authorization>

I have two 2 accounts, userA and userB, which belong to the same group
"Domain\AGroup". userA can access the web application successfully, whereas
userB cannot and prompted the above error.

Do all you have encountered the same problem?

Thanks!




男孩:)

你在说用户!可以成功登录但是UserB不能!

多数民众赞成。

但是他们都有ASPNET帐户吗?

尝试添加2个用户到ASPNET帐户..

希望这有帮助

Patrick


***通过Developersdex发送 http://www.developersdex.com ***
Boy:)
U are saying User! can log in successfully but UserB can''t!
Thats wierd.
But do they both have the ASPNET account?
Try adding the 2 users to the ASPNET acct..
Hope this helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***


这篇关于用户'(null)'登录失败。原因:与trus无关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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