With this I still have to refresh the page for it to do anything. I was looking for a way to taggle the language on the page before it loads. See the issue is that I go to the page, it shows in english first and then from the ngOnInit handler I can set the language but the page is already showing english, so then I have to refresh the page for it to show the selected language.
Any way around this?
Thank you for that information. I did also find that my problem disappeared after I updated the angular CLI
npm install -g @angular/cli
I have already tried increasing the memory using that method. It did not solve my problem. Oddly enough, when I run ng build --prod from the command line I do not get any failures, it's only when I try to publish from within Visual
yes, as it turns out the same thing happens with 6.3.1 however it didnt happen with 6.2.x
@ismcagdas
I am confused by this answer. Does ASPNetZero support SSO across 2 (or more) ASPNetZero apps by configuring one of those apps as the Identity Server and the other Apps connected to it through OpenIdConnect?
In another post you told the user this wasn't supported
I found the problem...
After looking at all the files loaded on the client side, it appears the solution was loading appsetting.production.json, I had not edited that file in the src/assets folder and so it was still pointing to localhost. Once I updated that and re-published, that solved the problem.
Thanks all for your help
Great! So then I have followed all instructions...
-- Publish was successful --
I can navigate to swagger (test.mycompany.com/swagger) and it appears as it should -> Success
However, when I navigate to the root url: test.mycompany.com, i receive a modal with the following error: An error has occurred! Error detail not sent by server.
I have made sure that logging is turned on for my app service, it is, but the logs are empty. It seems like a client side issue.
I know I can modify the Client and Server Root URLs, what I am asking is... Can they be the same URL?
For example, if my ServerRootAddress is: <a class="postlink" href="http://test.mycompany.com">http://test.mycompany.com</a> can my ClientRootAddress be the same?
I have looked at the Application Log and Web Server Log stream and nothing is in them.
If I manually run npm install in the Host project directory, the ng build -prod command runs successfully when I publish. It publishes to Azure, but when I navigate to the page afterwards it shows an error:
An error has occurred! Error detail not sent by server.
So I am going back to my original question, do I need to make any specific settings changes? Do I need to use a URL with a port for the server root address or client root address? Can they be the same URL? I am not aware how you can use a separate port on an Azure web application, they only use ports 80 and 443.
Actually I cannot get it to publish as a fresh solution because ng build --prod fails. So it would seem I still need to do the steps of npm install and installing the angular cli?
It seems that just because the Host compiles does not mean it does everything necessary to allow me to publish.