开发者

Is it possible to test Asp.net MVC (being developed using Visual Studio) on Local IIS Web server as the root application of a website ...?

开发者 https://www.devze.com 2023-01-30 05:42 出处:网络
I want to test my asp.net MVC project (being developed using Visual Studio) on Local IIS Web server as the root application of a destinated website 开发者_JS百科rather than as a nested/child applicati

I want to test my asp.net MVC project (being developed using Visual Studio) on Local IIS Web server as the root application of a destinated website 开发者_JS百科rather than as a nested/child application under the root application.

Note: Normally Visual Studio forces us to create Virtual Directory under the website if we test the project on Local IIS Web server.

Edit 1: Don't suggest me to publish it to the root application please because it is a bit tedious. I am sorry, I am lazy.


You don't have to create a virtual directory. Create a separate site in IIS (may be with a different port, for ex: 8080) and point that site to your local project web folder.

Now in visual studio set project url to http://localhost:8080, and you are good to test the site at the root.

0

精彩评论

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