locked
Unable to run .Net 4.5 Assemblies in IIS7.5 RRS feed

  • Question

  • I have a 64 bit server running Windows Server 2008 R2. The server has IIS 7.5 which hosts some ASP.Net sites and WCF data services.

    We recently installed .Net 4.5 on the machine in order to host some .Net 4.5 WCF Data Services, but we're unable to run them. We deploy, but attempts to read the configuration file fail because of the entityFramework section in the config file, which it doesn't recognise:

    The configuration section 'entityFramework' cannot be read because it is missing a section declaration.

    Now, there is a section declaration, and the Entity Framework assembly is deployed - but it is version 5, relying on 4.5 framework.

    I've tried re-registering .Net with aspnet_regiis, but it doesn't appear to have any effect.

    Is there anything else I can try to get 4.5 working in IIS on this machine?

    • Moved by Barry Wang Thursday, May 9, 2013 8:03 AM
    Friday, May 3, 2013 12:32 PM

Answers

  • There is a similar thread here, entitled "SQL 2005 Reporting Services, infinite loop after upgrade to .NET 4.5".

    Did you verify the integrity of your .NET 4.5 installation using this tool?

    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

    Run the tool with .NET 4.5 selected, then look at the last few lines of the tool log. If the test app exited with return code = 0, the framework is OK. If not, your installation is corrupt.

    From your description, it appears your .NET 4.5 was OK, so you may find solutions if you post in a topical IIS forum:

    http://forums.iis.net/

    • Proposed as answer by Barry Wang Monday, May 6, 2013 2:36 AM
    • Marked as answer by Just Karl Tuesday, September 24, 2013 2:59 PM
    Friday, May 3, 2013 4:26 PM

All replies

  • There is a similar thread here, entitled "SQL 2005 Reporting Services, infinite loop after upgrade to .NET 4.5".

    Did you verify the integrity of your .NET 4.5 installation using this tool?

    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

    Run the tool with .NET 4.5 selected, then look at the last few lines of the tool log. If the test app exited with return code = 0, the framework is OK. If not, your installation is corrupt.

    From your description, it appears your .NET 4.5 was OK, so you may find solutions if you post in a topical IIS forum:

    http://forums.iis.net/

    • Proposed as answer by Barry Wang Monday, May 6, 2013 2:36 AM
    • Marked as answer by Just Karl Tuesday, September 24, 2013 2:59 PM
    Friday, May 3, 2013 4:26 PM
  • Hi,

    Could you please paste the .NET verification result here?

    I agree with MVP that your issue may not due to .NET Framework.

    Regards,


    Barry Wang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, May 7, 2013 9:15 AM