Last post Dec 11, 2008 08:16 AM by devcalpoly
Dec 10, 2008 11:20 AM|Yitbarek|LINK
I need very urgent help
I am going to fix some thing on an ASP.Net web site, for some reason the company doesn't have the running source code. I tried to copy the website from the web server and opened in a VS2005, but couldn't run, it displayes the 'File Not Found error page.
Is there any thing I can do configuration to make it work the copy of the web site from the web server?
Appreciate your support
Dec 10, 2008 01:02 PM|sambeetpatra|LINK
The website may not be enough to open the project in VS 2005. If you do not have code behinds etc you will not be able to open the project as it will need to reference the code files [which are not necessarily needed for the website]. Can you elaborate on
the error? Which is is not found?
Dec 10, 2008 02:52 PM|Yitbarek|LINK
thanks for the prompt reply,
here is the situation, I was given an assignment to debug and fix some issue to my client, the web site is developed in ASP.Net, but the vendor didn't give them a working developer version of the source code and no any design docuemntation.
I was trying to pool all the files from the live- running webserver in to my local folder and try to create a working - ASP.Net web project so that I can debug and fix issues, infact it seems all the code behind files are included in the webserver, but
I am getting 100s of error message when trying to build the website.
Is that not possible to pool all the files from a webserver and create a project?
Is there any aditional step to open a website in VS2005 and run the application?
Dec 10, 2008 09:20 PM|scngan|LINK
you can try reverse engineer...but not 100% can reverse...the best way is to ask your vendor give you the source...else you will have your hard time solving it.
Dec 11, 2008 08:16 AM|devcalpoly|LINK
I would copy all files from the webserver (aspx, master, ascx, asmx,DLLs,cs/vb,web.config files). Create a new project in Visual Studio targeting the same version .NET Framework that the site was built on. Manually add all the files (drag and drop), referece
all DLLs in the bin directory, and modify web.config. You should be able to run the project wo/ any issue. If you need to see the code for DLLs you can use tool like
.NET Reflector to decompile the DLLs. Please try to post any code errors, if possible.