Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message in Business Portal for Microsoft Dynamics GP: "Server Error in '/' Application. Unable to serialize the session state."


View products that this article applies to.

Symptoms

You receive the following error message in Business Portal for Microsoft Dynamics GP:
Server Error in '/' Application.

Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.

This problem occurs if one of the following conditions is true:

  • You click to select the Require Start/Stop Times check box in the Human Resources Management Self Service Suite in Business Portal.

  • You save a timesheet in Project Time & Expense for Microsoft Dynamics GP.

  • You create a new requisition in Requisition Management for Microsoft Dynamics GP.

↑ Back to the top


Cause

This problem occurs because another application changes the <sessionState mode> element in the Web.config file.

↑ Back to the top


Resolution

To resolve this problem, change the <sessionState mode> element to use the parameters that Business Portal needs. To do this, follow these steps:
  1. Locate the Web.config file for Business Portal. This file is located in the virtual directory in the Inetpub folder on the server on which Business Portal is installed. For example, this file may be in the following location:
    C:\Inetpub\wwwroot\wss\VirtualDirectories\81
  2. Make a copy of the Web.config file.
  3. In Notepad or in another text editor, open the Web.config file.
  4. On the Edit menu, click Find.
  5. In the Find what box, type sessionState mode, and then click Find Next.
  6. Verify that the <sessionState mode> element appears as follows.
    <sessionState mode="InProc" />
  7. If the <sessionState mode> element does not use the "InProc" attribute value, edit the <sessionState mode> element to use the "InProc" attribute value.
  8. Save the Web.config file.
  9. To enable the changes in the Web.config file, run the iisreset command. To do this, follow these steps:
    1. On the server on which Business Portal is installed, click Start, and then click Run.
    2. Type the following command in the Open box, and then press ENTER:
      iisreset

↑ Back to the top


Keywords: kbnosurvey, kbgreatplainsbp, kberrmsg, kbmbspartner, kbexpertisebeginner, kbtshoot, kbmbsmigrate, kbprb, kbexpertiseinter, kb

↑ Back to the top

Article Info
Article ID : 952756
Revision : 1
Created on : 3/3/2017
Published on : 1/4/2015
Exists online : False
Views : 194