HTML MVC LightSwitch安全管理-管理问题 [英] An HTML MVC LightSwitch Security Administration - Administration Issue

查看:77
本文介绍了HTML MVC LightSwitch安全管理-管理问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Michael Washington出色的教程介绍了如何将auth/admin脱离Silverlight并进入仅LS HTML的项目,这对于无Silverlight的LS的未来至关重要. (还要感谢isWires开发人员的基础性贡献 完成此任务!).

我真的很想学习并使这一部分起作用.我下载了"HTML MVC LightSwitch安全管理"项目进入VS 2015,但我立即遇到System.Web.Optimization程序集的问题.我尝试重新安装 通过NuGet进行装配,但不再显示为可用选项.因此,我从项目中删除了该程序集,并重新编码了_Layout file.cshtml中调用脚本和CSS的方式,一切启动并看起来不错.

当我在本地调试模式下运行该应用程序时,一切运行良好,并且能够看到管理"链接授予安全管理员进行调试时.但是...当我发布到网络上并通过LS管理员用户名和密码登录时, 管理"链接永远不会显示.

我提到了 System.Web.Optimization事物 因为我不知道这是否是问题的原因(我认为不是).迈克尔建议 我是通过Fiddler会话来运行它的,而我做到了.但我在日志或报告中看不到任何问题.可以在我的Web服务器端进行设置吗?但是同样,除了那一件(最关键的)事情之外,一切都很好.

有什么建议吗? 有什么想法吗?

谢谢...


解决方案

在进行了另一次更详细的Fiddler运行之后,我确实看到了没有代理身份验证标头."现在" Fiddler的Inspector/Web Forms/Auth部分中显示消息.不知道这意味着什么,但要进行研究 看看这是否是问题的根源(?).


Michael Washington's excellent tutorial about getting the auth/admin off of Silverlight and into an LS HTML only project is so important for the future of a Silverlight-less LS. (Also thanks to the isWires developer(s) for their foundational contribution to this quest!).

I'm really hungry to learn and get this part working. I downloaded the "An HTML MVC LightSwitch Security Administration" project into VS 2015 but I immediately ran into an issue with the System.Web.Optimization assembly. I tried reinstalling that assembly via NuGet but it no longer shows up as an available option. So I removed that assembly from the project and re-coded the way the scripts and css are called in the _Layout file.cshtml and everything started up and looks good. 

And when I run the app in local debug mode, all works well and I am able to see the "Administration" link when security admin is granted for debug. But ... when I publish to the web and log in via the LS administrator user name and password, the "Administration" link never shows up.

I mentioned the System.Web.Optimization thing because I don't know if that is the cause of the issue (I don't think it is). Michael suggested that I run it through a Fiddler session ... and I did. But I don't see any issues in the logs or reports. Could it be a setting on my web server side? But again, everything works great except for that one (most critical) thing.

Any suggestions? Any ideas? 

Thanks ...

Lou


解决方案

After another more detailed Fiddler run, I did see a "No Proxy-Authenticate Header is present. No WWW-Authenticate Header is present" message in Fiddler's Inspector/Web Forms/Auth section. Don't know what it means but doing the research to see if this is the root of the issue(?).


这篇关于HTML MVC LightSwitch安全管理-管理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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