Portal Home > Knowledgebase > eCommerce > ‘WebsiteCode Is Not Specified’ Error

‘WebsiteCode Is Not Specified’ Error

Synopsis:

An error occurs while undertaking the current web request.


 

Value cannot be null. Parameter name: WebsiteCode is not specified. Set this using your Configuration Tool. 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.ArgumentNullException: Value cannot be null.Parameter name: WebsiteCode is not specified. Set this using your Configuration Tool.
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: 

[ArgumentNullException: Value cannot be null.Parameter name: WebsiteCode is not specified. Set this using your Configuration Tool.]   InterpriseSuiteEcommerceSecurity.Global.m_Application_Start(Object sender, EventArgs e) +520   InterpriseSuiteEcommerceSecurity.Global.Application_Start(Object sender, EventArgs e) +9
[HttpException (0x80004005): Value cannot be null.Parameter name: WebsiteCode is not specified. Set this using your Configuration Tool.]   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9024793   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +131   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +194   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +253
[HttpException (0x80004005): Value cannot be null.Parameter name: WebsiteCode is not specified. Set this using your Configuration Tool.]   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8946484   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256


Cause: 
Website Code is not properly set up to designated Webstore

 

Solution:

This can be resolved by configuring web.config file properly to its corresponding webstore through Application Configuration Tool

  1. Open the Interprise Configuration Tool or in your Installation folder, open Interprise.Presentation.Utility.AppConfig
  2. Open Configuration file and look for web config file from ISE > Web Folder > web.config

3. Make sure to appropriately specify the Website Code on Default Web Store as shown below:

 

Applicable Products

Interprise Suite 6.0 and higher


Also Read