Could not load file or assembly 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Asp.net网站部署完成后访问报错:


Server Error in '/' Application.


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 file or assembly 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.


An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.                                       


            Source File: D:\home\site\wwwroot\web.config    Line: 42            


           Assembly Load Trace: The following information can be helpful to determine why the assembly 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.


           WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

                                        


           Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4210.0 



   


最佳答案

原因分析

因为.net framewokr版本不同,导致针对web.config里面节点 system.web >compilation > assemblies > stdole 无法被有效识别。从而导致了报错

有两种方法可以修正此问题:


1、调整服务器.Net Framework 版本和开发环境一直


2、直接从web.config里面,删除节点:<add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> 


desaco T0 被采纳率50%
2020-11-05 14:05
打赏 0 0
页面统计
238 访问
0 帮助
0.00 打赏

hierror 2019 © hierror.com 京ICP备13026190号-1

通知消息
  • 暂无任何消息