0

I have uploaded my code to an IIS server where we have added https on. My problem now is that the CSS file is not working as it used before. When I run the application in my local machine it runs perfect. As you can see in the picture Pix ( on the left) the correct why for the style is to separate the sections with ; but in the right side of the picture (on the server) it uses , instead of ;.

This problem started after we implemented the https certificate.

The project that I'm working with is built with Blazor.

What I tried is to figure out if the certificated changed something on the server settings that makes the code to read ; as ,

  • maybe this can help you https://stackoverflow.com/questions/15452519/problems-loading-style-sheets-over-https – dannyRouge May 15 '23 at 12:19
  • Did not help. like i wrote in my question. It works fine when I run it in my local machine and the https setup in my iis. But as soon as I deploy it in the server the style gets messy like i showed in the picture in my question – Jonny Frez May 15 '23 at 15:31
  • Is this Blazor Server or WASM? How are you referencing the CSS? – Lex May 15 '23 at 20:23
  • This is a Blazor WASM application. I have not change any of the default reference to the CSS. When I created the project in my lcoal computer I configured it to be able to run in https (you can do that when you create the project). During all the test on my localmachine it is working fine, and iI can see that it is using the style from the css. Do you have any idea on what could be wrong? – Jonny Frez May 16 '23 at 08:36
  • Need a lot more information but have you tried emptying your browser's cache or even using a different browser? Is there any relevant error message in the console? – samwu May 16 '23 at 09:39
  • Yes, The console doesn't give any errors. I have the picture with warnings uploaded in my question (blue text: Pix). I have tried checked both in edge and chrome, and also tried it in "Incognito mode". Still the same problem. This problem started after we implemented the LSS certificat to use https. Before this the tables where looking fine. – Jonny Frez May 16 '23 at 10:35
  • I solved this buy recreating the publish script. Some how it broke when it created and changed http to https in the json. – Jonny Frez May 17 '23 at 12:50

0 Answers0