HttpContext.Current.User.Identity.Name is Empty

前端 未结 10 1463
礼貌的吻别
礼貌的吻别 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:13

    Also, especially if you are a developer, make sure that you are in fact connecting to the IIS server and not to the IIS Express that comes with Visual Studio. If you are debugging a project, it's just as easy if not easier sometimes to think you are connected to IIS when you in fact aren't.

    Even if you've enabled Windows Authentication and disabled Anonymous Authentication on IIS, this won't make any difference to your Visual Studio simulation.

提交回复
热议问题