Troubleshooting errors in Business Portal for Microsoft Dynamics SL

This article provides a solution to errors that occur when you try to access Business Portal for Microsoft Dynamics SL or go to any of the Business Portal webpages.

Applies to:   Microsoft Dynamics SL 2011
Original KB number:   2788387

Symptoms

When you try to access Business Portal for Microsoft Dynamics SL or go to any of the Business Portal webpages, you may receive an error that resembles one of the following messages:

Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

An Unexpected error has occurred.
Troubleshoot issues with Microsoft Sharepoint Foundation Correlation ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Cause

There's a problem with Business Portal. However, the message that is received doesn't adequately describe the problem.

Resolution

To receive a message that is more descriptive and that can help with troubleshooting, change the web.config file. To do it, follow the steps:

  1. On the server hosting the Business Portal website, browse out to the inetpub directory on the BP server.

  2. Find the web.config file (typically in the C:\inetpub\wwwroot\wss\VirtualDirectories\80 folder).

  3. Make a backup copy of the web.config file.

  4. Open the web.config file in Notepad.

  5. Locate the Callstack="False" value and change it to Callstack="True".

  6. Locate the CustomErrors mode= "On" value and change it to CustomErrors mode="Off".

  7. Save the Web.config file.

  8. To enable the changes in the Web.config file, run the iisreset command. To do it, follow these steps:

    1. On the server on which Business Portal is installed, select Start, and then select Run.

    2. Type the following command in the Open box, and then press ENTER:

      iisreset
      
  9. Access Business Portal or the webpage and note the message that is generated.