在IIS上托管后窗口身份验证不起作用 [英] window authentication not working after hosting on IIS

查看:77
本文介绍了在IIS上托管后窗口身份验证不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用





i am using


User.identity.name





获取windows用户名并在localhost上正常工作。当我在我的机器上的IIS上托管应用程序时,它只会抛出一些错误。不确定它是什么错误,因为我们无法调试,而且名称使用json绑定,因此不会导致系统崩溃或其他什么。它只是给出了obj undefined的控制台错误。但是从代码行号我可以预测它只是名称的一些东西。我的代码很长,所以无法发布所有内容



to get the windows user name and its working fine on localhost. when i host application on IIS on my machine only it throws some error.not sure what error it is as we cant debug and also the name bind using json so not getting any system crash or something. it just give console error that obj undefined. however from code line number i can predict that it is some thing releated to name only. my code is very long so cant post all things

推荐答案

我自己解决了这个问题。我检查了IIS设置,看到该窗口和基本身份验证功能未打开我的机器。现在工作正常。
i have solved this by myself. i checked IIS setting and see that window and basic authentication features were not turn on my machine. now it is working fine.


这篇关于在IIS上托管后窗口身份验证不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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