开发者

Can't find the 'open in browser' option when r-clicking on default.aspx

开发者 https://www.devze.com 2022-12-19 02:13 出处:网络
Something strange is going on for me. I can open the web application on my desktop computer just fine, where it opens the a开发者_Go百科sp.net MVC application with a URL like http://localhost:5118/ w

Something strange is going on for me.

I can open the web application on my desktop computer just fine, where it opens the a开发者_Go百科sp.net MVC application with a URL like http://localhost:5118/ when I rigth click on the default.aspx file and choose 'open in browser'.

On my laptop, I don't have that option when I right click on default.aspx for some reason (it should give me the option to Open in Browser). I set the project as a web application, but it still doesn't work.

This is a vs.net MVC application.

I want to open the application without having to setup a IIS site for it.


You don't have what option on your laptop? Can you be a bit more clear?

Also, make sure your hosts file has: 127.0.0.1 localhost

-- this is advice from another site --

Can you see it under the File option while current page is aspx page? Shortcut key of "View in Browser" is Ctrl+Shift+W.

You can try to run "devenv /resetsettings" from Visual Studio command to reset settings.

You also can try to run "devenv /resetuserdata" to reset Visual Studio to its out-of-box state.

0

精彩评论

暂无评论...
验证码 换一张
取 消