I downloaded and installed the RTM of VS 2015, got my Web API project working nicely, can hit F5 all works in IIS Express, lovely. But now I go to deploy my WebAPI on a local network server and oh my! I was hoping to find the publish to File System option and then to be allowed to select IIS but it ain't there. Publish to file system is there but that compiles wwwroot and approot folders and for the life of me I haven't been able to get them's files to run under IIS - tried all sorts, ege approot as my website root on IIS, wwwroot as my website root. I've found plenty of reference to show you how to deploy Web API ASP 5 to Azure but have as yet been unable to locate any information for how to deploy to IIS on network.
1 Answer
Just got it to work, for the sour down voter here's how
- Right click WebAPi project select Publish
- Profile -> Select File System
- Connection Target Location browse to somewhere that makes sense eg. C:\inetpub\WebAPI
- Settings ->Configuration select Release Settings Target DNX Version select x64 example dnx-clr-win-x64.1.0.0.beta4
- In IIS set the Physical Path of your website to be C:\Inetpub\WebAPI\wwwroot Test eg localhost/api/Values