-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RBS can't run the app if the localized page is open on designer #82
Comments
I couldn't reproduce a file lock but reproduced something else which is probably related - opening SysProjectTotal.razor caused the RBS server process to crash. This effectively disables RBS and if you have a running project at the time it stayed running in the background thus locking the build artefact files. The problem seems to be caused by this code (poor
It performs a DB query and crashes in design-time (which is to be expected). Can you try modifying this code to and reloading the project in RBS:
This will hide We plan to make a change to not execute any Blazor Component event handlers in RBS (such as we did in Radzen). We should have probably make it so from the beginning. |
Hi @akorchev, I'm really so sorry. Please forgive me, I took your time. That file is not related to our issue. I shared the wrong file with you. There is no Here is the right file. Please follow the instruction to reproduce the error. PS. In this example selecting language process is disabled. You will see the 2 components for this action. Both of them remarked but the result is the same. Maybe you are right PS. in some cases (I couldn't catch it exactly) RBS forgets its configuration and, when restarted turns to the light theme instead of dark (I'm setting it to the dark always). Thanks for your support, |
I am sorry but I don't understand what the problem is and how to test it. I need the exact steps. A quick test by uncommenting the |
Hi @akorchev,
Can't you reproduce the error? In my environment, this project generates an error when try to run the project if you open the TextResourceTestPage.razor on the designer. |
Hi @akorchev, Could you give me permission to run RBS on a second machine with the same license for testing purposes simultaneously for a limited time? Maybe I can find something meaningful. |
You can run RBS on as many machines as you want with the same license key. As long as you are the only person using it everything is fine. |
Hi @akorchev, I will really be crazy. The new setup did the same. No VS, no other development environment except RBS. Just OS. I changed everything. Nothing changed. I couldn't find a meaningful reason. I gave up totally. I'll check out from time to time. Please do the same. |
Hi @akorchev, I said I gave up but I think I love RBS more than I think. I spent all my night and I found a working solution. I don't know the backend mechanism. Maybe you can find something meaningful. I'll try to explain. First I thought if I can add a fake resources.dll file to the process because the XXX.resources.dll file fails, maybe I can create a cheat. I was using the culture option when I created language files. I added an English language file (without culture) : ( It worked for once. But when I changed the language to Turkish I got errors again. This time I added Turkish without culture ( Suprise... This configuration is working for now. Does this tell you something? |
Unfortunately this doesn't make much of a difference. I still can't reproduce such locking. Hopefully this workaround would allow you to continue your work. |
After some digging with @akorchev's suggestions, I found the solution. First, I saw that my approach was old fashioned. I was using property based localization. But Microsoft offers a totally different technique for ASP.NET Core Blazor. RBS supports this method for page level. The following article explains the shared level localization. When I implement it in my project everything found peace. |
Hi guys,
This post is created after a Radzen forum discussion. You can access it from this link.
Problem
This is about multi-language selection
<CulturePicker />
component and the issue started after the last update (1.0.6).To regenerate the issue please follow the directions.
Error
The given process number (18448 in my sample) is pointing to dotnet.exe.
The temporary solution
When the
<CulturePicker />
component is removed on the MainLayout.razor page, design time and run time works seamlessly.I hope you can regenerate the issue with my sample.
RadzenTest4.zip
The text was updated successfully, but these errors were encountered: