Hello,
After migrating our web application from VS 2010 to VS 2013 we encountered an error when opening asp.net web form page with master page in design view. In design view following error message is displayed: "The master page '~/TestMaster.master' cannot be loaded.". The application root contains TestMaster.master file.
We have discovered that the error is related to the changed Output path for the web application (Project properties -> Build -> Output path). It looks like the application's root is determined by the relative location of the OutputPath instead of relative location of the web.config.
Similar error occur when running "View in browser" action. Invalid url is send to the browser.
Sample - Output path for WebProject is set to MyBinFolder
HomeFolder
MyBinFolder
WebProjectFolder
web.config
Default.aspx
TestMaster.master
View in browser action generates following url: http://localhost:12345/WebProjectFolder/Default.aspx. In VS 2010 following url was generated: http://localhost:12345:Default.aspx
Is there any workarround for a proper url creation in VS 2013 after changing the Output path.