Problem creating multiple sites

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/2010 10:32:39 AM
Gravatar
Total Posts 6

Problem creating multiple sites

Hi.

Can i just say first that your product is just what I need :)

Everything seems pretty straight forward, however, I'm having a problem setting up a new site based on folder names.

The first site works with no problems, but when I create a new site and create a new folder, and run the project in visual web developer, it just shows a blank page.

I've followed the instructions on your help site, and I've tried to follow the instructions as closely as possible, however, Im just stuck at this point.

The main site Url is: http://localhost:1888/MojoCms/Default.aspx

The site im trying to create should be : http://localhost:1888/MojoCms/IT/Default.aspx

Ive tried it as http://localhost:1888/IT/Default.aspx, but i just get an application error.

Please help

Thanks

Rob

 

3/30/2010 11:03:00 AM
Gravatar
Total Posts 43
Partner

Re: Problem creating multiple sites

Welcome Rob,

You said you followed the instructions… just making sure you saw the “Hosting Multiple Sites Based on Folder Names” instructions found here: http://www.mojoportal.com/multiplesitesbasedonfoldernames.aspx

Are you having success in both sites loading OUTSIDE visual web developer? If not, I would attempt to get that to work first, then introduce the development platform into the equation.

I assume this is for IIS.

-Todd

3/30/2010 12:28:54 PM
Gravatar
Total Posts 6

Re: Problem creating multiple sites

Hi,

Thanks for the quick reply. Am I right in thinking that just running it in visual webdeveloper could be the reason im getting problems?

Also when you create in IIS, will it need to to see it as two separate sites, if im just doing it folder based?

I'll get it running on IIS tomorrow, and i'll let you know how I get on.

Thanks again

Rob

 

3/30/2010 12:36:07 PM
Gravatar
Total Posts 18439

Re: Problem creating multiple sites

Hi Rob,

The problem is very clear to me, the first sentence of the documentation about folder sites says:

Hosting multiple sites based on Folder names requires that the master site run as a root Web site, that is, it must have an url structure like: 
http://hostname/

and you said

The main site Url is: http://localhost:1888/MojoCms/Default.aspx

so your main site is running in a folder and that will not work, the main site must be a root level site in order to have child sites in folders.

Hope it helps,

Joe

3/30/2010 12:41:17 PM
Gravatar
Total Posts 43
Partner

Re: Problem creating multiple sites

I cannot speak with authority as I have not personally used sub-folders as mentioned in the document. The document mentions that you need to make ASP.NET be the default handler for all requests. I believe this is typically done in IIS and I would not know where to do that in visual studio.

Now, let’s be specific in what you asked about two separate sites. You will only need one mojoPortal installation but will need to configure multiple sites within the mojoPortal framework, more information found here http://www.mojoportal.com/muliplesites.aspx.

Again, I would get the multiple sites working first on IIS, then introduce the development framework into the equation.

-Todd

3/30/2010 12:41:32 PM
Gravatar
Total Posts 6

Re: Problem creating multiple sites

Hi,

Thats what i thought it may be. So its not going to work just developing it as a project in webdeveloper, because of the way the file structure is set out?

I'll get it going on IIS tomorrow, obviously with the new sites at root level and hopefully that should do the trick.

Thanks :)

3/30/2010 12:44:04 PM
Gravatar
Total Posts 43
Partner

Re: Problem creating multiple sites

There you go, a person who can speak with authority! (was composing my response when Joe posted his)

-Todd

3/30/2010 12:47:27 PM
Gravatar
Total Posts 18439

Re: Problem creating multiple sites

Can't you run it in Visual Web Developer as http://localhost:1888/ instead of http://localhost:1888/MojoCms/?

I'm not aware of a limitation in Visual Web Developer that prevents this, it certainly works fine in Visual Studio.

Hope it helps,

Joe

3/30/2010 1:00:28 PM
Gravatar
Total Posts 6

Re: Problem creating multiple sites

Hi,

I did try running it as http://localhost:1888/IT/Default.aspx by putting the 'IT' folder outside of 'MojoCms', But I still got the same problems.

However, I'll have a look at it again, and also see how it runs in IIS.

Cheers

Rob

3/30/2010 1:06:48 PM
Gravatar
Total Posts 18439

Re: Problem creating multiple sites

You do not need to create folders.

The first site can run at http://localhost:1888/

and then you can add a site from the site settings page with the folder IT and it will work as http://localhost:1888/IT/Default.aspx

Are you working with the source code or a pre-compiled release package? I don't know where this MojoCms folder comes from but it should not be part of the url for the master site.

If you work with the source code, you just open the mojoportal_mssql_only.sln file in VWD, rebuild the solution and then if you launch the debugger it will run as a root level site by default.

Hope it helps,

Joe

3/30/2010 1:17:59 PM
Gravatar
Total Posts 6

Re: Problem creating multiple sites

Hi,

For some reason the sln file wouldnt open in VWD. I just opened it as a website, and then ran the scripts.

I changed the name myself to MojoCms, just to differentiate with the other projects I have going on.

Will this have an effect on the development?

I was going to change it to something completely different anyway.

Thanks, you've been a great help to me today :)

Rob

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