I want to publish WCF Service Application created in Visual Studio 2010 on IIS Express.
So I'm using Project -> Publish -> Web Deploy:
Service URL: http://localhost
Site/application: wcf
But ran into some miss-understanding:
How can I accomplish the task?
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.
首先,您需要指定正确的服务URL,即http://server/MsDeployAgentService
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.