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

Gino Kok 1 Reputation point
2022-01-26T18:43:47.68+00:00

Hi,

I'm trying to edit an existing asp.net 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 asp.net so i'm not sure if there are steps to be done to load the new route?

any help would be greatly appreciated.

ASP.NET
ASP.NET
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
    2022-01-27T02:13:21.337+00:00

    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:
    3. ftp.YourHostedDomain.com
    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.