Server Error when running mojoportal installation

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
7/17/2009 1:04:00 PM
Gravatar
Total Posts 22

Server Error when running mojoportal installation

Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
 

 

This is very weird.

I had my site running on production on the following address beta.xxxxxxxxx.com as this was my testing server. When I was ready to deploy the site, I then install another copy of the site on www.xxxxxxx.com. Since this one was a new copy i was hoping it was going to work and it did. The site is actually up and running. But what happen to beta.xxxxxxx.com?

As soon as the the other was live it started giving this error:

 

Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
 

7/17/2009 1:11:06 PM
Gravatar
Total Posts 18439

Re: Server Error when running mojoportal installation

Are they both using the same database?

Are they separate IIS sites?

I would look in the /Data/currentlog.config file for the newest ewrrors at the bottom of the file.

Hope it helps,

Joe 

7/17/2009 1:13:20 PM
Gravatar
Total Posts 22

Re: Server Error when running mojoportal installation

They are running on different databases but same IIS.

7/17/2009 1:16:29 PM
Gravatar
Total Posts 22

Re: Server Error when running mojoportal installation

This is what I have found on the currentlog.config

 

2009-07-09 07:57:21,188 ERROR mojoPortal.Web.Global - Application_Start Could not register VirtualPathProvider, must be running in Medium trust or lower
System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at mojoPortal.Web.Global.RegisterVirtualPathProvider()
at mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e) in D:\SVN\trunk\Web\Global.asax.cs:line 69
The action that failed was:
InheritanceDemand
The type of the first permission that failed was:
System.Web.AspNetHostingPermission
The Zone of the assembly that failed was:
MyComputer

7/17/2009 1:21:13 PM
Gravatar
Total Posts 18439

Re: Server Error when running mojoportal installation

That is not possible. If its one IIS WebSite its using 1 db because there is only 1 connection string so they cannot be using 2 dbs. At least its not possible for them to both be root level Web Sites like beta.somedomain.com and www.somedomain.com and use 2 dbs. You can run 2 sites like that from a single db using host names, or else you need 2 IIS Sites so they can have different connection strings.

Please be more specific about what you mean by this:

I then install another copy of the site on www.xxxxxxx.com

what exactly did you do.

Hope it helps,

Joe

7/17/2009 1:30:24 PM
Gravatar
Total Posts 22

Re: Server Error when running mojoportal installation

I just realized the mistake I did.

 

I upload files to a sub folder called beta since I have beta.xxxxx.com configure to go to that folder. then uploaded another set of files attempting to leave beta running and getting the second installation running on the root.

 

Purpose 1: To have main Website running on www.mydomain.com using a different database

Purpose 2: To have a sub Website running on beta.mydomain.com using a different database

 

How can I accomplish this?

7/18/2009 10:54:56 AM
Gravatar
Total Posts 18439

Re: Server Error when running mojoportal installation

When there is one .NET app running in a root folder and another running in a sub folder beneath it the Web.config files can clash, there are ways around it using the location element to wrap some web.config settings. You could definitely get both working in separate root web sites, but I can't promise it will work the way you are trying to do it with your host doing some kind of url forwarding to route a root level site to a virtual directory in a sub folder as you have  /beta. 

Hope it helps,

Joe

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