0

I've developed a website in ASP.NET C # in Visual Studio 2013 (no database), for a company. This company wants to replace its current website with the one I've developed. This site is located on the server of a telephone company. How can I replace the old site files with mine, ie, what do I have to do to get my site up and running?

I tried to follow this solution: https://support.microsoft.com/en-us/help/326356/how-to-deploy-an-asp-net-web-application-using-the-copy-project-featur but in step 1 from "Steps to Perform a Copy Project in Visual Studio .NET", the "Copy Project" command is not available.

1 Answers1

0

In visual studio solution, Right click and select publish in the publishing dialog, select publish to local directory and obtain the deployment files. then place it in your IIS (in a new website) and make sure everything is working. once you are comfortable,

  1. backup your existing website's files ( zip would be a easy and fast option)
  2. remove existing files
  3. place your files( published files) with old files.

that's it and for troubleshooting(if any)

  1. set custom error mode to OFF How to set web.config file to show full error message"

  2. carefully read the error and try to understand what the error message. and configure your website accordingly.

Just take the leap of faith...

charith rasanga
  • 124
  • 2
  • 3
  • By local directory you mean "File system" on the Publish method? – miguel carreira Jun 05 '18 at 08:37
  • People often chose to publish to local folder on the same machine as an intermediate location, and THEN manually copy to the final destination. I typically publish directly to a network share on the actual web server. Of course this is a quick and simple way. In more mature project you would have the sources packaged and deployed to intermediate location using CI server, and NOT the publish method from VS (and later moved to the final destination by a CD/release method) – Ekus Apr 01 '19 at 17:38