简体   繁体   English

调试VS 2012 asp.net MVC jQuery WebAPI MEF

[英]Debug VS 2012 asp.net mvc jquery webapi MEF

I'm developing an ASP.net MVC project as part of a larger solution. 我正在开发一个ASP.net MVC项目,作为更大解决方案的一部分。 The MVC project uses the following technologies: MVC项目使用以下技术:

MVC WebAPI jquery MEF MVC WebAPI jQuery MEF

Views are rendered using MVC. 使用MVC渲染视图。 jQuery REST calls made to webAPI controllers for updating parts of the view. 对webAPI控制器进行的jQuery REST调用,用于更新部分视图。

I'm using MEF resolve the MVC and WebAPI controllers and any other dependencies. 我正在使用MEF解析MVC和WebAPI控制器以及任何其他依赖项。

Right now, I'm not able to resolve any of the WebAPI calls. 目前,我无法解决任何WebAPI调用。 What do I need to do to debug problems with MEF resolution? 我需要做什么来调试具有MEF分辨率的问题?

Thanks in advance. 提前致谢。

You can use MEFX to help diagnose composition errors ( http://msdn.microsoft.com/en-us/library/ff576068(v=vs.100).aspx . 您可以使用MEFX帮助诊断合成错误( http://msdn.microsoft.com/en-us/library/ff576068(v=vs.100).aspx

If you're not getting any exceptions, I would add a breakpoint somewhere after you're doing composition and look at the Parts property of the container, to see if the parts you expect to be there are there. 如果没有任何异常,那么在进行合成之后,我会在某处添加一个断点,并查看容器的Parts属性,以查看期望的零件是否在那里。 If they're not, you should be able to use MEFX to figure out why not. 如果不是,您应该能够使用MEFX找出原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM