Skip to content
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

Unhandled exception rendering component: Sequence contains no matching element #11

Closed
RAB70 opened this issue Jul 25, 2023 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@RAB70
Copy link

RAB70 commented Jul 25, 2023

No description provided.

@RAB70 RAB70 changed the title Hi Seji, Unhandled exception rendering component: Sequence contains no matching element Jul 25, 2023
@RAB70
Copy link
Author

RAB70 commented Jul 25, 2023

Hi Seji,
I downloaded and installed the native version, both on Ubuntu 22 and Windows Server 2022. I can log in with an authorized user in both cases. The directory is also searched and the computer objects are offered to me. Unfortunately, the following error occurs when selecting an object. Do you have a hint for me?
Thank you
Best
RAB
21:36:42 WRN] Unhandled exception rendering component: Sequence contains no matching element
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.Single[TSource](IEnumerable1 source, Func2 predicate)
at LAPS_WebUI.Pages.LAPS.<>c__DisplayClass25_2.b__21(RenderTreeBuilder __builder8)
at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(Int32 sequence, RenderFragment fragment)
at MudBlazor.MudTabPanel.BuildRenderTree(RenderTreeBuilder __builder)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment Exception& renderFragmentException)
[21:36:42 ERR] Unhandled exception in circuit 'udj6QrN0dpqbgfaMtyNmtKNSFM4lVIOB2sMAki4Q1aM'.
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.Single[TSource](IEnumerable1 source, Func2 predicate)
at LAPS_WebUI.Pages.LAPS.<>c__DisplayClass25_2.b__21(RenderTreeBuilder __builder8)
at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(Int32 sequence, RenderFragment fragment)
at MudBlazor.MudTabPanel.BuildRenderTree(RenderTreeBuilder __builder)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment Exception& renderFragmentException)
[21:36:42 WRN] Unhandled exception rendering component: Cannot access a disposed object.
System.ObjectDisposedException: Cannot access a disposed object.
at Microsoft.AspNetCore.Components.RenderTree.ArrayBuilder1.GrowBuffer(Int32 desiredCapacity) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment Exception& renderFragmentException) at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue() [21:36:42 ERR] Unhandled exception in circuit 'udj6QrN0dpqbgfaMtyNmtKNSFM4lVIOB2sMAki4Q1aM'. System.ObjectDisposedException: Cannot access a disposed object. at Microsoft.AspNetCore.Components.RenderTree.ArrayBuilder1.GrowBuffer(Int32 desiredCapacity)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment Exception& renderFragmentException)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()
[21:36:42 INF] Executed endpoint '/_blazor'
[21:36:42 INF] Request finished HTTP/1.1 GET http://slapsui1.domain.ext/_blazor?id=F1ET6rHw5bkKVvkneBpSNw - - - 101 - - 11917.5948ms

@Seji64
Copy link
Owner

Seji64 commented Jul 25, 2023

Can you add your config (appsettings.JSON)?

@RAB70
Copy link
Author

RAB70 commented Jul 25, 2023

Yes, of course:
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"Kestrel": {
"EndPoints": {
"Http": {
"Url": "http://0.0.0.0:8080"
}
}
},
"LDAP": {
"Server": "domaincontroller.domain.ext",
"Port": 389,
"UseSSL": false,
"TrustAllCertificates": true,
"SearchBase": "OU=Companypc,DC=domain,DC=ext"
},
"LAPS": {
"ForceVersion": null,
"EncryptionDisabled": false
},
"AllowedHosts": "*"
}

@Seji64
Copy link
Owner

Seji64 commented Jul 25, 2023

So it doesn't matter which AD computer object you use? Just to make sure that "by chance" it doesn't work with the one you are testing with.

@RAB70
Copy link
Author

RAB70 commented Jul 25, 2023

Unfortunately, the behavior is the same for all PCs

@Seji64 Seji64 added the bug Something isn't working label Jul 25, 2023
@Seji64
Copy link
Owner

Seji64 commented Jul 25, 2023

Found the bug....fixing it

@Seji64 Seji64 closed this as completed in 3319cee Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants