程序集使我的 asp.net 4.0 崩溃 [英] assembly crashing my asp.net 4.0

查看:21
本文介绍了程序集使我的 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 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