can a webpage created in microsoft visual studio 2008 run in 2005 version?

Discussion in 'C#' started by swatistarster, Jul 31, 2012.

  1. #1
    when i try to debug my code in visual studio 2005.It shows this error message:
    [h=1]Server Error in '/ongcweb' Application.[HR][/HR][/h][h=2]Configuration Error[/h][FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Child nodes not allowed.

    Source Error:

    [TABLE="width: 100%"]
    [TR]
    [TD]
    Line 89: <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"Line 90: type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">Line 91: <providerOption name="CompilerVersion" value="v3.5"/>Line 92: <providerOption name="WarnAsError" value="false"/>Line 93: </compiler>[/TD]
    [/TR]
    [/TABLE]

    Source File: C:\Users\ACER123\Desktop\ongcweb\web.config Line: 91

    [HR][/HR]Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.312 [/FONT]
     
    swatistarster, Jul 31, 2012 IP
  2. DaveInFL

    DaveInFL Peon

    Messages:
    125
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's best to create a new web site/application then copy your code over. However you can change the the web.config and will need to because the .net framework 2.0 is different than more modern versions of the .net framework.
    If you set your project target to a lower framework visual studio should change your web.config accordingly and you will not get those errors. Other issues can be the project/solution files having a version number greater than your projects version and it will not load correctly. If those versions are manually modified it should load correctly.
     
    DaveInFL, Jul 31, 2012 IP
  3. veganin

    veganin Greenhorn

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Google for converter from one to the other. You should be able to find it no prob
     
    veganin, Aug 14, 2012 IP
  4. agitetech

    agitetech Peon

    Messages:
    122
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes,you can load it by changing the version in Web.Config file.
     
    agitetech, Dec 26, 2012 IP