Seperate Application Folder inside of MOJO site fails

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.
3/30/2012 3:51:18 PM
Gravatar
Total Posts 199

Seperate Application Folder inside of MOJO site fails

I have a folder under my MOJO site and it is a separate application folder with its own web.config file.

I was reading some documentation on how to have the sub folder application not inherit the web.config from MOJO, but I am having trouble implementing it.

where in the root web.config file do I place this following code so my sub folder app runs independent of MOJO?

<location inheritInChildApplications="false">

If there is a better way please share.

thanks

3/30/2012 4:22:25 PM
Gravatar
Total Posts 18439

Re: Seperate Application Folder inside of MOJO site fails

wrap one of those around the entire <system.web section and another one around the <system.webServer section of ths ite running in the root level which I guess you are saying is mojoPortal.

That "should" solve the problem with the child app, however, I will say doing that I encountered some problem with NeatUpload not working correctly after doing that and I don't have a solution for that, otherwise I would put those wrappers in the Web.config files we ship by default.

Hope that helps,

Joe

3/30/2012 4:55:47 PM
Gravatar
Total Posts 199

Re: Seperate Application Folder inside of MOJO site fails

Just testing the main site after implementing these wrappers and this is what is happening.

I wrapped one of these around system.webServer and the mojo site loaded:

<location inheritInChildApplications="false">

<system.webServer>

</system.webServer>

</location>

 

---------------------------------------------------------------

once I wrapped one of these around system.Web the mojo site fail to load and produced a 500 error.

 <location inheritInChildApplications="false">

<sectionGroup name="system.web"></sectionGroup>

  <system.web>

--------------------------------------------------------------

Should I be using the path attribute like this:

<location path="." inheritInChildApplications="false">

--------------------------------------------------------------

Just a little history on this for what it is worth:
Basically I have a simple application that exports a grid view to a .csv file, works great local, but I am getting a very strange MVC error when trying to use the app and I figured it was inheritance from mojo:

Error looks something like this:
Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0,

3/31/2012 6:57:06 AM
Gravatar
Total Posts 18439

Re: Seperate Application Folder inside of MOJO site fails

<location inheritInChildApplications="false">

<sectionGroup name="system.web"></sectionGroup>

<system.web>

the above is incorrect, it should be:

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

only wrap it around <system.web and <system.WebServer, don't wrap it around anything else.

Hope that helps,

Joe

4/2/2012 8:38:27 AM
Gravatar
Total Posts 199

Re: Seperate Application Folder inside of MOJO site fails

EXCELLENT!  That worked perfect, thanks Joe.

I think what threw me off was <sectionGroup name="system.web"></sectionGroup>

I saw the above and stopped looking for - <system.web>

If possible I think it would be a great idea if there was a key we could add to user.config to make this more automatic.

Thanks as always

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