小编Gui*_*ion的帖子

在模仿时无法加载文件或程序集"app_code"或其中一个依赖项

我用VS2010建立了一个网站,并在IIS7上发布.它运行正常,但它无法连接到OLAP服务器,所以我不得不设置模拟.我的开发机器上的模拟调试运行正常,但是当我在服务器上发布时,我收到此错误*:

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'App_Code' or one of its dependencies. 
An API call exited abnormally. (Exception from HRESULT: 0x800300FA (STG_E_ABNORMALAPIEXIT))
Run Code Online (Sandbox Code Playgroud)

当我在web.config中评论模拟行时,问题就消失了.

任何人都知道可能导致这种情况的原因是什么?

提前谢谢,纪尧姆

*这是法语中实际消息的翻译:

Server Error in '/' Application.
Impossible de charger le fichier ou l'assembly 'App_Code' ou une de ses dépendances. Un appel API a été interrompu anormalement. (Exception de HRESULT : 0x800300FA (STG_E_ABNORMALAPIEXIT))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for …
Run Code Online (Sandbox Code Playgroud)

asp.net impersonation iis-7

4
推荐指数
1
解决办法
2万
查看次数

MissingMethodException:升级 EF6 后无效 System.Data.Entity.Infrastruct.LocalDbConnectionFactory..ctor()

我将 EF6 从 6.2.0 升级到 6.3.0,现在我在服务器上(而不是在 Visual Studio 中)收到此错误:

\n\n
\n

M\xc3\xa9thode 麻烦:'Void System.Data.Entity.Infrastruct.LocalDbConnectionFactory..ctor()'。\n 描述:非 g\xc3\xa9r\xc3\xa9e 的异常是 'est produite au moment de l' ex\xc3\xa9cution de la requ\xc3\xaate Web 实际操作。Contr\xc3\xb4lez 跟踪一堆错误信息以及代码中的信息。

\n\n

D\xc3\xa9tails de l'异常:System.MissingMethodException:M\xc3\xa9thode introuvable:'Void System.Data.Entity.Infrastruct.LocalDbConnectionFactory..ctor()'。

\n
\n\n

我什至尝试发布旧版本的网站(使用 EF 6.2.0),但仍然遇到相同的错误。

\n\n

服务器是带有asp.net框架4.8的Windows Server 2012。该网站是使用 WebForms 制作的。\n我尝试重新启动 IIS 和服务器本身,但没有成功。

\n

asp.net entity-framework upgrade

4
推荐指数
1
解决办法
2955
查看次数