Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running ASP.NET Web Api 2 application without Visual Studio

I'm developing a asp web api 2 webservice for a private project. I created a webservice-project which includes all the folder (App_Data,App_Start,Controllers,...) and all my classes/functionallity.

Now I would like to run it as a selfhosted windows service or from command line to test all the functionallity without running Visual Studio.

All I found was a tutorial how to create a new command-line programm and create a new webservice (http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api) .... But how can I just selfhost my created webservice-project and use its WebApiConfig??

UPDATE 1

at least I found out how to start the IISExpress from CommandLine to test my webservice without VisualStudio: I had to run this:

C:\Program Files\IIS Express\iisexpress.exe /config:"C:\Users\Tobias\Documents\IISExpress\config\applicationhost.config" /site:MyWebservicename
like image 458
Tobias Koller Avatar asked Feb 18 '26 09:02

Tobias Koller


1 Answers

You can try that

C:\Program Files\IIS Express\iisexpress.exe /config:"C:\Users\Tobias\Documents\IISExpress\config\applicationhost.config" /site:MyWebservicename
like image 195
Ali A. Jalil Avatar answered Feb 20 '26 00:02

Ali A. Jalil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!