Migrating from one server 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.
2/2/2014 12:56:26 PM
Gravatar
Total Posts 46

Migrating from one server to another

I moved my installing from one server to another.  Both Windows Server 2008 R2.  Got SQL migrated over.  The sites are working fine... or so I thought.  The second I go to /admin to login, I get the error "object reference not set to an instance of an object".  There are no specifics so I'm stuck.....I can't login to any of my sites at this point.

2/2/2014 1:08:00 PM
Gravatar
Total Posts 18439

Re: Migrating from one server to another

make sure the server is fully patched with all windows updates, missing updates can cause problems with IE 11 or 10 and logging in.

check the windows application log to get more detail about the error if you post the error details then maybe we could help but without it not so much

when posting about errors indicate whether you mean a server side error or a javascript error in the web browser, I don't know which you mean in this case

Also I would double check the file system permissions sometimes funky permissions occur because the file system objects are owned by a user sid that doesn't exist on the new machine. The /Data and /App_Data folders and all their child objects must be under full read/write control of the user that is the identity on the app pool.

A variety of errors can happen if file system permissions are messed up.

See also Moving an Installation of mojoPortal and Basic Troubleshooting

2/2/2014 1:14:22 PM
Gravatar
Total Posts 46

Re: Migrating from one server to another

I ran setup again to make sure all permissions read/write were setup properly and they are.

 

Event viewer:

 

+ System 

  - Provider 

   [ Name]  ASP.NET 4.0.30319.0 
 
  - EventID 1309 

   [ Qualifiers]  32768 
 
   Level 3 
 
   Task 3 
 
   Keywords 0x80000000000000 
 
  - TimeCreated 

   [ SystemTime]  2014-02-02T19:08:17.000000000Z 
 
   EventRecordID 11117996 
 
   Channel Application 
 
   Computer pug.viviotech.net 
 
   Security 
 

- EventData 

   3005 
   An unhandled exception has occurred. 
   2/2/2014 11:08:17 AM 
   2/2/2014 7:08:17 PM 
   30527181b35d41e88939ad0b39d67211 
   44 
   1 
   0 
   /LM/W3SVC/68/ROOT-4-130358410252480000 
   Medium 
   / 
   C:\inetpub\wwwroot\localuser\cmsChuter\ 
   PUG 
    
   2804 
   w3wp.exe 
   IIS APPPOOL\chuter_usama 
   NullReferenceException 
   Object reference not set to an instance of an object. at mojoPortal.Web.UI.LoginControl.PopulateControls() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
   http://www.usamartialartists.org/Secure/Login.aspx?returnurl=/home.aspx 
   /Secure/Login.aspx 
   68.54.8.158 
    
   False 
    
   IIS APPPOOL\chuter_usama 
   8 
   IIS APPPOOL\chuter_usama 
   False 
   at mojoPortal.Web.UI.LoginControl.PopulateControls() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  

2/2/2014 1:46:02 PM
Gravatar
Total Posts 18439

Re: Migrating from one server to another

Ok, so the error says that something is null in the PopulateControls method of the login control. Looking at the source code for mojoPortal.Web.UI.LoginControl.cs, you can see what that method does and it is getting references to controls that should and do exist in the corresponding LoginControl.ascx file. But in your case it seems that something expected is missing in your copy of the LoginControl.ascx file so its getting null on something that should not be null.

Perhaps you've modified the code yourself or perhaps the file was corrupted somehow during migration and needs to be re-copied.

Hope that helps,

Joe

2/2/2014 1:47:53 PM
Gravatar
Total Posts 18439

Re: Migrating from one server to another

"I ran setup again to make sure all permissions read/write were setup properly and they are"

Our setup page does not detect all file system permissions problems and it does not correct any file system permission problems.

2/2/2014 1:52:53 PM
Gravatar
Total Posts 46

Re: Migrating from one server to another

You must have been right something happened in the file transfer.  I upgraded to the latest version of mojoportal and all is good now!  

 

Thanks for your help on a Sunday!  Have a great day!

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