是否可以使用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 – axd和ashx处理程序之间的区别
- asp.net – $(“#dialog”).parent().appendTo($(“form:f
- asp.net core 实现一个简单的仓储的方法
- asp.net 禁用viewstate在web.config里
- ASP.NET页面在IE缓存的清除办法
- Asp.net配合easyui实现返回json数据实例
- asp.net-mvc – 无法在Web服务器上启动调试. Web服务器找不
- asp.net-mvc-2 – 在名称中使用连字符处理MVC2变量
- asp.net-mvc – 如何使输入字段仅允许使用EF和数据注释的数
- asp.net – 如何在gridview中将navigateurl添加到超链接
- ASP.NET MembershipProvider加密/解密
- asp.net-mvc-4 – MVC 4 DropDownListFor错误 –
- asp.net – 是否可以在源代码中使用iframe和loca
- asp.net-mvc – 在ASP.NET MVC中实现工作单元的方
- ASP.NET MVC Web应用程序中视图逻辑和域逻辑之间
- asp.net-mvc-3 – 为MVC3应用程序配置Ninject的正
- asp.net-mvc – 如何忽略ASP.NET MVC 4中特定Vie
- asp.net – 小数点后尾数为零
- asp.net-mvc – 找到相同类型的两个实体之间的差
- asp.net – 数据注释 – 使用属性扩展并在资源文