“/”应用程序中的服务器错误。

无法加载 DLL“bcrypt.dll”: 动态链接库(DLL)初始化例程失败。 (异常来自 HRESULT:0x8007045A)。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.DllNotFoundException: 无法加载 DLL“bcrypt.dll”: 动态链接库(DLL)初始化例程失败。 (异常来自 HRESULT:0x8007045A)。

源错误:


[没有相关的源行]

源文件: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3c0c4d2c\2e447395\App_Web_3k88qqjf.1.cs    行: 0

堆栈跟踪:


[DllNotFoundException: 无法加载 DLL“bcrypt.dll”: 动态链接库(DLL)初始化例程失败。 (异常来自 HRESULT:0x8007045A)。]
   Microsoft.Win32.Win32Native.BCryptGetFipsAlgorithmMode(Boolean& pfEnabled) +0
   System.Security.Cryptography.Utils.get_FipsAlgorithmPolicy() +140
   System.Security.Cryptography.RijndaelManaged..ctor() +13

[TargetInvocationException: 调用的目标发生了异常。]
   System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) +0
   System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) +15
   System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +380
   System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args) +500
   System.Security.Cryptography.Rijndael.Create(String algName) +7
   System.Security.Cryptography.Rijndael.Create() +12
   AesSample..cctor() +22

[TypeInitializationException: “AesSample”的类型初始值设定项引发异常。]
   AesSample.Decrypt(String data) +0
   DAL.DALHelper.GetHelper(String connectionStringName) +244
   DAL.DALHelper..cctor() +11

[TypeInitializationException: “DAL.DALHelper”的类型初始值设定项引发异常。]
   DAL.DALHelper..ctor() +0
   DAL.Table_News..ctor() +5
   PicList..ctor() +25
   ASP.prolist_aspx..ctor() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3c0c4d2c\2e447395\App_Web_3k88qqjf.1.cs:0
   __ASP.FastObjectFactory_app_web_3k88qqjf.Create_ASP_prolist_aspx() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3c0c4d2c\2e447395\App_Web_3k88qqjf.7.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


版本信息: Microsoft .NET Framework 版本:2.0.50727.8798; ASP.NET 版本:2.0.50727.8762