2012-02-18 7 views
0

私はWebアプリケーションでelmahをセットアップしようとしています。web.configを変更しました.dbのSqlスクリプトを実行しました。elmah.dllへの参照が追加されました。アクセスhttp://localhost:someport/elmah.axd私は次の例外を取得:エラーが発生しましたelmah.axd

An exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll but was not handled in user code 

コールスタックloaction:

Elmah.DLL!Elmah.SimpleServiceProviderFactory.CreateFromConfigSection(string sectionName) 

ソース・ファイル情報:

Locating source for 'c:\builds\ELMAH\src\Elmah\SimpleServiceProviderFactory.cs'. Checksum: MD5 {f6 f8 c9 b cf 41 f7 11 7d de 16 2b ed 30 e4 83} 
The file 'c:\builds\ELMAH\src\Elmah\SimpleServiceProviderFactory.cs' does not exist. 
Looking in script documents for 'c:\builds\ELMAH\src\Elmah\SimpleServiceProviderFactory.cs'... 
Looking in the projects for 'c:\builds\ELMAH\src\Elmah\SimpleServiceProviderFactory.cs'. 
The file was not found in a project. 
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\'... 
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'... 
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'... 
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\'... 
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\builds\ELMAH\src\Elmah\SimpleServiceProviderFactory.cs. 
The debugger could not locate the source file 'c:\builds\ELMAH\src\Elmah\SimpleServiceProviderFactory.cs'. 

このSimpleServiceProviderFactory.csクラスは何ですか?私は行方不明ですか?

ありがとうございます!

+0

NuGetパッケージを試しましたか?私の場合、パッケージ版はちょうど働いた。 –

+0

私はそれが働いたらここに戻ります。 – formatc

+0

もう1つのコメントは、NuGetパッケージを使用した後、MVCアプリケーションを構築する場合、elmah 'routes.IgnoreRoute(" admin/elmah.axd/{* pathInfo} ");' –

答えて

0

NuGetのインストールが正しく機能し、手動で行う方がずっと簡単です!

関連する問題