Skip to main content
 首页 » 编程设计

c#之无法加载文件或程序集 'AjaxMin,版本 = 4.97.4951.28478,

2024年01月24日41shangdawei

我正在使用 ASP.net 4.0。从坚果得到经理。我更新了 jQuery 和 Json,这个 dll 附带了它。但是突然它停止响应,并且在成功构建项目后出现此错误错误。

如何修复此错误?

Could not load file or assembly 'AjaxMin, Version=4.97.4951.28478, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies. The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'AjaxMin, Version=4.97.4951.28478, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies. The system cannot find the file specified.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxMin, Version=4.97.4951.28478, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' could not be loaded.

=== Pre-bind state information === LOG: User = PC-DSC1\Administrator LOG: DisplayName = AjaxMin, Version=4.97.4951.28478, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f (Fully-specified) LOG: Appbase = file:///F:/CRM/ LOG: Initial PrivatePath = F:\CRM\bin Calling assembly : AjaxControlToolkit, Version=4.1.7.1213, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e. === LOG: This bind starts in default load context. LOG: Using application configuration file: F:\CRM\web.config LOG: Using host configuration file: LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Post-policy reference: AjaxMin, Version=4.97.4951.28478, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/crm/5f33c2bc/4717f3e7/AjaxMin.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/crm/5f33c2bc/4717f3e7/AjaxMin/AjaxMin.DLL. LOG: Attempting download of new URL file:///F:/CRM/bin/AjaxMin.DLL. LOG: Attempting download of new URL file:///F:/CRM/bin/AjaxMin/AjaxMin.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/crm/5f33c2bc/4717f3e7/AjaxMin.EXE. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/crm/5f33c2bc/4717f3e7/AjaxMin/AjaxMin.EXE. LOG: Attempting download of new URL file:///F:/CRM/bin/AjaxMin.EXE. LOG: Attempting download of new URL file:///F:/CRM/bin/AjaxMin/AjaxMin.EXE.

请您参考如下方法:

将 AjaxMin.dll 从 AjaxControlToolkit.Binary.NET40 放入您的项目 bin 文件夹中。问题就会解决。 -preetam jakhmola