Session("KartrisUserCulture"


https://forum.kartris.com/Topic3730.aspx
Print Topic | Close Window

By petefeehan - Fri 15 May 2015
Can anyone help me with the following problem, Im trying to evaluate Katris for an old Cactus customer.

Ive installed the app and run the data tool to transfer their data successfully, but when I go to the shop URL I get the following message, any help appreciated.

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:

Line 229:            Catch ex As ExceptionLine 230:                Session("KartrisUserCulture") = LanguagesBLL.GetCultureByLanguageID_s(LanguagesBLL.GetDefaultLanguageID())Line 231:                Thread.CurrentThread.CurrentUICulture = New CultureInfo(Session("KartrisUserCulture").ToString)Line 232:                Thread.CurrentThread.CurrentCulture = New CultureInfo(Session("KartrisUserCulture").ToString)Line 233:            End Try
By metalmania - Tue 19 May 2015
You might want to check the Language settings are setup correctly in the backend.
Regional Setup -> Lang. & Email Setup.
Make sure at least 1 language is setup (e.g. English) and it's actually Live.
Language Culture for English is "en-GB"
and Language UI Culture is "en"
Although there is referential integrity on the database, so would be surprised if these were set incorrectly.
By Paul - Tue 19 May 2015
I've found sometimes due to the CactuShop settings being carried across, it's easier and less problematic to set up Kartris, test it, then run the Data Tool to import products, then test, and then run to import customers.

Part of the difficulty in upgrading is that data is very inter-related, so you might find for example that we need to pull country data from CactuShop to ensure shipping etc. is all mapped correctly, but CactuShop lacks the full culture definitions that Kartris requires.
By ocsbox - Fri 29 May 2015
[SerializableAttribute][ComVisibleAttribute(true)]public class NullReferenceException : SystemException

use it or you can be take a look on https://goo.gl/dvr3Vp