Radzen hangs on "run"

Hello Radzen Team,
One of my apps wont start after clicking on "run". Starting in VS 2019 works.
Please help.

Stood still here:

Thomas

This is not a known issue and we can't reproduce it locally. Unfortunately we don't know how to help in this case. Try restarting your machine and Radzen to see if it makes a difference.

Hi @korchev,
i have restarted and radzen deinstalled and freshly installed.
Are there any logfiles i can have a look at?

Thomas

When i started the app in VS and run in Radzen it looks like this:
radzen: Generating code ...
radzen: Code generation done in 700ms.
dotnet: watch :
dotnet: Started

dotnet: Pages\Partner.razor.cs(42,21): warning BL0005: Component parameter 'FilterValue' should not be set outside of its component. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): warning MSB3026: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Wiederholung 1 wird in 1000 ms gestartet. The process cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): warning MSB3026: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Wiederholung 2 wird in 1000 ms gestartet. The process cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): warning MSB3026: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Wiederholung 3 wird in 1000 ms gestartet. The process cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): warning MSB3026: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Wiederholung 4 wird in 1000 ms gestartet. The process cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): warning MSB3026: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Wiederholung 5 wird in 1000 ms gestartet. The process cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): warning MSB3026: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Wiederholung 6 wird in 1000 ms gestartet. The process cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): warning MSB3026: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Wiederholung 7 wird in 1000 ms gestartet. The process cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): warning MSB3026: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Wiederholung 8 wird in 1000 ms gestartet. The process cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): warning MSB3026: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Wiederholung 9 wird in 1000 ms gestartet. The process cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): warning MSB3026: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Wiederholung 10 wird in 1000 ms gestartet. The pro
dotnet: cess cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): error MSB3027: "obj\Debug\netcoreapp3.1\Trent.dll" konnte nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. Die zul´┐Żssige Anzahl von Wiederholungen von 10 wurde ´┐Żberschritten. Fehler. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet: C:\Program Files\dotnet\sdk\3.1.401\Microsoft.Common.CurrentVersion.targets(4187,5): error MSB3021: Die Datei "obj\Debug\netcoreapp3.1\Trent.dll" kann nicht in "bin\Debug\netcoreapp3.1\Trent.dll" kopiert werden. The process cannot access the file 'C:\Users\Thomas\source\repos\trent\server\bin\Debug\netcoreapp3.1\Trent.dll' because it is being used by another process. [C:\Users\Thomas\source\repos\trent\server\Trent.csproj]

dotnet:

dotnet: Fehler beim Buildvorgang. Beheben Sie die Buildfehler, und versuchen Sie es anschlie´┐Żend noch mal.

dotnet: watch :
dotnet: Exited with error code 1

dotnet: watch : Waiting for a file to change before restarting dotnet...

Perhaps this gives a hint?

Well the error tells that those files are locked by another process ... We don't know what has locked those files and why.

VS locks these files because the app is running there. I thought perhaps you can see how far the build from radzen is coming before hanging

Can i see the build output somewhere else with more details?

Thomas, you can't run two builds in the same directory. The dotnet tooling locks the files. This is not an issue related to Radzen.

@korchev,
i know. it was just a test to go forward with the problem. when nothing is started in VS or VS is closed radzen build hangs. s. picture in first post. I need help what happens here.

As i told... radzen build hangs. the same app builds and starts in VS 2019 with no problems. I dont understand what the difference ist between radzen builds the app and VS builds the app.

After commenting out the Logger configuration in Startup.Custom.cs radzen builds snd runs normal.

//Log.Logger = new LoggerConfiguration()
//            .ReadFrom.Configuration(Configuration)
//            .CreateLogger();

services.AddScoped<ParameterService>();
services.AddScoped<BrowserService>();
services.Configure<AppSettings.GoogleApi>(Configuration.GetSection("GoogleApi"));

//services.AddLogging(x =>
//                    {
//                        x.ClearProviders();
//                        x.AddSerilog(dispose: true);
//                    });
//Log.Logger.Information("Startup");

Can you give me a hint why configuring and using a logger doesnt work for radzen?
am i doing something wrong?

Thomas

@Thomas, this code is custom. We don't know what it does and how it may affect the build. The Radzen build does nothing but execute dotnet run in the server directory of the Blazor application.

If anyone has the same problem:
If u use ClearProviders() in Startup.Custom.cs "dotnet run" hangs while reading the launchsettings.json.

    services.AddLogging(x =>
                        {
                            //x.ClearProviders(); // Wen aktiviert h├Ąngt die Anwendung wenn sie mit radzen gestartet wird
                            x.AddSerilog(dispose: true);
                            x.SetMinimumLevel(LogLevel.Trace);
                        });

After commenting ClearProviders() out, radzen will start as normal. Dont know the reason.
I must initialize and configure the 3rd party logger in startup because radzen has no program.cs partial class. For sure one can add the program.cs to the ignore list which perhaps leads to other problems in the future.

Hope this helps anyone...

Thomas

1 Like