and get "error ASPCONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."
When I use right click and "Publish ..." menu there is no errors.
alartz
Member
3 Points
6 Posts
How to publish WebApi application from command line?
Jul 31, 2012 11:23 AM|LINK
I tried next command
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler -v / -p testWebApi release\test -u -f -nologo
and get "error ASPCONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."
When I use right click and "Publish ..." menu there is no errors.
raghunandcs
Member
686 Points
163 Posts
Re: How to publish WebApi application from command line?
Aug 03, 2012 10:10 AM|LINK
Hi,
Please refer this Link.
http://stackoverflow.com/questions/7076971/publish-a-web-application-from-the-command-line
http://stackoverflow.com/questions/5683946/visual-studio-2010-how-to-publish-an-asp-net-web-app-to-a-target-folder-with-ms
Hopes Helps You...............................................