We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

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

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.
Article ID: Published Date: Last Revised Date: Platform: Control:
4808 05/08/2015 08/06/2015 ASP.NET MVC Grid
Did you find this information helpful?
Comments
ira Sep 27, 2016

Still no help. I copied all of the Syncfusion.DLLs to the BIN folder of the project and have the same error.


I didn't get a file not found error. I got "  An attempt was made to load a program with an incorrect format."

Reply
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.