这里只是一些背景资料。 我目前正在与温·霍斯特共同担任东道,并安排如下工作:
Shared IIS
|______Main Primary MVC3 web app (uses NHibernate & Castle.Windsor for ORM)
|_______ Child MVC3 web app (not using NHibernate nor Castle.Windsor as it does not need database access)
At WinHost, it allows me to set the application starting point, so I can have
/ <= for primary app
/child <= for the child app
每一台都有自己的网络。 因此,它喜欢
/web.config
/child/web.config
Well, to my surprise, it seems that even though /child folder is set as an application starting point, it doesn t appear to be isolated from the parent primary web app, because when I try to load the child app, I get the infamous error
Could not load file or assembly Castle.Windsor or one of its dependencies. The system cannot find the file specified.
我试图通过把与NHibernate有关的图书馆带入/儿童/组合的夹子来进行工作,但这只会使情况更加恶化,因为我还需要在儿童队伍中建立更多的国家自由组合,尽管儿童不需要数据库查询。
因此,在某个地方(例如网络.config)我可以强迫儿童与父母分离?
我认为,最后的手段是切断儿童网络的浏览量,并将之变成主要网络的“Area”,但并非理想,因为这两个网络的浏览点完全是相互联系的,针对不同受众等。
Note: it should not a case of routing issue, because of two reasons 1. WinHost sets the /child folder as application starting point 2. Under the primary web app, I already ignored the child inside RegisterRoutes()
routes.IgnoreRoute("child");
routes.IgnoreRoute("{folder}/{*pathinfo}", new { folder = "child" });
在3小时工作之后,我就失去了工作。 任何建议都受到高度赞赏。 让我知道,你们是否需要看到任何冲突。 事先感谢你!