调用 elmah.axd 时出错
我正在尝试在我的网络应用程序上设置 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'm trying to setup elmah on my web app,I changed web.config,executed Sql script on my db,added reference to elmah.dll and everything compiles fine but while debugging when I try to access http://localhost:someport/elmah.axd I get following exception:
An exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll but was not handled in user code
Call stack loaction:
Elmah.DLL!Elmah.SimpleServiceProviderFactory.CreateFromConfigSection(string sectionName)
Source File Information:
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'.
What is this SimpleServiceProviderFactory.cs class I'm missing?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
NuGet 安装工作正常,并且比手动安装要容易得多!
NuGet installation worked correctly, and it's much much easier then doing it manually!