How to avoid deploying ASP.NET MVC3 application in

2019-08-22 02:58发布

When I deploy an ASP.NET MVC3 application to an IIS 7.5 on WindowsServer 8RC2 it is only accesible under this url: mydomain.com/mvcsite instead of just mydomain.com

I am using MSDeploy to install the app from deployment package built in visual studio.

On the IIS I have a website configured and inside this an Application named 'mvcsite'.

Do I need Url rewriting to make this work or can some default root path be configured in the IIS 7.5?

2条回答
Evening l夕情丶
2楼-- · 2019-08-22 03:54

In the Advanced settings of the site (right click on the site -> Manage Web Site -> Advanced Settings...), you can change the Physical path to the path where your mvcsite application resides.

查看更多
叛逆
3楼-- · 2019-08-22 04:00

It turned out that I just had to create a website without creating an application beneath.

查看更多
登录 后发表回答