无法在已部署的网站上登录IIS? [英] unable to login on deployed website to IIS ?

查看:74
本文介绍了无法在已部署的网站上登录IIS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个网站,我试图托管到我的本地IIS服务器。我在我的开发环境中使用了默认的ASP登录模板控件,这些控件工作正常,但是当我在IIS上托管我的网站时,我无法登录。我收到错误您的登录尝试未成功。请再试一次。请帮我解决这个错误。当AuthenticateEventArgs.Authenticate值为false时,我的登录数据存储在默认的aspnet.mdf。

so i have a website which i am trying to host to my local IIS server. i have used default ASP login template controls in my development environment which were working fine but the moment i hosted my website on IIS i am unable to login. i am getting an error "Your login attempt was not successful. Please try again." please help me how to fix this error. my login data is stored in default aspnet.mdf.

推荐答案

中,来自OnAuthenticate事件处理程序,然后出现此消息。它表示您提供的信息不是有效用户。您只需编写一些日志以确保以编程方式在Authenticate属性中设置true值。部署iis后,检查日志文件。另一件事只是确保您的iis网站匿名身份验证已启用。
from OnAuthenticate event handler when AuthenticateEventArgs.Authenticate value is false then this message came. It indicate that your provided information is not a valid user. You just write some log to make sure you programmatically set true value in Authenticate property. After iis deployment you check the log file. Another thing just Make sure your iis web site Anonymous authentication is enabled.


这只是iis中的权限问题,我通过授予IIs用户写入数据库的权限来解决。
it was just an permission problem in iis which i solved by giving IIs users permission to write in database.


这篇关于无法在已部署的网站上登录IIS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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