Ninject 引导程序没有可用的源
我已通过 nuget 将 Ninject Mvc 扩展添加到我的项目中,并将 NinjectMVC3 文件放入 App_Start 文件夹中。如果我进入源代码,“无可用源”页面就会出现在我面前。
问题是我无法访问代码行的下一步。我必须在自己的代码中找到下一步并设置断点。
它正在寻找 NinjectDependencyResolver.cs,但当前路径中没有这样的文件,如下面的信息所示。
以下是来自 Visual Studio 的源文件信息。
Locating source for 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'. Checksum: MD5 {c4 f8 b4 46 45 cb f8 1c c7 74 29 b9 70 9f 2b 24}
The file 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs' does not exist.
Looking in script documents for 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'...
Looking in the projects for 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmf敤楦楮楴湯祜畯摲晥湩瑩'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs.
The debugger could not locate the source file 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'.
我怎样才能摆脱这个问题?
I have been added Ninject Mvc Extensions via nuget to my project and it has been put NinjectMVC3 file into App_Start folder. If i stepping into my source codes, "No available source" page appear front of me.
Problem is that i can not access next step into code line. I have to find next step in my own code and put breakpoint.
It is looking for NinjectDependencyResolver.cs but there is no such a file in current path as it has been show in below information.
Below is source file information from Visual Studio.
Locating source for 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'. Checksum: MD5 {c4 f8 b4 46 45 cb f8 1c c7 74 29 b9 70 9f 2b 24}
The file 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs' does not exist.
Looking in script documents for 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'...
Looking in the projects for 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmf敤楦楮楴湯祜畯摲晥湩瑩'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs.
The debugger could not locate the source file 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'.
How can i get rid of this problem ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道为什么这是一个问题。当您没有尝试调试的 dll 的源代码时,这是标准行为。从源代码构建 ninject 或忽略警告。
I'm not sure why this is a problem. This standard behaviour when you don't have source code for the dll you are trying to debug. Either build ninject from source or ignore the warning.