HttpContext.Current.User.Identity.Name is Empty

前端 未结 10 1464
礼貌的吻别
礼貌的吻别 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 04:57

    Disabling all other options in authentication tab of iis except windows authentication resolved my issue. Please check..

    Steps:

    1. Open iis in your machine
    2. Select your application from the application pool
    3. Click on authentication option
    4. Disable all other option except windows authentication (Anonimous authentication should be disabled)

    Please check this and let me know the feedback. It worked for me. hope it will work for you also..

提交回复
热议问题