Restoring an older C# project into newer versions of Visual studio

Viewed 161

I am trying to get this old C# client server based live chat application running in SQL Server 2017 Management Studio, and SQL Server 2008 (it's the only version the backup would restore in), but I am getting some errors.

I googled them and tried solving them myself but the solutions offered don't seem to be working, these are the ones from stackoverflow but for me they didn't work.

Here is what I've done so far:

The project is made in 2005-2008 something so I installed SQL Server 2008 and restored the database from the backup successfully. I created the new database as said in the thingstofollow.txt (readme.txt) and created a new one later.

The problem is in SQL Server Management Studio; there is no option to enter login ID on startup like it says in instruction, if I enter sysname (actual sysname- not sysname literally) / localhost it fails to connect so I just connected with SQL Server Express something that is in drop down, then created a new database giving it custome name and restored the .bak file in it like it says.

Then I opened Visual Studio and opened the code folder and edited the details in web.congfig file as said, SQL Server 2008 did as for a password at time of installation so I entered 12345 (same as I gave then) but I noticed that it has user id=sa, when I never entered id at the time of whole restoring part as said in above, so the errors I am getting are:

Severity Code Description Project File Line
Error the file '/Admin/Update/MasterPage.master' does not exist.
D:\cl-se-bas\4\Code-LiveMeeting\Code-LiveMeeting\Admin\Update\frmUpdateCountry.aspx 1

and

Severity Code Description Project File Line
Error CS0246 The type or namespace name 'Country' could not be found (are you missing a using directive or an assembly reference?) Code-LiveMeeting D:\cl-se-bas\4\Code-LiveMeeting\Code-LiveMeeting\Admin\Update\frmUpdateCountry.aspx.cs 14

and

Severity Code Description Project File Line
Error CS0246 The type or namespace name 'IncomeBL' could not be found (are you missing a using directive or an assembly reference?) Code-LiveMeeting D:\cl-se-bas\4\Code-LiveMeeting\Code-LiveMeeting\Admin\Update\frmUpdateIncome.aspx.cs 14

And there are some warnings about:

Validation(HTML5) align not being valid attribute of HTML5

Solutions I tried:

I looked online and someone said change ~ to a . in ./Admin/masterasdpageetc.. to resolve it but it only gives me a code/somethingsomethkg/Admin doesn't exist error instead

Then there is changing build type under properties to .NET 4.0 to .NET 4.5 etc since due to that one project can't look into other's classes and namespaces but I only have one project,

Ok so changing the build type to 2.0 fixed the HTML5 error (as expected) but the rest are still there

Severity Code Description Project File Line
Warning File '~/Admin/Update/MasterPage.master' was not found. Code-LiveMeeting D:\cl-se-bas\4\Code-LiveMeeting\Code-LiveMeeting\Admin\Update\frmUpdateIncome.aspx 1

and

Severity Code Description Project File Line
Warning Could not find 'ContentPlaceHolder1' in the current master page or pages. Code-LiveMeeting D:\cl-se-bas\4\Code-LiveMeeting\Code-LiveMeeting\Admin\Update\frmUpdateIncome.aspx 2

MS discontinued all earlier versions of visual studio earlier to 2010.

Screenshot of whole instruction file:

http://imgur.com/a/5Mo17

Edit: I updated the images, the MasterPage.master file does exist as it is in solution explorer.

0 Answers
Related