Deploying MP Alongisde other Apps

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/8/2008 6:54:16 AM
Gravatar
Total Posts 43

Deploying MP Alongisde other Apps

Hi,

I am attempting to run another .Net application from the same website I have a Mojoportal instance. (IIS6, MP 2.2.6.4 MSSQL).
 

Having created a new virtual directory for my application, the Mojoportal Web.Config is being inherited by my application, causing it not to work. I understand that Web.Config inheritance is by design and is usually a desirable feature.

Instructions to stop Inheritance of Web.Config can be found from http://forums.asp.net/p/1119582/1966162.aspx#1966162:

You can stop web.config inheritance by adding

<location path="." inheritInChildApplications="false">
<system.web>
...
</system.web>
</location>

I can stop the Web.Config being inherited by my application, but this also stops the special MojoPortal folders like "Admin" from working.

If I knew how to add multiple paths like <location path=".,Admin,x,y,z" ... > that would be ideal, but I haven't found out how to do that yet.

How is everyone else managing to deploy other applications along-side Mojoportal?

Many thanks,

Kenny

8/8/2008 8:45:07 AM
Gravatar
Total Posts 43

Re: Deploying MP Alongisde other Apps

In fact, the previous post was in error. This does NOT stop the "Admin" pages from working. Perhaps this will do the trick after all.

8/8/2008 8:50:59 AM
Gravatar
Total Posts 18439

Re: Deploying MP Alongisde other Apps

Hi Kenny,

Yes it should solve it. A similar discussion of this technique is here:

http://aspadvice.com/blogs/ssmith/archive/2006/08/21/HttpModule-Breaks-SubApplications-Problem-Solved.aspx

The situation is if you have a Web site say at localhost or any root level site, and you have mojoportal running as a Virtual Directory/application beneath it, if there is a Web.config file un the folder corresponding to localhost or the root site, it will by default pass settings down to the Virtual Directory/Applications beneath it. This technique is a way to overcome that problem. It should also help in reverse, if you have mojoportal running at the root and some other app as a Virtual Directory/Application beneath it.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.