-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AspNet precompile error for WebActivator.1.5.2 #5
Comments
Looks like the same as http://stackoverflow.com/questions/13748055/could-not-load-type-system-runtime-compilerservices-extensionattribute-from-as, which sounds like a pretty subtle issue. Do you have .NET 4.5 framework installed, or are you still running 4.0? |
I'm on 4.0. |
This is a real issue when you are building with a machine that has .NET 4.5 installed and deploying to a Windows 2003 server. Windows 2003 servers do not support .NET 4.5, in fact it won't even let you try to install .NET 4.5 on a Windows 2003 server. |
I understand this is a problem. What I'm less clear on is whether WebActivator is doing anything it should do differently here, or whether the issue is in the ASP.NET precompilation process. |
I had the same problem today with quartznet this could explain? |
I read all that, but I still don't see how WebActivator itself could be doing something wrong here. It doesn't itself use ILMerge in any way. Are you calling ILMerge as part of your build? Or maybe indirectly via aspnet_merge? |
OK WebActivator is not the problem, Quartznet was. Today when I updated nuget packages: WebActivator was updated from 1.5.2 to 1.5.3 I use webactivator to start the a quartz static class scheduler in my asp.net web site by using so the exception has been fired immediatly as I placed the Quartznet dll in the bin folder I roll-back Quartznet to 2.0.1 and now all is running with WebActivator 1.5.3 maybe vicneanschi had a similar issue. |
@damianog can you give more details about how you are publishing from your 4.5 machine to your 4.0 machine? Are you using ILMerge or aspnet_merge in that process? |
The case where I happened to get the exception is in an old webform site updated to ASP.net 4.0 Cause the update of the dlls by nuget update-package, after test that all run perfectly in my developing machine, (a Win7 with dotnet 4.5 installed, what I do was to sync my bin folder with the server destination and the newest Quartznet library started to hang the web server online compilation. |
Hello!
I have a project on .NET 4.0 which uses combres which requires WebActivator.
I've updated WebActivator from 1.4.4 to 1.5.2 and started to get error on AspNet precompile:
error ASPRUNTIME : The pre-application start initialization method Run on type WebActivator.ActivationManager threw an exception with the following error message: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.. [D:\Work\src\trunk\EF\WM.EF.msbuild.xml]
The text was updated successfully, but these errors were encountered: