Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

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:

  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

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×