Hi,
We have recently downloaded the ASP.NET Zero source (ASP.NET CORE & Angular) as separate solutions.
We can run the Api (Web.Host) without issue via our IDE (Visual Studio) but when we follow the steps to publish to IIS (https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Deployment-Angular-Publish-IIS) we are getting a HTTP Error 404 when we browse to the Api URL (e.g. http://localhost:[port]).
We can manually amend the Api URL (e.g. http://localhost:[port]/swagger/index.html) and see the Api endpoints but we are not prompted to login/authenticate.
Do you have any suggestions on what we are missing/doing wrong? Let us know if you need any screenshots, etc.
Thanks in advance.
Laurie
Hi,
We have recently downloaded the ASP.NET Zero source (ASP.NET CORE & Angular) as separate solutions.
We can run the Api (Web.Host) without issue via our IDE (Visual Studio) but when we follow the steps to publish to IIS (https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Deployment-Angular-Publish-IIS) we are getting a HTTP Error 404 when we browse to the Api URL (e.g. http://localhost:[port]).
We can manually amend the Api URL (e.g. http://localhost:[port]/swagger/index.html) and see the Api endpoints but we are not prompted to login/authenticate.
Do you have any suggestions on what we are missing/doing wrong? Let us know if you need any screenshots, etc.
Thanks in advance.
Laurie
hi,
There is not log in the application log, that is why i can't figure it out what is going on. When i open http://localhost:8080, i got a 404 error. Not sure what login page you are refering to? Laurie
if I changed the redirect in the HomeController, then i can get the login page
public IActionResult Index() { if (_webHostEnvironment.IsDevelopment()) { return RedirectToAction("Index", "Ui"); }
//return Redirect("/index.html"); // this line has issue
return RedirectToAction("Index", "Ui");
}
Hi, I can't access the above link. It gave me 404 Laurie
still no luck, 404 error
I can.
Ok, no problem, thanks for explaining.
Hi Why i cant access to any of you github samples, eg. https://github.com/aspnetzero/aspnet-zero-samples
I always got the 404 error
thanks Laurie
Thanks for getting back, still the same error 404