You may receive a Runtime Error message when you export Web parts from Web sites where Great Plains Business Portal is not installed


Retired KB Content Disclaimer

This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Symptoms


You may receive an error message that is similar to the following in Microsoft Business Solutions – Great Plains Business Portal:
Runtime Error

Server Error in '/_vti_bin' 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.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>

Cause


This problem occurs when the following conditions are true:

  • You export Web parts from Web sites where Business Portal is not installed. For example, you have an application that is installed on the default Web site, and you have Business Portal installed on another Web site.
  • You edit Web pages on other .NET Web sites by using Microsoft Visual Studio .NET or Microsoft Office FrontPage.
Business Portal makes the following entry to the Web.config file:
<remove name="EnterpriseInitializationModule">
</remove>
Note The Web.config file is used by all extended Web sites for Microsoft Windows SharePoint Services. The additional entry may cause conflicts with other .NET applications that are installed on the same computer where Business Portal is installed.

Workaround


To work around this issue, follow these steps:
  1. Make a copy of the Web.config file.

    Note By default, the Web.config file is located in the following folder:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\ISAPI
  2. Remove the following line of code from the copy of the Web.config file:
    <remove name="EnterpriseInitializationModule"> </remove>
  3. Use the edited Web.config file when you want the other application to work correctly. Use the original Web.config file when you want Business Portal to work correctly.