Ошибка вызова elmah.axd - PullRequest
       11

Ошибка вызова elmah.axd

0 голосов
/ 19 февраля 2012

Я пытаюсь настроить elmah в своем веб-приложении, я изменил web.config, выполнил сценарий Sql на моей базе данных, добавил ссылку на elmah.dll и все прекрасно компилируется, но при отладке, когда я пытаюсь получить доступ к http://localhost:someport/elmah.axd Я получаю следующее исключение:

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

Обращение стека вызовов:

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 Iпропал?

Спасибо!

1 Ответ

0 голосов
/ 02 марта 2012

Установка NuGet работала правильно, и это намного проще, чем делать это вручную!

...