Articles in this section
Category / Section

How to resolve server error “could not load or assembly...” when publishing an application?

3 mins read

When publishing a web application in a server, a configuration error may arise like the following:

 

Server Error in '/' Application.

Configuration Error

Description: An error occurs during the processing of a configuration file required to service this request. Review the following specific error details and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly Syncfusion.Core, Version=xx.xxxx.x.xx, Culture=neutral, PublicKeyToken=632609b4d040f6b4 or one of its dependencies. The system cannot find the specified file.

 

Figure 1: Error details

Reason

When running a project locally, the dlls are referred from the Global Assembly Cache, (GAC) of the local machine. But, when deploying the project in the server, the GAC is not available and thus the referred dlls could not be loaded.

Solution

You can resolve the assembly reference issue by either one of the following ways:

  1. By setting the Copy To Local property to true for the corresponding assembly.

Figure 2: Setting Copy Local as true in Properties window

  1. Or by manually copying and placing the dlls in the bin folder of the deployed project.
Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please  to leave a comment
Access denied
Access denied