是否可以使用ASP.NET ScriptManager来使用Windows FIPS安全策略?
|
如果在 Windows中启用“使用FIPS兼容算法进行加密,散列和签名”安全策略选项,则尝试在.NET Framework中使用许多加密类将导致InvalidOperationException.默认情况下,ASP.NET使用AES加密ViewState blob,因此失败.您可以通过向web.config添加这样的键来解决此问题: <machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="3DES" decryption="3DES"/> 这涵盖了ASP.NET的基本用法.我的问题是:我有一个庞大,复杂的ASP.NET Web应用程序,它大量使用ScriptManagers(ASP.NET AJAX的基础),需要由必须启用此FIPS策略设置的政府客户部署.任何带有ScriptManager的ASP.NET页面都会抛出此异常: [InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.] System.Security.Cryptography.SHA1Managed..ctor() +3607454 System.Security.Policy.Hash.get_SHA1() +45 System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) +85 System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) +99 System.Web.Handlers.RuntimeScriptResourceHandler.GetScriptResourceUrlImpl(List`1 assemblyResourceLists,Boolean zip,Boolean notifyScriptLoaded) +525 System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(List`1 assemblyResourceLists,Boolean notifyScriptLoaded) +910 System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly,String resourceName,CultureInfo culture,Boolean notifyScriptLoaded) +193 System.Web.UI.ScriptReference.GetUrlFromName(ScriptManager scriptManager,IControl scriptManagerControl,Boolean zip) +306 System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +169 System.Web.UI.ScriptManager.RegisterScripts() +407 System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender,EventArgs e) +200 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +11041982 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint) +3672 甚至添加< enforceFIPSPolicy enabled =“false”/> web.config的元素不能解决异常. 有没有办法配置ASP.NET,以便ScriptManager可以与Windows FIPS安全策略一起使用? 解决方法Microsoft的更新:此修补程序可在 http://code.msdn.microsoft.com/KB981119获得答案是您不能将ScriptManager与启用FIPS的服务器一起使用. (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- asp.net – 我被困在UpdatePanel陷阱中
- asp.net-mvc – 在“剃刀”视图中默认一个部分
- asp-classic – 如何检查VBScript中是否存在POST提交字段?
- asp.net – 如何防止重复的回发混淆我的业务层
- asp.net – 路径’PROPFIND’被禁止?
- asp.net-mvc – MVC应用程序的布局/设计模板?
- asp.net-mvc – 为什么ASP.Net MVC便携式区域不像Rails插件
- asp.net – System.Reflection.Assembly.LoadFile锁定文件
- ASP.Net 分页控件源码
- 实体框架 – MVC3应用程序/服务层/存储库层/ POCO类/ EF4 –
- asp.net-mvc – 在MVC3或MVC4中检查项目构建
- REST API是否区分大小写或非区分大小写?
- asp.net – 在转发器中只选择一个radiobutton
- asp.net – 如何将一个对象序列化为查询字符串格
- asp.net – MaintainScrollPositionOnPostback属
- asp.net中的泛型处理程序是什么?
- asp.net-mvc – 我的剃刀视图的自定义基页类型,如
- asp.net-mvc – 如何在Visual Studio 2017中构建
- asp.net-mvc – ASP.NET MVC应用程序性能分析
- jqgrid与asp.net webmethod和json使用排序,分页,
