HttpContext.Current.User.Identity.Name is Empty

前端 未结 10 1487
礼貌的吻别
礼貌的吻别 2020-11-29 04:13

I have a Silverlight application (using MVC) and when i\'m building in visual studio, using Visual Studio Development center, there\'s no problem, the HttpContext.Curr

10条回答
  •  臣服心动
    2020-11-29 05:02

    As @PaulTheCyclist says, If using IISExpress anonymous authentication is enabled by default, windows authentication is disabled.

    This can be changed in what I'm sure used to be called PropertyPages (NOT right-click -> properties). Select the web project

提交回复
热议问题