Upgrading Tip

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.
5/22/2009 4:16:55 PM
Gravatar
Total Posts 73

Upgrading Tip

When you are in the middle of upgrading, if you don't want your users to get the admin setup page, you can create a html file in the root folder called app_offline.htm. Asp.net sees this file, and regardless of whatever url you are trying to hit on the site redirects all traffic to that file.

I have in mine( I just copy it in w/e I am working on a site):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Application Offline</title>
<style>
div {
background-color:#ffffcc;
padding-top:10px;
padding-bottom:10px;
padding-left:10px;
padding-right:10px;
border-style:solid;
border-color:Black;
border-width:1px;
}
</style>
</head>
<body>
<div>
We are currently performing system maintenance. The site is down temporarily. Please try again later.
</div>
</html>
 

 

 

12/6/2010 3:51:25 PM
Gravatar
Total Posts 147
Download Free Mojo Skins http://crypticsites.net

Re: Upgrading Tip

I'm wondering about this -- what about when you type in the domainname.com/Setup/default.aspx, to start the upgrading process?  Does it mess that up?

Thx!

Andria

 

 

 

12/6/2010 4:40:30 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Upgrading Tip

According to this blog post, the mere presence of app_offline.htm in the root of the site will stop the entire application, so while it's there no one would be able to run setup either. I guess you could put this file in place, ftp your new version mojoPortal files to the server, then remove/rename this file and run Setup. That way you would minimize the chances of someone hitting a page that contains an upgraded feature that needs schema database upgrades before you have had a chance to run setup. If that situation were to happen they would probably get a 500 error.

Jamie

12/6/2010 6:46:33 PM
Gravatar
Total Posts 147
Download Free Mojo Skins http://crypticsites.net

Re: Upgrading Tip

Ok, that was approximately what I thought, but wanted to find out more about it.  Sounds like a plan! laugh

Thx,

Andria

 

12/7/2010 9:17:56 AM
Gravatar
Total Posts 18439

Re: Upgrading Tip

Hi Andria,

It is safe to run the setup page at any time, it will not ever hurt anything by visiting the setup page in between upgrades. When upgrading though you do need to be careful to make sure you upload all the new files especially the ones under /Setup before you visit the setup page which is why I usually upload that folder first. Taking it offline while you do the uploading is not a bad idea because then you can be sure setup doesn't run with just some of the new files.

Also it is good to disable setup from user.config so that only admin users can run the page, then make sure you do login before you upgrade because it will run for admins even when it is "disabled" but if you are not logged in you would have to enable it again.

<add key="DisableSetup" value="true" />

Best,

Joe

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