Getting "Could not load type mscorlib, Version=4.0.0.0" error

Discussion in 'ASP.NET 4.5 Beta [Closed]' started by labRat, Aug 5, 2012.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,

    I'm getting an error on my first 4.5 web app attempt.
    Locally the app works fine (W2k8R2 + .NET4.5 and VS2012 express )
    Used web deploy to move the app.

    You can experience the error here:

    http://user1598.netfx45lab.discountasp.net/

    The error is
    Could not load type 'System.Runtime.CompilerServices.AsyncStateMachineAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture

    The version has me a bit confused, I'm not sure what its trying to load version 4 of mscrolib.

    Any ideas would be appreciated.

    Thanks,
    labRat
     
  2. I'm guessing the issue is .NET 4.5 beta vs 4.5 RC. But if you have any other ideas, please let me know
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    I think the version of asp.net 4.5 installed is different on the server.

    ASP.NET 4.5 will be released very soon; it is unlikely that we'll refresh the beta box.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page