Deploying to discountasp.net; having problems

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.
3/26/2008 11:42:34 AM
Gravatar
Total Posts 20

Deploying to discountasp.net; having problems

I uploaded the code to www.mysite.com/home/. I made sure the directory was set as an application. I went to www.mysite.com/home/setup/default.aspx and this is the result:

 

Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema needs to be created.
Running script mojoportal-core - 2.2.4.8 - 00:00:01.1561908
Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.

I check the database and see that the tables and stored procs are there. I even check mp_SchemaVersion and find an applicationID and "mojoportal-core" in the Application Name.

Even though my initial setup didn't look the same as I was used to when I set up locally (for example, I never got a link to go to the initial home page), I went to www.mysite.com/home/default.aspx, but it keeps redirecting me to the setup/default.aspx page.

Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema needs upgrade.
0 site(s) found.
Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.

 

 

3/26/2008 12:00:44 PM
Gravatar
Total Posts 20

Re: Deploying to discountasp.net; having problems

I forgot to add a couple details. The portal has to go under a subdirectory rather than root, and the database already exists.

3/26/2008 12:39:05 PM
Gravatar
Total Posts 18439

Re: Deploying to discountasp.net; having problems

Did you configure your "home" folder as an application in your Discount ASP control panel. Its under the Tools and Utilities section, "Web Application Tool"

mojoPortal should be able to run in a sub folder configured as an application but if you have another .net app running in the root of the site its possible Web.config settings from there will interfere, hopefully it won't but something to be aware of.

Hope it helps,

Joe

3/26/2008 1:45:40 PM
Gravatar
Total Posts 20

Re: Deploying to discountasp.net; having problems

Yes, the Home directory is configured as a web application. It appears none of the inserts are being performed. Tables and stored procs get created, though. I manually did an insert into the mp_Sites table and was able to create a home page just as expected.

--

OK, I exported the data from my development site to production with an SSIS package, and it looks as if that did it. I probably have some tweaking to do, and the site is extremely slow, but at least I'm up now.

3/26/2008 2:04:33 PM
Gravatar
Total Posts 18439

Re: Deploying to discountasp.net; having problems

the site is extremely slow

 

fyi, this site is running at DiscountASP but using MySql so it should be a good comparison for you for performance of your site.

ASP.NET sites generally suffer from slow performance when the app is just starting to get requests, after a few requests for various pages, the JIT (Just In Time) compiling is all done and it serves requests much faster. The problem is if you don't get much traffic the application shuts down (after 20 minutes of no  requests) then when you finally get a visitor again it has to do all that JIT compiling again so the few visitors you do get all get the slow site experience. A site that gets consistent traffic seems to perform much better.

If you're working with mojoPortal from the latest svn code I've got something implemented to help, but I haven't tested it yet. It basically its a task that can be launched on a background thread when the app starts and it can keep making web requests to the root of the site every so often to keep the application from closing down.

If you look for this in the latest svn Web.config:

<add key="UseAppKeepAlive" value="false" />

and set it to true, you can try it. Again, this is only in the very latest code in svn trunk and I haven't finished testing it but will soon, I just got side tracked to something else right after I implemented it, but it intended as a solution to the low traffic site JIT problem.

Best,

Joe

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