Move Site to New Server

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.
2/1/2012 2:31:39 AM
Len
Gravatar
Total Posts 36
"It isn’t enough to think outside the box.Thinking is passive. Get used to acting outside the box."

Move Site to New Server

operating system Win7

database platform MSSQL net 35

MojoPortal version : 2.3.6.4

Hi guys,

I need some help as have followed everything as per the mojPortal documentation for Moving an Installation of mojoPortal to a Different Server

Data base restored, URL structure the same, no temp files,  folder permission done, user and web config done.

We now have everything setup on the new server but can't work out why we keep getting the application runtime error even after we have set the <customErrors mode="Off"/> we still get the following page.

-----

Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

Any advise or help would be appreciated

Len 

 

2/1/2012 7:46:43 AM
Gravatar
Total Posts 18439

Re: Move Site to New Server

Hi Len,

It means the error is preventing it from loading the Web.config file therefore setting customErrors off has no effect.

Most likely cause is either a typo in Web.config (or user.config) making it malformed xml or invalid in some way or you are running the .NET 4 version of mojoPortal under .NET 3.5 which will cause errors like this.

Hope that helps,

Joe

2/1/2012 8:15:42 AM
Len
Gravatar
Total Posts 36
"It isn’t enough to think outside the box.Thinking is passive. Get used to acting outside the box."

Re: Move Site to New Server

Hi Joe,

Thank you, will recheck

Should I leave the machine key as is on the original web.config or the use the one that was in my web.config file on the old server?

Thanks

Len 

2/1/2012 8:25:13 AM
Gravatar
Total Posts 18439

Re: Move Site to New Server

Yes, once you have establshed a custom machine key it should never change because it is used for encrypting things like user passwords and if it changes then decryption will fail and all users will be locked out with no way to recover the previous password. So the machine key in your new hosting should be the same as it was in your old one by keeping it as it is in your Web.config file. And during upgrades of mojoPortal you need to use the new Web.config but restore the machine key from your old one to the new Web.config.

Hope that helps,

Joe

2/1/2012 8:33:48 AM
Len
Gravatar
Total Posts 36
"It isn’t enough to think outside the box.Thinking is passive. Get used to acting outside the box."

Re: Move Site to New Server

 

Thanks Joe,

Did as advised now getting following 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.

?

 

Len

2/1/2012 8:39:05 AM
Gravatar
Total Posts 18439

Re: Move Site to New Server

Hi Len,

I'm not sure what you mean by "did as advised", I didn't advise anything, I told you possible causes of the error, your machine key question was not related to the error and keeping it the same was not a proposed solution to the error.

I suggest start with Basic Troubleshooting.

Hope that helps,

Joe

2/1/2012 9:03:11 AM
Len
Gravatar
Total Posts 36
"It isn’t enough to think outside the box.Thinking is passive. Get used to acting outside the box."

Re: Move Site to New Server

 

Thank you Joe,

What I meant is I used a original web.config from the deployment folder and changed the string settings. Then ran the setup/default.aspx but got the error to this url path

http://www.mysitename.co.za/Error.htm?aspxerrorpath=/setup/default.aspx 

Will go through the Basic Trouble shooting again, just lost as to what to look for now.

<customErrors mode="Off" -- is set

hosted under .NET 3.5 -- is set correctly

All folder are read/write at the moment

system log is empty   

Len

2/1/2012 9:10:03 AM
Gravatar
Total Posts 18439

Re: Move Site to New Server

Sounds like you complicated the move by trying to upgrade at the same time which I would not do, I would have either upgrade on the original server and then moved or moved first got it working and then upgraded.

An empty log is evidence that file system permissions are not correct and that would cause an error but it may or may not be the only problem.

The /Data and /App_Data folders need to be writeable by the user that is the identity on the application pool.

Since you are getting the friendly error page it means it is now loading the web.config file so you can try setting customErrors off so that it shows the error detail instead of the friendly error page.

Hope that helps,

Joe

2/1/2012 9:45:13 AM
Len
Gravatar
Total Posts 36
"It isn’t enough to think outside the box.Thinking is passive. Get used to acting outside the box."

Re: Move Site to New Server

Hi Joe,

Sorry typo (bad Copy & Paste) system log is free of errors other than ERROR mojoPortal.Web.AppKeepAliveTask - System.Net.WebException: The remote server returned an error: (500) Internal Server Error.

The /Data and /App_Data folders need to be writeable by the user that is the identity on the application pool. Only one user and all folders are writeable until we can get the site up.

We did not upgrade we backed up both database & file folder system and restored both on new server

<customErrors mode was set <customErrors mode="RemoteOnly" defaultRedirect="Error.htm"> opps should have changed that did the change and back to original Server Error in '/' Application.

Thanks for the help so far Joe much appreciated

 

Len 

2/1/2012 9:55:32 AM
Gravatar
Total Posts 18439

Re: Move Site to New Server

Hi Len,

I would disable the appKeepalive until other problems are solved.

It doesn't really make sense, if setting customErrors to RemoteOnly shows the friendly error page then it is able to laod the web.config, if you change it to Off it should show the error detail, if it doesn't I would check with your host and see if they can find out the error detail from windows event viewer. In order to solve the error the error details must be known.

Hope that helps,

Joe

2/1/2012 10:37:52 AM
Len
Gravatar
Total Posts 36
"It isn’t enough to think outside the box.Thinking is passive. Get used to acting outside the box."

Re: Move Site to New Server

Thanks Joe

Will give them a call.

Len

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