profile
viewpoint
dantronik-markus @tobbi's alter ego, usually for work-related stuff

dantronik-markus/contextMenu.js 0

contextMenu.js is a plugin to create windows like context menu with keyboard interaction, different type of inputs ,trigger events and much more.

dantronik-markus/SelectBindingBug 0

Blazor Select Binding Bug

issue commentdotnet/aspnetcore

[Blazor WebAssembly] Error when deploying on IIS even though code works in debug mode

This is the same cause as https://github.com/dotnet/runtime/issues/42628 and apparently, the fix is not yet part of 5.0rc2.

mohamedcherifmo

comment created time in 26 minutes

issue openeddotnet/aspnetcore

Blazor Virtualize Component for nested tree structure misses items when scrolling down the list and scrolling up again

Describe the bug

I'm using the Blazor Virtualize Component with a static list of items in a treeview component. The general structure of my component looks like this: https://gist.github.com/dantronik-markus/3750b7e5bf9ef4931c7ea9379cf8386f

I'm loading the nodes on demand using an HTTP GET request, but I assume it doesn't matter where the data comes from.

Here's a video showing the problem: 2020-10-23 11-26-15.zip

To Reproduce

I am using the code above to reproduce the issue. I'll try to create a minified test case.

Further technical details

  • ASP.NET Core version 5.0 rc 2
  • Include the output of dotnet --info <details> <summary>dotnet --info</summary> $ dotnet --info .NET Core SDK (gemäß "global.json"): Version: 5.0.100-rc.2.20479.15 Commit: da7dfa8840

Laufzeitumgebung: OS Name: Windows OS Version: 10.0.19041 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\5.0.100-rc.2.20479.15\

Host (useful for support): Version: 5.0.0-rc.2.20475.5 Commit: c5a3f49c88

.NET SDKs installed: 2.1.4 [C:\Program Files\dotnet\sdk] 2.1.202 [C:\Program Files\dotnet\sdk] 2.1.507 [C:\Program Files\dotnet\sdk] 2.1.509 [C:\Program Files\dotnet\sdk] 2.1.700 [C:\Program Files\dotnet\sdk] 2.1.801 [C:\Program Files\dotnet\sdk] 3.0.100-preview9-014004 [C:\Program Files\dotnet\sdk] 3.0.100 [C:\Program Files\dotnet\sdk] 3.1.100-preview3-014645 [C:\Program Files\dotnet\sdk] 3.1.100 [C:\Program Files\dotnet\sdk] 3.1.102 [C:\Program Files\dotnet\sdk] 3.1.200-preview-014883 [C:\Program Files\dotnet\sdk] 3.1.200-preview-014977 [C:\Program Files\dotnet\sdk] 3.1.201 [C:\Program Files\dotnet\sdk] 5.0.100-preview.6.20318.15 [C:\Program Files\dotnet\sdk] 5.0.100-rc.1.20452.10 [C:\Program Files\dotnet\sdk] 5.0.100-rc.2.20479.15 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0-preview9.19424.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.2.20167.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-rc.1.20451.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-rc.2.20475.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0-preview9-19423-09 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-rc.1.20451.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-rc.2.20475.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.0.0-preview9-19423-09 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.0-rc.1.20452.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.0-rc.2.20475.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download </details>

  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version Microsoft Visual Studio Community 2019 Preview Version 16.8.0 Preview 4.0

created time in 6 days

issue commentdotnet/aspnetcore

Loading iframe within blazor app re-loads all the DLLs from the server even when iframe contains static HTML only

@dantronik-markus Does this issue only occur when you are debugging via Visual Studio? Are you able to repro when you run the app via Ctrl + F5. Yes, the issue only occurs when debugging via VS. The published app is not suffering from the issue, as confirmed by looking at the IIS Server logs.

Also, can you share a repro project? I'll try to set up a repro project.

dantronik-markus

comment created time in 8 days

