In the input form I am using radion button. When running dashboard on localhost its working fine
but when running same on IIS the Placeholder are getting merge above and there actual values is being displayed in buttons. It should only display placeholder.
It could be some sort of browser caching of the JavaScript files. Make sure that you clear your cache or try a different browser to see if it’s the same result. @AlonGvili is correct that this should be the same in both.
By localhost I meant running a dashboard on my local machine as start-uddashboard and by IIS running on private network as a site. It should render same result. But I am not sure why its giving me weird result. I restarted by Server hosting IIS services still same result. I will test tomorrow again by putting only Input code on IIS may be any customizing is making this weird.
I tried on Chrome and IE as of now same result. Restarted both IIS Server and my local machine to clear any cache. Checked on colleague machines same. I will do few more test and share the result.
I tried this workaround but no content is being displayed inside the card.
But now I ran into new issue. On IIS Server i had 2.5.2 version and my laptop had 2.6.0 where normally I develop and test any code. I upgraded IIS Server version to 2.6.0 after which my page is not loading. I checked event viewer and i can see below error when I start my website.
Error starting dashboard:
Exception calling “RegisterAsset” with “1” argument(s): “The given path’s format is not supported.”
at , C:\inetpub\wwwroot\Modules\UniversalDashboard.Materialize\UniversalDashboard.Materialize.psm1: line 10
at , C:\inetpub\wwwroot\UniversalDashboard.psm1: line 15
at , : line 1
you need to delete all the files and copy the new ones from 2.6.2 version, with UD you cannot just upgrade the files. you have to delete the old ones and keep your web.config and the .ps1 file you have developed and then copy the new files from 2.6.2 to your inetpub folder .
@AlonGvili@adam@psDevUK Radio button issue also got fixed after following @wsl2001 steps mentioned above. Looks like earlier when I upgraded to 2.6.0 from 2.5.3 by simply copying the new version files without deleting the old ones to site root directory there may have been mismatch. Site was working initially displaying values of Radio buttons instead of placeholder and after few days complete failure.
Till now I used to follow same procedure to upgrade and site was working so didn’t notice.
Now site is working radio button display is correct. But I getting different layout on different OS even navigation color is slightly different. Columns are fully stretched when loading on my PC but not when hosting it over IIS Server.
Same code. I have not used any theme or defined any component layout. Everything is default.
The only difference is both are on different OS. My PC has Win 10. IIS Service is running on Win 2016 server. Is it because of different OS? If I run same code on IIS Server but as localhost result is same.
Hey @Abhijit I’ve had that same red theme randomly apply itself after I update something. As @AlonGvili mentioned this is theme related like it is not loading the default theme correctly. When this happens to me I clear all my browser cache stop and start site in IIS and everything returns to normal
@psDevUK I have seen red theme but as you mentioned it goes after IIS reset.
This is something different I tried clearing out cache, recycle app pool, IIS reset. Even tested with different default theme available Page content is always offset from margin.
Believe you talking about the 50px left right top and bottom padding which is in the default theme. I see @BoSen29 been busy and made a tight theme. On iPhone atm but sure that’s what you talking about…so to fix that create a custom theme and add default theme as parent.
Cool beans least we on the same page. What I would do is https://docs.universaldashboard.io/themes#creating-child-themes
So create a basic MAIN css theme set all padding to 0 and apply the default theme as parent theme. Is what I was trying to mention earlier. I am also sure the method you mentioned would also work, but as they say always more than one way to do something.