asp.net mvc 3 - Main MVC3 web app interferes with child MVC3 web app -
asp.net mvc 3 - Main MVC3 web app interferes with child MVC3 web app -
just background info here. using shared hosting winhost, , have next setup
shared iis |______main primary mvc3 web app (uses nhibernate & castle.windsor orm) |_______ kid mvc3 web app (not using nhibernate nor castle.windsor not need database access)
at winhost, allows me set application starting point, can have
/ <= primary app /child <= kid app
each app has own web.config, like
/web.config /child/web.config
well, surprise, seems though /child folder set application starting point, doesn't appear isolated parent primary web app, because when seek load kid app, infamous error
could not load file or assembly 'castle.windsor' or 1 of dependencies. scheme cannot find file specified.
i tried workaround dumping nhibernate related library /child/bin folder, makes matter worse, because need setup additional nhibernate configuration within kid app, though kid app has no need database access.
so there setting somewhere (such web.config) can forcefulness kid app isolated parent app?
i think lastly resort ditch kid web app, , turn "area" under primary main web app, that's not ideal, because these 2 web apps aren't related each other @ all, targeting different audience etc.
note: should not case of routing issue, because of 2 reasons 1. winhost sets /child folder application starting point 2. under primary web app, ignored kid within registerroutes()
routes.ignoreroute("child"); routes.ignoreroute("{folder}/{*pathinfo}", new { folder = "child" });
well, after 3 hours of working on this, @ loss. suggestions appreciated. allow me know if need see configs. give thanks in advance!
i ended resolving modifying kid app area under parent app. disabled application starting point /child folder , removed /child folder server.
it working, although not exclusively excited workaround.
asp.net-mvc-3 iis-7 web-config web-deployment
Comments
Post a Comment