Publish WCF Service app on IIS Express using Web Deployment

て烟熏妆下的殇ゞ 提交于 2019-11-30 16:40:37

You can add a virtual directory via a command line using appcmd:

appcmd add vdir /app.name:<site_name>/ /path:/<virtual_directory> /physicalPath:<physical_location> 

See here

You should be able to specify the destination of your web site/application in site properties -> Package/Publish Web. In the field "IIS Web Site/application name to use on the destination server" put the site name. There, by default, the application is specified as a virtual directory but it does not have to be. You can just put the name of your site there, without the "/" and then it will deploy to the root of the site, not a virtual (sub-)directory. See screenshot:

IIS Express does support virtual directories. Using appcmd command provided by 'Eugene' should work.

Fist of all, you need to specify the correct Service URL, i.e. http://server/MsDeployAgentService

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!