Last post Oct 17, 2018 09:19 PM by MattLong
Oct 09, 2018 08:01 PM|MattLong|LINK
I have a old website that was written in C#/2.0.50727 ASP .NET that was setup back in Dec/2009.
The code hasn't changed since it was installed on Windows 2003 R2.
We can't find the solution/project work file to debug the site in VS.
Any idea how I can setup this code/site in Visual Studio 2010 from scratch?
Oct 09, 2018 08:28 PM|ryanbesko|LINK
Can you do File -> Open -> Website while no other solutions are open?
Oct 10, 2018 05:25 AM|Zhi Lv - MSFT|LINK
How to add a old ASP 2.0 site into Visual Studio 2010 with no solution or work file
You could try to create a new project and use the "Add Existing Item" option to add an existing ASP.NET Web Forms page to a Web site project.
Please refer to the following steps:
1. In Solution Explorer, right-click the project name, and then click Add Existing Item.
2. In the Add Existing Item dialog box, navigate to the directory containing the Web page that you want to add, select the page, and then click Open.
More details, please check this article: How to: Add ASP.NET Web Forms Page to a Web Project
After adding an existing page to a Web site project, you might have to change the namespace.
Oct 10, 2018 09:55 AM|MattLong|LINK
Yes, I can do a File -> Open -> Website
Oct 17, 2018 09:19 PM|MattLong|LINK
I was able to create a new project using File->Open, and VS was able to locate all the assemblies automatically that were originally part of the website. Some of the assemblies were moved to other servers that didn't exist any more, but I was able resolve those
issues, by finding another server with the missing .dlls