Running website through Visual Studio – Page Not Found error

The other day I copied a working website solution onto a different machine and attempted to compile and run it in debug mode. It compiled fine and started to run, the browser attempted to load the page up in debug mode running of a port (as is normal), but then I got a Page Not Found error. Despite all my attempts I couldn’t work out why this was so. I finally noticed that the port that the compile was building to was 1350 but for some unknown reason the port it was trying to access when browsing/running in debug mode was 1349. My initial solution is to simply type in 1350 into the url and it worked! All that was left to do is pick a free port like 11000 and assign it to the port number under the website properties dialogue in the Web Tab, and that solved my problem.

Happy developing,

Robert Bertora

Tags: ,

Comments are closed.