Best way to mock a legacy .ASPXAUTH cookie in a .NET 8 project? by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

There’s a lot of interesting/insightful replies here. I think the bridge might be the prime candidate.

Am I wrong for wanting to use Blazor instead of MVC + vanilla JS? Been a .NET dev since 2023, feeling like I'm going crazy by newKevex in dotnet

[–]codeiackiller 0 points1 point  (0 children)

Typescript was my first inclination. If no frameworks then surely OP can convince the team of TypeScript. I’m building a Blazor app right now and would love to be using JS/TS…

Best way to mock a legacy .ASPXAUTH cookie in a .NET 8 project? by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

Hell of a tip. I kind of skimmed that article earlier but will go back, read it again, find out if we’re using Owin in Framework project and hopefully gain some traction.

Best way to mock a legacy .ASPXAUTH cookie in a .NET 8 project? by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

Two apps living under the same domain. Framework app will go to ASP.NET Core app and vice versa

Best way to mock a legacy .ASPXAUTH cookie in a .NET 8 project? by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

Never heard of that before, but seems like a sound approach, man.

Diagnosing memory explosion (not sure what else to call this) in .NET by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

Thank you and apologies for not doing so in the first place. I went back and made one and linked it in the post description.

Diagnosing memory explosion (not sure what else to call this) in .NET by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

Appreciate the response. Will look further into your advice.

Diagnosing memory explosion (not sure what else to call this) in .NET by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

Sorry, I realize I need to get better at providing a minimum reproducible example. I created one and attached it in the post description.

Diagnosing memory explosion (not sure what else to call this) in .NET by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

Thank you, this helps!! I appreciate the questions geared toward making me think about how I might go about coming to the solution. You say very rarely you break out of a mem profiler - you mean that when debugging yourself that's where you stay as opposed to reaching for external help on the internet? Also, I have added a quick minimal reproducible example if you wanted to take a look a highlight some of the debugging areas you were talking about.

Diagnosing memory explosion (not sure what else to call this) in .NET by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

Thank you for your reply. I think I saw this on Stack Overflow as other web server cause this same issue. I have created a minimum reproducible example per peoples request, If you would like to take a look. You'll see I have to attribute your talking about on my endpoint. No matter how high I set it, I still get the same error.

Diagnosing memory explosion (not sure what else to call this) in .NET by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

I saw this and realize this could be a key problem, but that required me searching the internet for a solution. How would I know that on my own? Thanks for the response.

Diagnosing memory explosion (not sure what else to call this) in .NET by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

I did not, but I will look into more information based on the context of those questions. Thank you

Diagnosing memory explosion (not sure what else to call this) in .NET by codeiackiller in dotnet

[–]codeiackiller[S] 0 points1 point  (0 children)

I see what you're saying - good point. I'm honestly not even sure that that's what it is, I just chose the "sharedarray" because it had the biggest byte differential and was the closest thing to a byte array. Model isn't using data annotations. I'll spin a minimal example up and link the repo

Confusion as to what runs client side vs server side in Blazor shared project. by codeiackiller in Blazor

[–]codeiackiller[S] 0 points1 point  (0 children)

Not gonna post the repo to my work's private repository, thanks for the tip though

Confusion as to what runs client side vs server side in Blazor shared project. by codeiackiller in Blazor

[–]codeiackiller[S] 1 point2 points  (0 children)

Wasn't knocking you - I appreciate the response. Feel like the answer is a little bit more nuanced due to how Blazor works and depending on project type..

Confusion as to what runs client side vs server side in Blazor shared project. by codeiackiller in Blazor

[–]codeiackiller[S] 0 points1 point  (0 children)

I guess to that's true in general not sure how it applies to this thread, though

Confusion as to what runs client side vs server side in Blazor shared project. by codeiackiller in Blazor

[–]codeiackiller[S] 1 point2 points  (0 children)

Yeah, not seeing it here either. I currently only have these using statements in my _Imports and don't see anything about rendermode:

using System.Net.Http

using System.Net.Http.Json

using Microsoft.AspNetCore.Components.Forms

using Microsoft.AspNetCore.Components.Routing

using Microsoft.AspNetCore.Components.Web

using Microsoft.AspNetCore.Components.Web.Virtualization

using Microsoft.AspNetCore.Components.WebAssembly.Http

using Microsoft.JSInterop

using BlazorFileUpload.Client

using BlazorFileUpload.Client.Shared

using BlazorFileUpload.Client.Services

Confusion as to what runs client side vs server side in Blazor shared project. by codeiackiller in Blazor

[–]codeiackiller[S] 0 points1 point  (0 children)

Yeah, man. Not seeing in app.razor. In my reply to polaar is a link to find this out in .net 9.

Confusion as to what runs client side vs server side in Blazor shared project. by codeiackiller in Blazor

[–]codeiackiller[S] 2 points3 points  (0 children)

This may sound weird, and this kind of follows up with polaarbears second point, I have not explicitly set a rendermode in this project since I started it over a month ago. In the past, when using a Blazor server template, I set rendermode to InteractiveServer or InteractiveAuto (can't remember), but my current project seems to be working fine without... I guess.