[英]How to run ASP.NET MVC project inside another ASP.NET MVC project
Let's say I have a MVC project where there is root folder MVC2 and. 假设我有一个MVC项目,其中有根文件夹MVC2和。 Now, I want another MVC project to that MVC2 folder and serve it.
现在,我想要另一个MVC项目到该MVC2文件夹并提供服务。
Below url should serve MVC2 project which is just a folder inside the root project. url下面应该提供MVC2项目,它只是根项目中的一个文件夹。 Root project is also MVC.
根项目也是MVC。
I think there should be a webconfig setting which should make it work. 我认为应该有一个webconfig设置,它应该使它工作。
Thank you in advance. 先感谢您。 Any answer will be dearly appreciated.
任何答案都将非常感谢。
Is it possible? 可能吗? and if it is , is it possible to interact with each other.
如果是的话,是否可以互相交流。
I would strongly re-consider your architecture if you're having to embed MVC projects within one another. 如果您不得不将MVC项目嵌入其中,我会强烈重新考虑您的架构。 Depending on how closely related the two are, I would think about going in the following directions:
根据两者的密切关系,我会考虑按以下方向进行:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.