assembly crashing my asp.net 4.0(程序集使我的 asp.net 4.0 崩溃)
问题描述
我收到此错误无法从程序集 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 加载类型 'System.Runtime.CompilerServices.ExtensionAttribute'."
每当我将quartz.net 的dll 包含在我网站的bin 目录中并在代码中引用它时.我确信这与错误的 .net 框架有关.
whenever i include quartz.net's dlls in my web site's bin directory and reference it in code. I am sure it has to do with the wrong .net framework.
我的 asp.net 网站正在使用目标框架 4.0我正在使用 .net 4quartz.net 文件
my asp.net site is using target framework 4.0 i am using the .net 4 quartz.net files
我的 IIS 应用程序池(经典 .net 池)设置为运行 .net 4.0 frework.
and my IIS app pool (classic .net pool) is set to run .net 4.0 frework.
我不知道从哪里开始,但我确定的是移除 Quartz,我看起来又好了(减去调度)
I am not sure where to start but what I know for sure is remove Quartz and I am looking good again (minus the scheduling)
推荐答案
这是在最终版本中引入的一个问题,因为 Quartz.Net 是针对 4.5 框架编译的.看看 这个线程 报告问题的位置.已提供固定版本的 dll.
This was a problem introduced in the final version because Quartz.Net was compiled against the 4.5 framework. Take a look at this thread where the issue was reported. A fixed version of the dll is available.
这篇关于程序集使我的 asp.net 4.0 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:程序集使我的 asp.net 4.0 崩溃


基础教程推荐
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01