I am trying Core + angular v4.1.3. There is a new project Web.Public. I set it as Startup Project and run. It opens a public website on localhost:45776. Looks good. When I click the Login on this website, it redirects to localhost:4200/account/login?ss=true&returnUrl=http://localhost:45776/Account/Login, and pops up an error: "An errorhas occurred! Error detail not sent by server." :(
I tried to change the "remoteServiceBaseUrl": "http://localhost:45776" on angularUI/src/assets/appconfig.json, yarn and npm start again, and direct open localhost:4200. It always pops up the same error. What did I miss? :?:
If I set *.Web.Host as Startup Project, and run AngularUI at localhost:4200, it works fine, just like v4.0 before.
The document seems not updated. I couldn't find any topic about Web.Public from the document.
Please advise!
Thanks,
5 Answer(s)
-
0
Hi,
Before run public site, you should run mvc first to seed data.
-
0
I am trying Core + angular v4.1. The Web.Public is new on this version. Not sure how to "run mvc to seed data". Can you tell me more details?
Thanks,
-
0
Hi @fguo,
You must run both Web.Host and Web.Public projects at the same time. In order to do that, you can right click on your solution, click properties. Then in opened window, go to "Startup Project" and select multiple startup projects. Under the list, set Action to Start for Host and Public projects.
Thanks.
-
0
Understand now and tried this way. It works as expected!
Thank you very much!
-
0
Great @fguo :)