无法使用登录控件登录 [英] unable to login using login control

查看:82
本文介绍了无法使用登录控件登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚在一个具有登录控件的新站点上线,该登录控件可以保护站点的全部内容,即您需要先登录才能查看任何内容,当我尝试登录时出现以下错误

登录名来自不受信任的域,不能与Windows身份验证一起使用

但是在webconfig ive规定的身份验证模式中,如下所示

just went live with a new site which has a login control protecting the entire contents of the site, ie you need to be login before viewing anything, when i try to login i get the following error

The login is from an untrusted domain and cannot be used with Windows authentication

however in the webconfig ive stipulated authentication mode as follows

<authentication mode="Forms" />


任何人都可以阐明这里可能发生的事情吗?


编辑
在阅读了有关该错误的一些信息后,我相信这与我的msssql登录名有关,而不是与我的网站登录名有关吗?


can anyone shed some light on what might be happening here?


EDIT
after some reading about the error i believe this is related to my msssql login not my site login would that be correct?

推荐答案

是的-可能是您尚未将数据库的连接字符串从开发环境更改为生产服务器.

当然,对于我来说,开发数据库服务器使用Windows身份验证,而生产服务器是特定于用户和密码的.

保证两者的安全可能是一个真正的痛苦:这里有一个示例,说明了我的操作方式:
Yes it could be - The chances are that you haven''t changed the connection string for the database from your development environment to the production server.

Certainly in my case, the development database server uses Windows authentication, while the production server is user and password specific.

Keeping the two safe and secure can be a real pain: there is an example of how I do it here: Supporting Development and Release web.config in ASP.NET[^]



点击此处 [ ^ ]


这篇关于无法使用登录控件登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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