Separate ASP.NET site as Application under mojo site

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/24/2010 11:38:30 AM
Gravatar
Total Posts 60

Separate ASP.NET site as Application under mojo site

Hi Jo & Co,

Sorry if I'm missing the blindingly obvious here but this has had me stumped since yesterday, when my client was expecting to go live and is now getting rather cross!

We have a client with a PHP based CMS and an ASP.NET based (ASPDOTNETSTOREFRONT) online store.

The client site is at www.cwr.org.uk and the store sits "under" this as a separate IIS application so it's accessible at www.cwr.org.uk/store.  All this has been working happily for the last couple of years.

We recently persuaded the client to upgrade their CMS to Mojo, with the idea being that www.cwr.org.uk would now be Mojo with www.cwr.org.uk/store continuing as an AspDotNetStoreFront application.

But having tried it on the development server I've discovered that it doesn't work.  It looks like Mojo's URL re-writer (understandably) catches any reference to /store as being part of the mojo site and a range of errors results.

Is there any way to to tell Mojo to not look at anything under the /store node so that it can leave the underlying application to get on with doing it's own thing independantly?

All thoughts welcome!

Thanks

Ian

8/24/2010 11:47:49 AM
Gravatar
Total Posts 18439

Re: Separate ASP.NET site as Application under mojo site

Hi Ian,

Please be specific about the errors you get and why you think it is caused by the mojoPortal rewriter. As far as I know we only rewrite urls listed in mp_FriendlyUrls table so it should not affect your other application.

There can be issues with running one ASP.NET beneath another, typically conflicts between web.config files, but these can usually be resolved by configuration

http://www.mojoportal.com/developer-faq.aspx

Hope it helps,

Joe

8/24/2010 12:16:32 PM
Gravatar
Total Posts 60

Re: Separate ASP.NET site as Application under mojo site

Hi Jo,  thanks for the reply. 

I've modified my web.config to wrap <location...> around <system.web> as per your link but I'm still getting problems.  If I try and run the web store as-is (but with the above change) I get

"Could not load file or assembly 'mojoPortal.Web' or one of its dependencies. The system cannot find the file specified. "

If I copy the various mojo dlls into the bin dir on my child site I then get the error

"Could not find a part of the path 'D:\Websites\StoreFront\CWR\CwrStore_Live_8_1_2\Web\Data\Sites\1\systemfiles\sitesettingscachedependecy.config'. "

It was that that made me think that the URL rewriter was trying to do something weird with the sub-site, but do you think the fault may lie elsewhere?

Thanks again,

Ian

8/24/2010 12:35:27 PM
Gravatar
Total Posts 18439

Re: Separate ASP.NET site as Application under mojo site

Tell me more about the file system folder structure where mojoportal is located vs where the store is located and also about the IIS configuration.

Does the store folder actually exist under the mojoportal root folder?

Is the store folder configured as an application, does it have its own Web.config in the store folder, and its own store/bin folder?

Are you using url forwarding or proxying or some such?

Is it .NET 3.5 or 4.0?

What version of IIS?

What version of mojoPortal?

<location inheritInChildApplications="false">

should also wrap system.webserver section

8/24/2010 1:12:05 PM
Gravatar
Total Posts 60

Re: Separate ASP.NET site as Application under mojo site

Jo you're a genius!

I'd wrapped system.web but not the system.webserver section!

All now looking much more hopeful.

Thanks again - beer on the way!

Ian
 

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