Windows身份验证不适用于IIS-Silverlight
我有一个silverlight应用程序,它在Cassini上运行时运行良好,只是在IIS上windows身份验证不起作用。以下是我迄今为止采取的步骤。 在web.config中添加了以下节点Windows身份验证不适用于IIS-Silverlight,silverlight,iis-7,windows-authentication,Silverlight,Iis 7,Windows Authentication,我有一个silverlight应用程序,它在Cassini上运行时运行良好,只是在IIS上windows身份验证不起作用。以下是我迄今为止采取的步骤。 在web.config中添加了以下节点 <identity impersonate="true" /> <roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/> <profile enabled="false"/&
<identity impersonate="true" />
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
<profile enabled="false"/>
已在IIS中启用Windows身份验证方法
但似乎没有帮助。我获取空的用户对象。
但同样的代码也适用于VisualStudio的本地服务器/。请帮忙 我必须通过代码使用提升权限。宾果游戏,效果很好
using (HostingEnvironment.Impersonate()) // this line did the magic.
{//rest of my code. }