I added a new language and it is enabled. When I select it from the drop-down, it is not chosen for the application, it goes back to Default language. If I choose a language that comes standard (such as German), it works fine. Is this because I need to do all the translations for the new language before it will work? Or are there other steps involved?
Are we supposed to change ports when moving to IIS? I have moved the below to IIS (no domain name yet, just testing on the server with localhost), would that work?
Does all the ports used below need to be added in IIS bindings?
src/assets/appconfig.json: "remoteServiceBaseUrl": "http://localhost:22742", "appBaseUrl": "http://localhost:4200", "localeMappings": [
..Web.Host/appsettings.json: "ServerRootAddress": "http://localhost:22742/", "ClientRootAddress": "http://localhost:4200/", "CorsOrigins": "http://localhost:4200,http://localhost:49152"
..Web.Public/appsettings.json: "WebSiteRootAddress": "http://localhost:45776/", "AdminWebSiteRootAddress": "http://localhost:4200/"
I added port 22742 to bindings in IIS. I now see this in the Console:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.
Any ideas?
I have done an IIS Deploy of a combined Core and Angular web site. After creating the web site in IIS, I copied all the files from dist folder to the root folder in IIS. The CoonectionString in appsettings.json is the same for both local (where it is working) and server/IIS.
When I visit the site in IIS, I get the "An error has occured!" message. So the index.html page seems to start to load, but then something fails. How can I go about troubleshooting this?
Thank you, I missed that part.
I have ASP.NET Zero up and running locally (Core and Angular), but I'm new to Visual Studio and ASP.NET Zero. I see that you can publish Applications in Visual Studio to a file. For the Core solution, what Application should be published to move this to a dedicated server with IIS?
I am getting this error when following the getting started guide. I did set **.**EntityFrameworkCore as the Startup Project:
PM> Update-Database Could not load assembly '..Web.Host'. Ensure it is referenced by the startup project '..EntityFrameworkCore'.
Any ideas?