Inherited ASP site - Is it all there?!

Hi all,

The problem: We’ve recently taken over a website for a new client, but it’s in ASP and we’re predominantly PHP-based.

What we need to know is if the code we’ve received is adequate to take over developing and maintaining the website (we’ll worry about the necessary tools and skills next!)

Here’s what the directory structure looks like:

  • In the root of the site there are a bunch or .aspx files, such as product_details.aspx. All of these contain the text “This is a marker file generated by the precompilation tool, and should not be deleted!”.
  • There’s a file PrecompiledApp.config, which contains the following string:
    <precompiledApp version="2" updatable="false"/>
  • web.config has the following, presumable an SQL connection (I’ve changed the details for obvious reasons):
    <connectionStrings> <add name="ConnectionString" connectionString="Data Source=xxx.xxx.xxx.xxx;Initial Catalog=dbname;Persist Security Info=True;User ID=dbuser;Password=dbpassword" providerName="System.Data.SqlClient"/> </connectionStrings>

    There are a few other bits in here such as “<compilation debug=“true” targetFramework=“4.0”>”, but other than that, just declarations of which error files to use etc.
  • Within the bin directory, there’s the following:
    [LIST]
  • A whole bunch of *.compiled files, containing the following sort of information:

    <?xml version="1.0" encoding="utf-8"?> <preserve resultType="3" virtualPath="/Website/default.aspx" hash="fffffff232311130" filehash="1625be60a8c6d9fc" flags="110000" assembly="App_Web_unqsqusw" type="ASP.default_aspx"> <filedeps> <filedep name="/Website/default.aspx" /> <filedep name="/Website/default.aspx.cs" /> <filedep name="/Website/MasterPage.master" /> <filedep name="/Website/MasterPage.master.cs" /> </filedeps> </preserve>
  • Some DLL files
  • Finally, there’s an admin folder, containing a load of ASP files, with “<%@LANGUAGE=“VBSCRIPT”%>” declarations at the top, followed by some logic and then some HTML. There doesn’t seem to be anything else of any relevance in here, other than another web.config containing nothing more that a ‘defaultDocument’ declaration.
    [/LIST]

So, there’s what we’ve got… We don’t seem to have anything resembling any database information (such as an SQL dump file, as we’d expect with MySQL) - only the info in the first web.config file. Obviously for this reason, and there being a load of ‘compiled’ files, I’m guessing we’re still missing a few bits?

Any help / comments would be very much appreciated!

Steve

first of all this website is not ASP website. It is ASP.NEt website. So you are on wrong forum.

Database should be on database server where connection string point to. so if you want to edit database install SQL management studio enter server name with userid and password and then able to edit database

hope that helps

Thanks for the help DmitryS, just installing the SQL manager as we speak… Hopefully we’ll be able to pull the database over from there to it’s new home.

On that note, any chance a moderator could move this post to the right forum?

Thanks a lot! :smiley:

Yup, there’s a chance. :wink:

You have about the worst case setup – they seem to have compiled the entire application, including the .aspx template files, into the /bin folder. What you want to get will typically have:

a) a .sln and .csproj file
b) Each “page” will have 3 files – whatever.aspx; whatever.designer.cs and whatever.cs

I would go back to the client as you don’t have the source code – what you’ve got is a completely precompiled app.

Everyone is correct. This is an ASP.NET website. From the info you have given, this project has been compile already so you will need the actually source code to get started working. Unless you have a decomplier software program that can decompiled the files to see the actually code, classes and methods.
Yes, in the webconfig line that is a ConenctionString that attached the website to the database that usually sits on a separate machine that is an SQL Server and you will need to figure out what version of SQL server that it is and get the proper version of SQL Management Studio to be able to edit your database. I say usually as the database could also reside on the local machine but not likely. You will also need a version of Visual Studio. Microsoft does have free express version of most everything you need. Also from some of the lines looks like it was written in Visual Basic.
Anyway you can post some screenshot of the file directory or some files, we could maybe help some more.

Thanks, DL