2

ASP.NET MVC プロジェクトに取り組んでいますが、共有開発サーバーへの展開に問題があります。

ローカルで、ローカルの Visual Studio 2008 サーバーを使用してデバッグすると、すべてがうまく機能します。ただし、展開すると、次のエラーが表示されます。

    Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.## Heading ##

Parser Error Message: Unable to find an entry point named 'BCryptGetFipsAlgorithmMode' in DLL 'bcrypt.dll'.

Source Error:

Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="APPLICATION_NAME.Web.MvcApplication" Language="C#" %>


Source File: /APPLICATION_NAME/global.asax    Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927 

エラー ログ:

Event sequence: 1 
Event occurrence: 1 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/1/ROOT/APPLICATION_NAME-4-128995312096183595 
    Trust level: Full 
    Application Virtual Path: /APPLICATION_NAME 
    Application Path: E:\PROJECTS\APPLICATION\APPLICATION_NAME\APPLICATION_NAME\app\APPLICATION_NAME.Web\ 
    Machine name: PC

Process information: 
    Process ID: 4608 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\DefaultAppPool 

Exception information: 
    Exception type: HttpException 
    Exception message: Unable to find an entry point named 'BCryptGetFipsAlgorithmMode' in DLL 'bcrypt.dll'. 

Request information: 
    Request URL: http://localhost/APPLICATION_NAME 
    Request path: /APPLICATION_NAME 
    User host address: ::1 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: IIS APPPOOL\DefaultAppPool 

Thread information: 
    Thread ID: 6 
    Thread account name: IIS APPPOOL\DefaultAppPool 
    Is impersonating: False 
    Stack trace:    at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)


Custom event details: 

展開エラーを見つけた後、アプリケーションをローカルに追加しようとしましたが、同じアプリケーションになるようです。

ローカルの開発マシンでは Windows 7 RTM (x64) を使用し、共有サーバーでは Windows Server 2008 Standard (x86) を実行しています。

調べてみると、ローカル セキュリティ ポリシーの FIPS 暗号化が無効になっているので、少し困っています。

4

2 に答える 2

2

ここから Bcrypt.net を使用していますか? その場合は、別の dll 名でビルドする必要があります (たとえば、BCryptNet.dll としてビルドします)。

問題は、Vista/Windows 2008 に bcrypt.dll をロードしようとする新しい Windows API があり、Web アプリの bin/ ディレクトリに bcrypt.dll がある場合、システム dll が見つからないことです。

于 2010-04-03T17:29:54.403 に答える
2

x64 で開発し、x86 環境にデプロイする際に、過去にいくつかの問題がありました。プラットフォーム ターゲットの下で、「任意の CPU」、x86、または x64 にコンパイルしていますか?

x86 に直接コンパイルしてみて、それが役立つかどうかを確認してください。

于 2009-10-09T11:47:48.537 に答える