issue commentdotnet/aspnetcore

Loading iframe within blazor app re-loads all the DLLs from the server even when iframe contains static HTML only

The reloads do not appear in Chrome's Network tab, however, they're shown in the Debug view of Visual Studio when debugging.

I can't tell whether this issue also occurs for a published application.

dantronik-markus

comment created time in 9 days

issue openeddotnet/aspnetcore

Loading iframe within blazor app re-loads all the DLLs from the server even when iframe contains static HTML only

Describe the bug

I have an iframe inside my razor component. I set the iframe's source dynamically, depending on certain parameters of the component. Whenever the iframe's source gets changed, the relevant Blazor DLLs get reloaded from the server, despite there not being any need for that because it's just a static HTML page rendered from an API endpoint.

To Reproduce

Add an iframe inside a razor page, change the iframe's source dynamically using parameters.

Further technical details

  • ASP.NET Core version 5.0rc2
  • Include the output of dotnet --info <details> <summary></summary> $ dotnet --info .NET Core SDK (gemäß "global.json"): Version: 5.0.100-rc.2.20479.15 Commit: da7dfa8840

Laufzeitumgebung: OS Name: Windows OS Version: 10.0.19041 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\5.0.100-rc.2.20479.15\

Host (useful for support): Version: 5.0.0-rc.2.20475.5 Commit: c5a3f49c88

.NET SDKs installed: 2.1.4 [C:\Program Files\dotnet\sdk] 2.1.202 [C:\Program Files\dotnet\sdk] 2.1.507 [C:\Program Files\dotnet\sdk] 2.1.509 [C:\Program Files\dotnet\sdk] 2.1.700 [C:\Program Files\dotnet\sdk] 2.1.801 [C:\Program Files\dotnet\sdk] 3.0.100-preview9-014004 [C:\Program Files\dotnet\sdk] 3.0.100 [C:\Program Files\dotnet\sdk] 3.1.100-preview3-014645 [C:\Program Files\dotnet\sdk] 3.1.100 [C:\Program Files\dotnet\sdk] 3.1.102 [C:\Program Files\dotnet\sdk] 3.1.200-preview-014883 [C:\Program Files\dotnet\sdk] 3.1.200-preview-014977 [C:\Program Files\dotnet\sdk] 3.1.201 [C:\Program Files\dotnet\sdk] 5.0.100-preview.6.20318.15 [C:\Program Files\dotnet\sdk] 5.0.100-rc.1.20452.10 [C:\Program Files\dotnet\sdk] 5.0.100-rc.2.20479.15 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0-preview9.19424.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.2.20167.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-rc.1.20451.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-rc.2.20475.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0-preview9-19423-09 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-rc.1.20451.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-rc.2.20475.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.0.0-preview9-19423-09 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.0-rc.1.20452.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.0-rc.2.20475.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download </details>

  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version: Microsoft Visual Studio 2019 16.8.0 Preview 4.0

created time in 9 days

issue commentdotnet/efcore

Migration from LinQ2SQL: Query returns values with LinQ but does not using EFCore

