Hosting other applications on IIS separate from Mojoportal

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/3/2009 1:57:04 PM
Gravatar
Total Posts 22

Hosting other applications on IIS separate from Mojoportal

Hello Joe,

 

I have a question about using mojoportal with other applications.

I will explain.

 

I have a shared hosting account wiht mojoportal installed on it. (ex. www.abc.com)

 

How can I install a .NET application on a sub domain for example http://support.abc.com. without getting an error?

 

by the way it is .NET helpdesk ticketing application.

 

Thanks.

9/3/2009 2:01:43 PM
Gravatar
Total Posts 2253

Re: Hosting other applications on IIS separate from Mojoportal

You shouldn't get any kind of error by hosting a different .NET application on a sub-domain of your mojoportal domain. Have you created a new website with the sub-domain using your hosting provider's control panel? If so, you should be good to go.

What errors are you receiving?

-Joe D.

9/3/2009 2:03:56 PM
Gravatar
Total Posts 18439

Re: Hosting other applications on IIS separate from Mojoportal

Hi,

I really need to make an FAQ entry about this soon as it comes up fairly often, its not a mojoportal issue but a general ASP.NET issue.

If you have one .NET app running at the root and another running as an application in a virtual sub directory the parent Web.config can interfere with the child because there is config inheritance. The way around it is to wrap conflicting items in a location element in Web.config. There are many articles on the net about this, one is this post in Rick Strahl's blog.

Hope it helps,

Joe

9/3/2009 2:10:02 PM
Gravatar
Total Posts 22

Re: Hosting other applications on IIS separate from Mojoportal

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) +8895103 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333 Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.4049

9/3/2009 2:11:56 PM
Gravatar
Total Posts 18439

Re: Hosting other applications on IIS separate from Mojoportal

yah so your child app is trying to load dlls defined in the mojoportal web.config. As I said do some googling and reading up on how to use the location element to resolve these issues.

Hope it helps,

Joe

9/3/2009 2:17:34 PM
Gravatar
Total Posts 2253

Re: Hosting other applications on IIS separate from Mojoportal

Cabrera,

I would just like to point out that you are installing your app in a virtual-directory under your domain that is hosting mojoPortal. You said in your original post that you are running your HelpDesk app in a sub-domain. Sub-domains and virtual-directories are very different. You might want to try running your HelpDesk app in a sub-domain as that should not present any problems or conflicts with other ASP.NET apps.

-Joe D.

9/3/2009 2:22:06 PM
Gravatar
Total Posts 22

Re: Hosting other applications on IIS separate from Mojoportal

I am hosting my website using godaddy.com and godaddy automatically sets a subdomain as a virtual folder.

Should I keep it that way or should I delete this settings from IIS?

9/3/2009 2:25:11 PM
Gravatar
Total Posts 2253

Re: Hosting other applications on IIS separate from Mojoportal

A fine example of why I don't like GoDaddy. :-) You could use my hosting. :-)

If GoDaddy will let you create a new site (not a virtual directory) using a sub-domain, that will do the trick. I don't have a GoDaddy account so I can't mess with their settings to figure out how to do that for you. Sorry...

-Joe D.

9/3/2009 2:39:35 PM
Gravatar
Total Posts 18439

Re: Hosting other applications on IIS separate from Mojoportal

Everything Joe Davis has said is true.

Be aware also that godaddy url masking is a problem with mojoportal, disable that if you are using it.

In addition to making the /Data folder writable you must also make the /App_Data folder writable and follow the medium trust instructions linked previously. There are people using mojoPortal on godaddy. I don't know if they use multiple apps or not.

Hope it helps,

Joe

9/3/2009 3:14:25 PM
Gravatar
Total Posts 22

Re: Hosting other applications on IIS separate from Mojoportal

Joe,

 

I was able to render a simple .aspx page by removing the virtual folder setting from IIS, however, in order for me to properly view this page I had to move the compiled assembly to the root bin directory folder where mojoportal is running.

 

Can I specified where to look for assemblies in my child web.config file?

9/3/2009 3:23:08 PM
Gravatar
Total Posts 2253

Re: Hosting other applications on IIS separate from Mojoportal

I think all that setting did was remove the application settings from IIS for the directory in which your helpdesk app is installed. This will not work properly, I can almost guarantee that.

You might want to get in touch GoDaddy support to see what the proper procedure is for creating a new website which uses your sub-domain as its host header. This should get you a whole new application pool and everything so your sites are running independent of each other.

-Joe

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