locked
problem moving from VS2010 to VS2008 RRS feed

  • Question

  • User-1556678718 posted

    Hello,

    I have web application developed in VS2010. Now I need to make some changes but in VS2008 (why?to long reason to explain about some old drivers, has to be like this). I created new web page, and when I try to copy and paste the default.aspx and default.aspx.cs, when I build, I'm gerring following error:

    Error 7 Could not load type '_Default'.

     

    Please help

    Monday, July 15, 2013 2:58 AM

Answers

  • User-1556678718 posted

    I found the solution:

    for VS2010 it is

    CodeBehind="Default.aspx.cs"

    for VS2008 should be

    CodeFile="Default.aspx.cs"

    Also namespace should be removed

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 15, 2013 4:08 AM

All replies

  • User1964968789 posted

    open one note pad trag that solution file and change the version 2008 to 2010

    Monday, July 15, 2013 3:23 AM
  • User1964968789 posted


    Microsoft Visual Studio Solution File, Format Version 12.00
    # Visual Studio 2012
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rc4All", "RC4all\Rc4All.csproj", "{7B962300-41A2-4719-AF40-B91542712C4A}"
    EndProject
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DBHandler", "DBHandler\DBHandler.csproj", "{744E1E7F-04EF-4E87-8366-F447C275D790}"
    EndProject
    Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
    Debug|Any CPU = Debug|Any CPU
    Release|Any CPU = Release|Any CPU
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
    {7B962300-41A2-4719-AF40-B91542712C4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    {7B962300-41A2-4719-AF40-B91542712C4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
    {7B962300-41A2-4719-AF40-B91542712C4A}.Release|Any CPU.ActiveCfg = Release|Any CPU
    {7B962300-41A2-4719-AF40-B91542712C4A}.Release|Any CPU.Build.0 = Release|Any CPU
    {744E1E7F-04EF-4E87-8366-F447C275D790}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    {744E1E7F-04EF-4E87-8366-F447C275D790}.Debug|Any CPU.Build.0 = Debug|Any CPU
    {744E1E7F-04EF-4E87-8366-F447C275D790}.Release|Any CPU.ActiveCfg = Release|Any CPU
    {744E1E7F-04EF-4E87-8366-F447C275D790}.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
    HideSolutionNode = FALSE
    EndGlobalSection
    EndGlobal

    Monday, July 15, 2013 3:25 AM
  • User-1556678718 posted

    Maybe I was not clear, I need to Downgrade the version of visual studio. The present version is VS2010 and I need it to be downgrades to VS2008. Changing the sln file causes just the project to crash. On the destination pc I have only VS2008, not vs2010

    Monday, July 15, 2013 3:43 AM
  • User-1556678718 posted

    I found the solution:

    for VS2010 it is

    CodeBehind="Default.aspx.cs"

    for VS2008 should be

    CodeFile="Default.aspx.cs"

    Also namespace should be removed

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 15, 2013 4:08 AM