Ninject 引导程序没有可用的源

发布于 2024-12-14 00:38:07 字数 1680 浏览 1 评论 0原文

我已通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

所有深爱都是秘密 2024-12-21 00:38:07

我不知道为什么这是一个问题。当您没有尝试调试的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文