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.
Cause
This problem occurs because another application changes the <sessionState mode> element in the Web.config file.
Resolution
To resolve this problem, change the <sessionState mode> element to use the parameters that Business Portal needs. To do this, follow these steps:
-
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
-
Make a copy of the Web.config file.
-
In Notepad or in another text editor, open the Web.config file.
-
On the Edit menu, click Find.
-
In the Find what box, type sessionState mode, and then click Find Next.
-
Verify that the <sessionState mode> element appears as follows.
<sessionState mode="InProc" />
-
If the <sessionState mode> element does not use the "InProc" attribute value, edit the <sessionState mode> element to use the "InProc" attribute value.
-
Save the Web.config file.
-
To enable the changes in the Web.config file, run the iisreset command. To do this, follow these steps:
-
On the server on which Business Portal is installed, click Start, and then click Run.
-
Type the following command in the Open box, and then press ENTER:
iisreset
-