Multisite and sub domains

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/8/2009 9:06:45 AM
Gravatar
Total Posts 29

Multisite and sub domains

I took a look at the article here: http://www.mojoportal.com/multiplesitesbasedonhostnames.aspx

Wanted to know if and how the following would work:

Godaddy allows multiple subdomains, i wanted to point a subdomain to my hostname based multisite. The thing is each subdomain on go daddy must point to an actual directory. When i try to get it to work based on the instructions you've given i keep getting an error. Either the custom errors is off message, or the an error stating that their is an error in the application, please click here to go to "Home". I dunno, if its because godaddy is medium trust along with virtual path issue i see mentioned on your site. Can you shed some light?

The config i hav is that mojoportal is at the root of http://www.somesite.com, so i wanted to be able to have a multisite that loads wen i go to http://sub.somesite.com.

 

Folderbased seems to load fine thus far. But I was thinking hostname based is somewhat cleaner.

6/8/2009 9:29:30 AM
Gravatar
Total Posts 18439

Re: Multisite and sub domains

For host name based sites what you really need is a dedicated ip address that the site responds on, then mojoportal can do the host name mapping and you would not need any subdomain mapping like godaddy does. It "might" be possible to do it by having another copy of the mojoportal files in each sub domain (but all usinmg the same db), but in this case it will use more resources since its not really running from one installation and I'm sure resources like memory and proceesor are so scare at godaddy to begin with it probably won't handle it well. I'm really not sure how they do the mapping for subdomains or whether it can work at all.

Hope it helps,

Joe

6/8/2009 10:15:03 AM
Gravatar
Total Posts 29

Re: Multisite and sub domains

Ok. Scenario 2:

I have a folderbased multi site running. so for example. http://www.somesite.com/multisite1 works fine. As you said I need to have an actual directory called multisite1 with the default.aspx file in there to ensure asp.net handles the request. This works fine for me until i map a godaddy subdomain to the multisite1 directory.  I was tryna get this http://www.somesite.com/multisite1 = http://multisite1.somesite.com. As i mentioned to you before they say subdomains must be mapped to an actual directory, it usually works for me, but when i do it with the mojo multisite it doesnt work. I get the following, I think its a goddaddy error msg and not an mojoportal error:


We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

 

I'm thinking some kind of request confusion is happening? When both mojo portal and the subdomain try to resolve to the multisite1 directory.
 

6/8/2009 10:21:33 AM
Gravatar
Total Posts 29

Re: Multisite and sub domains

What would cause this:

Server Error in '/multisite1' Application.
Could not load file or assembly 'mojoPortal.Web' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'mojoPortal.Web' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'mojoPortal.Web' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Stack Trace:

[FileNotFoundException: Could not load file or assembly 'mojoPortal.Web' or one of its dependencies. The system cannot find the file specified.]
System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +64
System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +342
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +52

[ConfigurationErrorsException: Could not load file or assembly 'mojoPortal.Web' or one of its dependencies. The system cannot find the file specified.]
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +351
System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +56
System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +122
System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1219
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +97
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +188
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +295
System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +56
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +231

[HttpException (0x80004005): Could not load file or assembly 'mojoPortal.Web' or one of its dependencies. The system cannot find the file specified.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8886319
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
 

6/8/2009 10:30:22 AM
Gravatar
Total Posts 18439

Re: Multisite and sub domains

No , it can't work like that wasn't designed to work like that at all. Folder sites are folder sites host sites are host sites. There is no possibility to map a host name to a folder site. 

6/8/2009 10:42:01 AM
Gravatar
Total Posts 29

Re: Multisite and sub domains

ok, well folder based does what it needs to do, just kinda preferred being able to use the subdomain.

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