我正在尝试在我的网络应用上设置elmah,我更改了web.config,在我的数据库上执行了Sql脚本,添加了对elmah.dll的引用,所有内容编译都很好,但在我尝试访问{{3}时进行调试我得到以下异常:
An exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll but was not handled in user code
调用stack 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 :(得分:0)
NuGet安装工作正常,手动操作要容易得多!