Reputation: 333
According to this article: https://fullstackmark.com/post/3/websockets-with-aspnet-core-and-xamarin-forms
I created a ASP.NET Core project and now i want a web service that run this project so i can accees to this site by this url: http://localhost:51276/
What i have now? I can access to this url and see the site only if i clicked with right button on this file: Views/Home/Index.cshtml and click on 'View in browser'
But if i close my visual studio and try to enter this address directly in the browser - NOT WORKING!
I need this run on webservice because it is a chat api (sockets).
THANK YOU!
Upvotes: 0
Views: 859
Reputation: 739
Go through this link for hosting asp.net core application in IIS click here
You can always host your application in IIS express in localhost for development purpose. Open cmd and navigate to
cd C:\programfiles\iisexpress
then run
iisexperss.exe /path:"path to your published folder" /port:51276
Check the accepted parameters of iisexpress.exe in the help to pass, port no and additional information for hosting the site
Upvotes: 1