How to resolve server error when publishing an application in ASP.NET MVC Grid?
You can refer to our Asp.Net MVC Grid feature tour page 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:
- By setting the Copy To Local property to true for the corresponding assembly.
Figure 2: Setting Copy Local as true in Properties window
- Or by manually copying and placing the dlls in the bin folder of the deployed project.
Conclusion
I hope you enjoyed learning about how to resolve server error when publishing an application in ASP.NET MVC Grid.
You can refer to our Asp.Net MVC Grid feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Asp.Net MVC Grid example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!