Trying to edit existing website, new routes don't seem to work?

Gino Kok 1 Reputation point


I'm trying to edit an existing website.
I opened the website files with ftp website.

Any changes i do in cshtml files are visible when i save the file.
I've tried to add a route to one of the existing controllers.
But the route is not available after saving the file.

I'm very new to so i'm not sure if there are steps to be done to load the new route?

any help would be greatly appreciated.

A set of technologies in the .NET Framework for building web applications and XML web services.
3,251 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,066 Reputation points

    Hi @Gino Kok ,
    About how to deploy your website using FTP,you could check these steps:

    1. Open the project in Visual Studio 2013. Click Build > Publish. That will bring up the "Publish Web" dialog box.
    2. Change the "Publish Method" to FTP. Server: Enter your FTP URL. Example:
    4. In the Site Path field, enter the
    5. subdirectory you wish to publish the application to (for example: /Subdirectory).
    6. If you want to publish to the root directory. Leave the Site path empty.
    7. In username field, enter the FTP user name found in Control Panel.
    8. In the password field, enter the FTP password.
    9. Click "Next" to determine the web.configuration you will publish.
    10. Click "Publish."

    Note: That's not everyone supports it, which is generally required for .net 4.6.
    Best regards,
    Yijing Sun

    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.