The reason this fails is because the || (ro.ATTRIBUT.Equals(null) part of the query does not get translated properly:

In the LinQ2Entities query, you can find a OR ([Extent3].[ATTRIBUT] IS NULL) part.

Whereas the the query contains a OR [t].[TYP] IS NULL which seems pointless considering we check ([t].[TYP] <> 1) before.

dantronik-markus

comment created time in 15 days

issue commentdotnet/efcore

Migration from LinQ2SQL: Query returns values with LinQ but does not using EFCore

Does running both those SQL directly on the database (using SSMS) give same result?

Yes, the EF-generated query returns 0 results while the LinQ2Entities query returns 87 results.

dantronik-markus

comment created time in 15 days

issue commentdotnet/efcore

Migration from LinQ2SQL: Query returns values with LinQ but does not using EFCore

@smitpatel The LinQ2EntitiesDomainService query returns results and the EFCore-translated query does not return any results.

I am not sure how to best create repro code since it depends on our database scheme. Is there any other way you can figure out what might be wrong?

dantronik-markus

comment created time in 15 days

issue commentdotnet/efcore

Migration from LinQ2SQL: Query returns values with LinQ but does not using EFCore

The issue persists with Entity Framework Core 5.0rc2

dantronik-markus

comment created time in 16 days

issue openeddotnet/efcore

Migration from LinQ2SQL: Query returns values with LinQ but does not using EFCore

Ask a question

I am trying to Migrate a Silverlight LinQ2EntitiesDomainService to EFCore. The query present in linQ2EntitiesDomainService is the following:

        public IQueryable<T103_GZROOT> GetT103_GZROOTBereich(decimal IdBER, decimal IdMA, decimal IdROLE)
        {
            IQueryable<T103_GZROOT> JoinQuery = from gzr in (this.ObjectContext.T103_GZROOT.Where(c => c.ID_BER == IdBER && c.TYP != 1))
                                                join o1 in (this.ObjectContext.T000_OBJEKT.Where(c => c.ID_MA == IdMA && c.ID_CHPT == 103250)) on gzr.ID equals o1.ID_REF
                                                join rox in (this.ObjectContext.T000_ROLE2OBJ.Where(c => c.ID_ROLE == IdROLE)) on o1.ID equals rox.ID_OBJ into tmpro
                                                from ro in tmpro.DefaultIfEmpty()
                                                where ((ro.ATTRIBUT > 0) || (ro.ATTRIBUT.Equals(null)))
                                                orderby gzr.NR, gzr.BEZ
                                                select gzr;

            return JoinQuery;
        }

In EFCore, the query looks very similar (actually just replacing the calls to ObjectContext (where db is my DbContext):

            IQueryable<T103_GZROOT> JoinQuery = from gzr in (db.T103_GZROOT.Where(c => c.ID_BER == IdBER && c.TYP != 1))
                                                join o1 in (db.T000_OBJEKT.Where(c => c.ID_MA == IdMA && c.ID_CHPT == 103250)) on gzr.ID equals o1.ID_REF
                                                join rox in (db.T000_ROLE2OBJ.Where(c => c.ID_ROLE == IdROLE)) on o1.ID equals rox.ID_OBJ into tmpro
                                                from ro in tmpro.DefaultIfEmpty()
                                                where ((ro.ATTRIBUT > 0) || (ro.ATTRIBUT.Equals(null)))
                                                orderby gzr.NR, gzr.BEZ
                                                select gzr;

            return JoinQuery;

The query on the old LinQ2SQL side gets translated to this SQL:

--LinQ2Entities:
EXEC sp_executesql N'SELECT 
[Project1].[ID] AS [ID], 
[Project1].[ID_BER] AS [ID_BER], 
[Project1].[NR] AS [NR], 
[Project1].[BEZ] AS [BEZ], 
[Project1].[TYP] AS [TYP], 
[Project1].[BESCHR] AS [BESCHR], 
[Project1].[TMSTMP] AS [TMSTMP], 
[Project1].[BENUTZER] AS [BENUTZER], 
[Project1].[ID_POOL] AS [ID_POOL], 
[Project1].[BEZ2] AS [BEZ2]
FROM ( SELECT 
    [Filter1].[ID1] AS [ID], 
    [Filter1].[ID_BER] AS [ID_BER], 
    [Filter1].[NR] AS [NR], 
    [Filter1].[BEZ] AS [BEZ], 
    [Filter1].[TYP1] AS [TYP], 
    [Filter1].[BESCHR] AS [BESCHR], 
    [Filter1].[TMSTMP] AS [TMSTMP], 
    [Filter1].[BENUTZER] AS [BENUTZER], 
    [Filter1].[ID_POOL] AS [ID_POOL], 
    [Filter1].[BEZ2] AS [BEZ2]
    FROM   (SELECT [Extent1].[ID] AS [ID1], [Extent1].[ID_BER] AS [ID_BER], [Extent1].[NR] AS [NR], [Extent1].[BEZ] AS [BEZ], [Extent1].[TYP] AS [TYP1], [Extent1].[BESCHR] AS [BESCHR], [Extent1].[TMSTMP] AS [TMSTMP], [Extent1].[BENUTZER] AS [BENUTZER], [Extent1].[ID_POOL] AS [ID_POOL], [Extent1].[BEZ2] AS [BEZ2], [Extent2].[ID] AS [ID2], [Extent2].[ID_MA] AS [ID_MA]
        FROM  [dbo].[T103_GZROOT] AS [Extent1]
        INNER JOIN [dbo].[T000_OBJEKT] AS [Extent2] ON [Extent1].[ID] = [Extent2].[ID_REF]
        WHERE (1 <> [Extent1].[TYP]) AND (cast(103250 as decimal(18)) = [Extent2].[ID_CHPT]) ) AS [Filter1]
    LEFT OUTER JOIN [dbo].[T000_ROLE2OBJ] AS [Extent3] ON ([Extent3].[ID_ROLE] = @p__linq__2) AND ([Filter1].[ID2] = [Extent3].[ID_OBJ])
    WHERE ([Filter1].[ID_BER] = @p__linq__0) AND ([Filter1].[ID_MA] = @p__linq__1) AND (([Extent3].[ATTRIBUT] > 0) OR ([Extent3].[ATTRIBUT] IS NULL))
)  AS [Project1]
ORDER BY [Project1].[NR] ASC, [Project1].[BEZ] ASC',N'@p__linq__2 decimal(3,0),@p__linq__0 decimal(3,0),@p__linq__1 decimal(2,0)',@p__linq__2=230,@p__linq__0=888,@p__linq__1=44

While in EFCore, the query translates to

EXEC sp_executesql N'SELECT [t].[ID], [t].[BENUTZER], [t].[BESCHR], [t].[BEZ], [t].[BEZ2], [t].[ID_BER], [t].[ID_POOL], [t].[NR], [t].[TMSTMP], [t].[TYP]
FROM [T103_GZROOT] AS [t]
INNER JOIN (
    SELECT [t0].[ID], [t0].[ID_CHPT], [t0].[ID_MA], [t0].[ID_PARENT], [t0].[ID_REF], [t0].[ID_ROOT], [t0].[INFO], [t0].[TYP]
    FROM [T000_OBJEKT] AS [t0]
    WHERE ([t0].[ID_MA] = @__IdMA_1) AND ([t0].[ID_CHPT] = 103250.0)
) AS [t1] ON [t].[ID] = [t1].[ID_REF]
LEFT JOIN (
    SELECT [t2].[ID], [t2].[ATTRIBUT], [t2].[ID_OBJ], [t2].[ID_ROLE]
    FROM [T000_ROLE2OBJ] AS [t2]
    WHERE [t2].[ID_ROLE] = @__IdROLE_2
) AS [t3] ON [t1].[ID] = [t3].[ID_OBJ]
WHERE (([t].[ID_BER] = @__IdBER_0) AND (([t].[TYP] <> 1) OR [t].[TYP] IS NULL)) AND ([t3].[ATTRIBUT] > 0)
ORDER BY [t].[NR], [t].[BEZ]',N'@__IdMA_1 decimal(2,0),@__IdROLE_2 decimal(3,0),@__IdBER_0 decimal(3,0)',@__IdMA_1=44,@__IdROLE_2=230,@__IdBER_0=888

EF Core version: 3.1.4 Database provider: Microsoft.EntityFrameworkCore.SqlServer Target framework: .NET 5.0 Operating system: Windows 10 IDE: Microsoft Visual Studio Community 2019 Preview Version 16.8.0 Preview 3.2

created time in 16 days

issue closedstavroskasidis/BlazorContextMenu

Long context menu items can overlap the fixed-width (200px) context menu

Is your feature request related to a problem? Please describe. When the text contained in a menu item exceeds a certain number of characters, the text gets drawn above the 200px width menu item. Changing the width to something bigger than 200px using CSS works, however, then the position for the submenus is not correct.

Describe the solution you'd like BlazorContextMenu should automatically adjust the width to the content of the menu item. Alternatively, it should allow for a width setting on the BlazorContextMenu tag in the razor file.

closed time in a month

dantronik-markus

issue commentstavroskasidis/BlazorContextMenu

Long context menu items can overlap the fixed-width (200px) context menu

You're totally right. The fixed width was due to a custom CSS rule I had applied. I don't know how I could be so oblivious to not notice that before. Sorry about that.

dantronik-markus

comment created time in a month

issue openedstavroskasidis/BlazorContextMenu

Long context menu items can overlap the fixed-width (200px) context menu

Is your feature request related to a problem? Please describe. When the text contained in a menu item exceeds a certain number of characters, the text gets drawn above the 200px width menu item. Changing the width to something bigger than 200px using CSS works, however, then the position for the submenus is not correct.

Describe the solution you'd like BlazorContextMenu should automatically adjust the width to the content of the menu item. Alternatively, it should allow for a width setting on the BlazorContextMenu tag in the razor file.

created time in a month

issue commentdotnet/aspnetcore

blazor: Virtualize does not respond to items change

I have a question regarding the PR that fixes this: https://github.com/dotnet/aspnetcore/pull/26177/files#diff-18b60327e5f9093f24b96ed344268589R101-R107 mentions how it's not necessary to call the Refresh method when using Items instead of an items provider.

Yet, https://github.com/dotnet/aspnetcore/pull/26177/files#diff-18b60327e5f9093f24b96ed344268589R312-R314 talks about how it's also usable when using a static list of items.

Are the docs ambiguous or is it just my failed understanding?

sergey-su

comment created time in a month

issue commentdotnet/aspnetcore

Blazor: List virtualization does not take into account list item changes

I can confirm that the proposed fix did not work for me either. At best, it caused the tree items to be expanded when scrolling up and collapsed when scrolling down.

dantronik-markus

comment created time in a month

issue commentdotnet/aspnetcore

Assertion at..., condition '<disabled>' not met.

@mkArtakMSFT Can auto-close on this issue be prevented? It's a valid issue and the original reporter not responding does not mean that no one else of us will.

CincySteve

comment created time in a month

issue commentdotnet/aspnetcore

Assertion at..., condition '<disabled>' not met.

I am getting the same error with .NET 5.0 RC1. Here's the error message: 2020-09-17 10_16_30-Entwicklerwerkzeuge - IKON_2_0 - http___192 168 1 53_84_

CincySteve

comment created time in a month

issue openeddotnet/aspnetcore

Blazor: List virtualization does not take into account list item changes

To preface: I don't know whether this is a bug report or a feature request. I'll settle for feature request for now.

Describe the bug

I've tested the list virtualization feature as of Blazor 3.0rc1. My component is a tree structure and looks like this: https://gist.github.com/dantronik-markus/54d1999f327cb97efee9430aff594740 where TreeView is the name of the component.

When I click the expander to toggle the child items, then they do get toggled. However, the item state gets reset to

ChildNodes = null;
ChildrenLoaded = false;

when the virtualization happens causing my previous branches to be collapsed.

Is your feature request related to a problem? Please describe.

I'm trying to make changes to items in a list rendered using virtualization (e.g. for persisting collapsed / expanded state of a tree structure).

Describe the solution you'd like

Virtualize should have a Synchronize method of some sort or a flag that allows it to store / persist state changes.

created time in a month

issue openeddotnet/efcore

Logging in with connection string of existing connection fails with EFCore somewhere between versions > 3.1.4 and 3.1.8

<!-- Describe what isn't working as expected --> After updating from EFCore 3.1.4 to 3.1.8 (the latest stable version), I keep getting login errors when I try to login with the connection string of an existing connection.

Steps to reproduce

This is the code I'm using that worked before: https://gist.github.com/dantronik-markus/aac08397e4a4a6949c3dd5c76d6e3a73

Here's the exception that I'm getting:

Microsoft.Data.SqlClient.SqlException (0x80131904): Fehler bei der Anmeldung für den Benutzer "sa".
   at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool, SqlAuthenticationProviderManager sqlAuthProviderManager)
   at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at Microsoft.Data.SqlClient.SqlConnection.Open()
   at IKON_2_0.Server.Data.IKONDataAccessLayer.GetGZWerteAnSTHF(Int32 IdSthf, Int32 IdTeiln, Int32 werteTyp, Int32 jahr, Nullable`1 jahr2) in G:\source\repos\IKON 2.0\IKON_2_0\Server\Data\IKONDataAccessLayer.cs:line 734
   at IKON_2_0.Server.Controllers.WerteErfassungController.GetWerteErfassungBySTHF(Int32 idTree, Int32 idTeilnehmer, Int32 werteTyp, Int32 jahr, Int32 endJahr) in G:\source\repos\IKON 2.0\IKON_2_0\Server\Controllers\WerteErfassungController.cs:line 670
   at lambda_method1632(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
ClientConnectionId:7e434a15-4323-4f91-b39f-9628145fb7c3
Error Number:18456,State:1,Class:14

Further technical details

EF Core version: Database provider: Microsoft.EntityFrameworkCore.SqlServer 3.1.8 Target framework: .NET 5.0 Operating system: Windows 10 IDE: Microsoft Visual Studio Community 2019 Preview Version 16.8.0 Preview 2.1

created time in 2 months

issue closeddotnet/aspnetcore

Publishing ASP.NET-Core hosted Blazor application fails

Describe the bug

I have an ASP.NET-Core hosted Blazor application. Running the application locally works just fine, however, I get an error during publishing.

To Reproduce

Publish a blazor application to filesystem. These are the publish settings: https://gist.github.com/dantronik-markus/2fb46193601b1ce64ef1270049807cc9

I tried to reproduce the issue with a new Blazor app and was unable to, so there must be something about my app that causes publish to fail. I hope you can help me find out what that is. In the meantime, I'll try digging through the differences between my current Blazor app and the working one.

Exceptions (if any)

This is the log created during publishing: https://gist.github.com/dantronik-markus/30bfcf824dd5f0ca40f6e5a2bb16dafe

The log shows the following exception: C:\Program Files\dotnet\sdk\5.0.100-preview.8.20417.9\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.Components.Wasm.targets(222,5): Fehler MSB3954: Fehler beim Berechnen des Hashs für die Datei "obj\Release\net5.0\win-x64\IKON_2_0.Client.pdb", weil sie nicht vorhanden oder unzugänglich ist. C:\Program Files\dotnet\sdk\5.0.100-preview.8.20417.9\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.Components.Wasm.targets(222,5): Fehler MSB3954: Fehler beim Berechnen des Hashs für die Datei "obj\Release\net5.0\win-x64\IKON_2_0.Client.dll", weil sie nicht vorhanden oder unzugänglich ist.

(Error creating hash for file IKON_2_0.Client.dll / IKON_2_0.Client.pdb because it's not present or inaccessible).

Further technical details

  • ASP.NET Core version: 5.0.100-preview.8
  • Include the output of dotnet --info <details> <summary>dotnet --info</summary>

dotnet --info .NET Core SDK (gemäß "global.json"): Version: 5.0.100-preview.8.20417.9 Commit: fc62663a35

Laufzeitumgebung: OS Name: Windows OS Version: 10.0.18363 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\5.0.100-preview.8.20417.9\

Host (useful for support): Version: 5.0.0-preview.8.20407.11 Commit: bf456654f9

.NET SDKs installed: 2.1.4 [C:\Program Files\dotnet\sdk] 2.1.202 [C:\Program Files\dotnet\sdk] 2.1.507 [C:\Program Files\dotnet\sdk] 2.1.509 [C:\Program Files\dotnet\sdk] 2.1.700 [C:\Program Files\dotnet\sdk] 2.1.801 [C:\Program Files\dotnet\sdk] 3.0.100-preview9-014004 [C:\Program Files\dotnet\sdk] 3.0.100 [C:\Program Files\dotnet\sdk] 3.1.100-preview3-014645 [C:\Program Files\dotnet\sdk] 3.1.100 [C:\Program Files\dotnet\sdk] 3.1.102 [C:\Program Files\dotnet\sdk] 3.1.200-preview-014883 [C:\Program Files\dotnet\sdk] 3.1.200-preview-014977 [C:\Program Files\dotnet\sdk] 3.1.201 [C:\Program Files\dotnet\sdk] 5.0.100-preview.6.20318.15 [C:\Program Files\dotnet\sdk] 5.0.100-preview.8.20417.9 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0-preview9.19424.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.2.20167.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.8.20414.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0-preview9-19423-09 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-preview.8.20407.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.0.0-preview9-19423-09 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.0-preview.8.20411.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download </details>

  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version Visual Studio 2019 Version 16.8.0 Preview 2.0

closed time in 2 months

dantronik-markus

issue commentdotnet/aspnetcore

Publishing ASP.NET-Core hosted Blazor application fails

@pranavkm Thank you for your suggestion. Despite not publishing the package as "self-contained", the above-mentioned fix worked for me. Thanks!

dantronik-markus

comment created time in 2 months

issue commentdotnet/aspnetcore

Publishing ASP.NET-Core hosted Blazor application fails

I noticed another thing: If I simply run dotnet publish from the command line, it works without any issue. Not from within Visual Studio though.

dantronik-markus

comment created time in 2 months

issue commentdotnet/aspnetcore

Publishing ASP.NET-Core hosted Blazor application fails

The last time I submitted an issue during the build process, I was asked to get a build log using the Project System Tools. I did the same thing this time. Here it is: RoslynLog-d762f101-e293-4454-812b-81af01dae489.zip

dantronik-markus

comment created time in 2 months

issue openeddotnet/aspnetcore

Publishing ASP.NET-Core hosted Blazor application fails

Describe the bug

I have an ASP.NET-Core hosted Blazor application. Running the application locally works just fine, however, I get an error during publishing.

To Reproduce

Publish a blazor application to filesystem. These are the publish settings: https://gist.github.com/dantronik-markus/2fb46193601b1ce64ef1270049807cc9

I tried to reproduce the issue with a new Blazor app and was unable to, so there must be something about my app that causes publish to fail. I hope you can help me find out what that is. In the meantime, I'll try digging through the differences between my current Blazor app and the working one.

Exceptions (if any)

This is the log created during publishing: https://gist.github.com/dantronik-markus/30bfcf824dd5f0ca40f6e5a2bb16dafe

The log shows the following exception: C:\Program Files\dotnet\sdk\5.0.100-preview.8.20417.9\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.Components.Wasm.targets(222,5): Fehler MSB3954: Fehler beim Berechnen des Hashs für die Datei "obj\Release\net5.0\win-x64\IKON_2_0.Client.pdb", weil sie nicht vorhanden oder unzugänglich ist. C:\Program Files\dotnet\sdk\5.0.100-preview.8.20417.9\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.Components.Wasm.targets(222,5): Fehler MSB3954: Fehler beim Berechnen des Hashs für die Datei "obj\Release\net5.0\win-x64\IKON_2_0.Client.dll", weil sie nicht vorhanden oder unzugänglich ist.

(Error creating hash for file IKON_2_0.Client.dll / IKON_2_0.Client.pdb because it's not present or inaccessible).

Further technical details

  • ASP.NET Core version: 5.0.100-preview.8
  • Include the output of dotnet --info <details> <summary>dotnet --info</summary>

dotnet --info .NET Core SDK (gemäß "global.json"): Version: 5.0.100-preview.8.20417.9 Commit: fc62663a35

Laufzeitumgebung: OS Name: Windows OS Version: 10.0.18363 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\5.0.100-preview.8.20417.9\

Host (useful for support): Version: 5.0.0-preview.8.20407.11 Commit: bf456654f9

.NET SDKs installed: 2.1.4 [C:\Program Files\dotnet\sdk] 2.1.202 [C:\Program Files\dotnet\sdk] 2.1.507 [C:\Program Files\dotnet\sdk] 2.1.509 [C:\Program Files\dotnet\sdk] 2.1.700 [C:\Program Files\dotnet\sdk] 2.1.801 [C:\Program Files\dotnet\sdk] 3.0.100-preview9-014004 [C:\Program Files\dotnet\sdk] 3.0.100 [C:\Program Files\dotnet\sdk] 3.1.100-preview3-014645 [C:\Program Files\dotnet\sdk] 3.1.100 [C:\Program Files\dotnet\sdk] 3.1.102 [C:\Program Files\dotnet\sdk] 3.1.200-preview-014883 [C:\Program Files\dotnet\sdk] 3.1.200-preview-014977 [C:\Program Files\dotnet\sdk] 3.1.201 [C:\Program Files\dotnet\sdk] 5.0.100-preview.6.20318.15 [C:\Program Files\dotnet\sdk] 5.0.100-preview.8.20417.9 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0-preview9.19424.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.2.20167.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0-preview.8.20414.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0-preview9-19423-09 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0-preview.8.20407.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.0.0-preview9-19423-09 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.0-preview.8.20411.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download </details>

  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version Visual Studio 2019 Version 16.8.0 Preview 2.0

created time in 2 months

push eventdantronik-markus/contextMenu.js

dantronik-markus

commit sha 34187b2117a6df22578c0ab7b6689393df9e53a4

Create new minified version

view details

push time in 2 months

push eventdantronik-markus/contextMenu.js

dantronik-markus

commit sha b2a498846725738b8d974c9d26706ab8689ca8a7

Fix name and title attribute switch Title is now the visible text, name is the name attribute

view details

push time in 2 months

fork dantronik-markus/contextMenu.js

contextMenu.js is a plugin to create windows like context menu with keyboard interaction, different type of inputs ,trigger events and much more.

http://ignitersworld.com/lab/contextMenu.html

fork in 2 months

issue openedag-grid/ag-grid

Prevent editing based on cell data

<!-- IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING -->

I'm submitting a ... (check one with "x")

[] bug report => see 'Providing a Reproducible Scenario'
[] feature request => do not use Github for feature requests, see 'Customers of ag-Grid'
[x] support request => see 'Requesting Community Support'

Providing a Reproducible Scenario I have two different components in my aggrid options, one is the value cell renderer, the other is the editor. I'm toggling between those two components by calling this.api.startEditingCell. Now, I would like have a read-only cell depending on the value of the cell.

The way I currently do it is by calling stopEditing in the onCellEditingStarted callback function to stop the editing. However, this will show the editing component for a split second. I would like to prevent that.

Current behavior Editor shows for a split second before getting dismissed.

Expected behavior Prevent editor component from showing at all depending on the value in a cell.

Please tell us about your environment: Windows 10, Visual Studio 2019 Preview, IIS

  • ag-Grid version: 23.2.1

  • Browser: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"

  • Language: all

created time in 3 months

more