Unsuccessfully moved mojo from one directory to another

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.
9/14/2009 8:59:19 AM
Gravatar
Total Posts 20

Unsuccessfully moved mojo from one directory to another

Unsuccesfully tried to move my current instance of mojoportal from my wwwroot to another directory.   Any ideas based on the error message below?  Thank you.  

Now I get the following error message:

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 704:

Line 705: -->

Line 706: <machineKey validationKey="55BA53B475CCAE0992D6BF9FE463A5E97F00C6C16DA3D7DF9202E560078AB501643C15514785FEE30FEF26FC27F5CE594B42FFCA55452EF90E8A056B4DAE9F39" decryptionKey="939232D527AC4CD3E449441FE887DA110A16C1A36924C424CBAAE3F00282436C" validation="SHA1" decryption="AES" />

Line 707: <!--

Line 708: The above key is better so I changed it, but leaving this one here

 

 

9/14/2009 9:26:13 AM
Gravatar
Total Posts 2254

Re: Unsuccessfully moved mojo from one directory to another

You need to configure the directory you moved the site to as an Application in IIS. I wouldn't recommed moving mojoPortal to a Virtual Directory after the site has been built. You will run into all kinds of issues with the application's path (URL).

If you must move mojo to somewhere other than the root of your website. The best option would be to use a sub-domain attached to a separate website.

HTH,
Joe D.

9/14/2009 9:37:28 AM
Gravatar
Total Posts 18439

Re: Unsuccessfully moved mojo from one directory to another

Hi,

Joe is right its a problem moving a site with existing content from a root level url to a virtual directory because all the page urls would have the folder in the url if the content was created in a virtual directory but since the content was created in the root it will be missing the folder name part of the url for all urls in the mp_FriendlyUrls table and mp_Pages table and mp_Blogs table etc. If you don't have much content yet it wil be easier to start with a clean db in the site after moving it to a virtual directory, otherwise it can be fixed by adding the folder into all the urls in the tables mentioned.

However the error you report is a very common .NET error that happens if you have one .NET app running in the root and another running in a sub directory then the web.config settings from the root will interfere. You can get around it by wrapping the system.web section in the root site's web.config in a location element and disabling inheritance in child sites. Do a little googling about the web.config location element and how it is used.

Hope it helps,

Joe

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