Moving MojoPortal from local machine to Arvixe hosting

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
8/17/2011 5:51:27 AM
Gravatar
Total Posts 59

Moving MojoPortal from local machine to Arvixe hosting

Hi All, A bit of background first. I'm a c# .net developer with approx 6 years experience. I decided to delve in to some web orientated development and came across mojo portal, which by the way is an amazing CMS solution, and so very easy to create feature rich websites with. Anyway, I came up with a website on my machine at home, but having tried to deploy this to my website I'm having some problems. SQL Server 2008 database restored, no problems there, but I have a feeling due to me creating the site locally on loclhost/MojoPortal, I may need to do some tweakig to get things to work? Thanks or any help. Andy
8/17/2011 7:04:00 AM
Gravatar
Total Posts 55
mojoPortal Community Expert
Arvixe Web Hosting / mojoPortal Community Liaison Looking for quality mojoPortal hosting? Try Arvixe Check out the MojoPortal Blogs at Arvixe

Re: Moving MojoPortal from local machine to Arvixe hosting

Hi Andrew,

Check your web.config / user.config files for settings which are specific to your local site, including connection string.

For information, unless I'm setting up a custom site I use WebMatrix to create my local sites and deploy to Arvixe and I find that works really well. Each time I set up a new site, I just create a new publishSettings file (contains maybe 5 or 6 settings) and on Arvixe add a new domain, set the remote management setting & create an empty database, and then all I need to do is choose publish from WebMatrix and it deals with copying all the files and the database (it does take a long time though). The published site then works immediately with no need to change any settings manually.

Another thing that caught me was collation. I only noticed a problem with this when I tried to open the member list,which came up with an error on the published site. This is only likely to be an issue if you are not based in the US (it seems that default collation for MS SQL installations is based on geographical area). I found that I needed to change the collation of my local MS SQL installation.

Spike

 

8/17/2011 7:24:47 AM
Gravatar
Total Posts 18439

Re: Moving MojoPortal from local machine to Arvixe hosting

See also Moving an Installation of mojoPortal to a Different Server

Hope that helps,

Joe

8/17/2011 7:46:59 AM
Gravatar
Total Posts 59

Re: Moving MojoPortal from local machine to Arvixe hosting

Thanks for the info Spike/Joe. I'll take a look in to the suggestions tonight when I get home from work. Thanks again, Andy.
8/17/2011 6:30:55 PM
Gravatar
Total Posts 59

Re: Moving MojoPortal from local machine to Arvixe hosting

Think I'm almost there.

Database access from the site now works, and the config seems to be correct.

Has anyone seen this error before?

Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'ASP.global_asax' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\72b2c9ec\952a9083\App_global.asax.qryhirep.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\72b2c9ec\952a9083\assembly\dl3\c893c82d\607e8346_555ccc01\App_global.asax.DLL'

Source Error:


Line 230:        }
Line 231:       
Line 232:        protected ASP.global_asax ApplicationInstance {
Line 233:            get {
Line 234:                return ((ASP.global_asax)(this.Context.ApplicationInstance));

Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\72b2c9ec\952a9083\App_Web_stylesheetcombiner.ascx.cc671b29.rfe8ucro.0.cs    Line: 232

8/18/2011 6:57:00 AM
Gravatar
Total Posts 18439

Re: Moving MojoPortal from local machine to Arvixe hosting

if recycling the app pool does not solve it I would try a reboot if you have control of the machine or contact your host otherwise.

these are temporary files compiled by the ASP.NET runtime so something is funky down there and it is beyond the control of mojoPortal, the runtime is supposed to handle that stuff for us. 

Hope that helps,

Joe

8/18/2011 4:20:07 PM
Gravatar
Total Posts 59

Re: Moving MojoPortal from local machine to Arvixe hosting

Hi Joe,

I decided to re-compile and publish my site again, it took a while!

Now I see this:

Server Error in '/' Application.

Theme 'default1' cannot be found in the application or global theme directories.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Theme 'default1' cannot be found in the application or global theme directories.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): Theme 'default1' cannot be found in the application or global theme directories.]
   System.Web.Compilation.ThemeDirectoryCompiler.GetThemeBuildResultType(String themeName) +934
   System.Web.Compilation.ThemeDirectoryCompiler.GetThemeBuildResultType(HttpContext context, String themeName) +73
   System.Web.UI.Page.InitializeThemes() +8937814
   System.Web.UI.Page.PerformPreInit() +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

8/18/2011 4:43:35 PM
Gravatar
Total Posts 59

Re: Moving MojoPortal from local machine to Arvixe hosting

I fixed the issue by copying:

wwwroot/App_Themes/default

and renaming the copied folder to be:

wwwroot/App_Themes/default1

also needed mobile1 so that it works on mobile devices.

The site is now live.

 

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