Last post Mar 15, 2016 07:05 PM by PatriceSc
Mar 11, 2016 01:47 PM|argandhi05|LINK
I am trying to create a new Web API project, but it returns an error regarding "IIS Express" not found.
(Same issue in Visual Studio 2015 ans Visual Studio 2013)
Due to some constraints with my other projects, I can install IIS Express on my machine.
Is there a way to enable Web API project creation without having to install IIS Express ?
Or it is mandatory to install IIS Express ?
Thanks in advance,
Mar 11, 2016 02:11 PM|mgebhard|LINK
Can you use the local IIS server?
Is is possible to self host Web API.
Mar 13, 2016 01:59 PM|rjcalifornia|LINK
Mar 14, 2016 02:56 AM|Yohann Lu|LINK
Web API is not mandatory to install IIS Express. As mgebhard and rjcalifornia said, you can host Web API services without IIS.
The different ways of hosting ASP.NET Web API for your reference:
Also, As far as I know, if you configure IIS some errors, there will be related errors. I suggest you can try the following steps.
1.Close all Visual Studio solutions.
2.Rename IISExpress folder to some IISExpress-Copy (instead of deleting you can have a copy of it)
3.Open VS again and build/debug the project, now you would see IISExpress folder created for you again with correct configuration.
Mar 14, 2016 09:18 AM|argandhi05|LINK
Thanks for your replies. I need to re-frame my question. I wish to host my Web API in IIS. But I do not want to install IIS Express. Now, because of this, when I try to create a new Web API project, VS2015 throws an error "IIS Express is not installed".
Hosting is not at all my issue. The issue is creating the Web API project in the first place. Why does VS check whether IIS Express is there or not ?
Mar 14, 2016 12:24 PM|mgebhard|LINK
Why does VS check whether IIS Express is there or not ?
The web tab in project settings (right click the project file -> properties -> Web) allows you to set the host server.
Mar 15, 2016 06:23 AM|Yohann Lu|LINK
I think you want to know some think about Visual Studio, I suggest you can visit the Visual Studio forum. In there, you can get more information about this.
Visual Studio and Visual Web Developer Express:
Mar 15, 2016 07:05 PM|PatriceSc|LINK
And which server do you want to use ? IIS, something else or are you just not allowed to use any web server even though you'll deploy to IIS ? IIS Express is precisely intended for that and note that by default it won't serve requests not coming from localhost
(it doesn't even run if not launched for your dev needs) and so IIS Express is the standard web server for web developers...
Else you should be able to self host at dev time and to host within IIS at deployment...