MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Error after installing Monox (Closed) (Mono Support )

Viewed 8109 time(s), 4 post(s) 10/31/2014 10:15:44 PMby amrmagdy
amrmagdy

amrmagdy

10/31/2014 10:15:44 PM
 my version  is : MonoX_4_9_40_4907

The error is :

Object reference not set to an instance of an object.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.NullReferenceException: Object reference not set to an instance of an object.

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: 

[NullReferenceException: Object reference not set to an instance of an object.]
MonoSoftware.MonoX.Localization.LocalizationHandler.GetDefaultCultureName() +135
MonoSoftware.MonoX.Localization.LocalizationHandler.GetLocalizationCultureName() +622
MonoSoftware.MonoX.Utilities.LocalizationUtility.GetCurrentLanguageCultureName() +23
MonoSoftware.MonoX.Utilities.PageUtility.GetPageProperties(String appRelativeCurrentExecutionFilePath) +103
MonoSoftware.MonoX.BasePage.GetPageProperties() +28
MonoSoftware.MonoX.BasePage.get_PageProperties() +28
MonoSoftware.MonoX.BasePage.OnPreInit(EventArgs e) +53
System.Web.UI.Page.PerformPreInit() +21
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1041

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
This content has not been rated yet. 
127 Reputation 15 Total posts
amrmagdy

amrmagdy

10/31/2014 10:35:49 PM
I tried again with new database and installed successfully , in the first case i used old database for old version , now how can I import old members accounts  to the new one? 
This content has not been rated yet. 
127 Reputation 15 Total posts
khorvat

khorvat

11/3/2014 8:10:37 AM
If this is an upgrade process that we are talking about, the best way is to use the old database and perform an upgrade procedure in order to make your db up to date with the latest version. You can find SQL upgrade scripts in the /MonoX/Installer/Sql/UpgradeScripts and then just run the scripts by version from your old version to the latest.

If you don't want to go this way then you can try importing you users with the SQL script (just select users from the old db and insert them into new one) or use some tools that can help you migrate users.

The following tables are involved in the transaction:
aspnet_Membership
aspnet_Users
aspnet_UsersInRoles


Note: If you copy your users from the old db you will not copy the content they have produced e.g. wall notes, blogs etc. so keep in that mind.

Regards
Rated 5.00, 2 vote(s). 
15993 Reputation 2214 Total posts
amrmagdy

amrmagdy

11/16/2014 4:25:55 PM
Thank you upgrade the current Monox is the best choice :)
This content has not been rated yet. 
127 Reputation 15 Total posts