web.config errors with .net 3.5

Discussion in 'ASP.NET / ASP.NET Core' started by kpi-manager, May 21, 2008.

  1. I'm new to DiscountASP and have hit the following error on my first attempt to get a web site up and running.

    I'm using VS2008 and have previously built apps using .NET 3.5 on the Dev Server and also deployed to an IIS6.

    I've just knocked together adefault.aspx web page andfollowed the KB article http://kb.discountasp.net/article.aspx?id=10364

    I've uploaded the files but when I try toopen the page Ikeep getting errorsfrom the web.config file.

    Parser Error Message: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

    this is the line iin the file.
    <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

    I've removed all references to 3.5 from theweb.config file and also had tochange the default.aspx.cs pageto remove references tosystem.web.linq (obviously as its no longer referencing the 3.5 assemblies) and now the page loads.

    Is there something specific I need to do in order to get access to .NET 3.5 features - its why I joined in the first place!
     
  2. Hmmm,that's odd. Create a support ticket so admins can check that .NET 3.5 is properly installed on the server.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page