C# Windows身份验证仍将显示登录表单
我正在使用Silverlight业务应用程序,我正在IIS中使用该应用程序 我已禁用除C# Windows身份验证仍将显示登录表单,c#,windows,silverlight,authentication,C#,Windows,Silverlight,Authentication,我正在使用Silverlight业务应用程序,我正在IIS中使用该应用程序 我已禁用除Windows身份验证之外的所有类型的身份验证 在web.config文件中,身份验证设置为- <authentication mode="Windows"> <forms name=".FrontEnd_ASPXAUTH" timeout="2880" /> </authentication> 我认为这意味着因为设置了Windows身份验证,这意味着应用程
Windows身份验证
之外的所有类型的身份验证
在web.config文件中,身份验证设置为-
<authentication mode="Windows">
<forms name=".FrontEnd_ASPXAUTH" timeout="2880" />
</authentication>
我认为这意味着因为设置了Windows身份验证,这意味着应用程序正在针对我机器上的Windows用户帐户进行身份验证
但是,当我启动应用程序时,它仍然会显示一个登录表单,是否有一种方法可以基于windows登录而不使用登录表单来加载应用程序?您使用的是哪种浏览器?并非所有浏览器都能自动发送您的windows凭据。问得好,我在Chrome和IE中都试过了。
WebContext webContext = new WebContext();
webContext.Authentication = new WindowsAuthentication();
this.ApplicationLifetimeObjects.Add(webContext);