Parser Error: Could not load…

Problem

An error occurred during the parsing of a resource required to service this request, e.g.:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load type 'XXXX’.

This typically means that you do not have your Virtual Directory set up on the server.

Solution

To create a virtual directory in your web server, use the Internet Services manager.  Within the Internet Services Manager console, right click on Default Web Site and select the New, Virtual Directory option.  This will open the Virtual Directory Creation Wizard and you can follow the steps to create a virtual directory.  Point the virtual directory to the folder where you have your application deployed on the server.

Other reasons why you might get this error include:

  1. Your application’s Bin folder is missing or the application’s DLL file is missing.

  2. You may have deployed to the Webroot, but have not changed some of the settings in the Web.config file.

To deploy your application to Webroot, follow the instructions in Deploying to Webroot.

See Also

Part VII:  Troubleshooting Applications

Application Won’t Run

Application Runs But No Data is Displayed

Application Error Messages