How to resolve a particular service differently for Background Jobs
Reddit » .NET
by /u/garib-lok
2h ago
Hi folks, For a .NET core application I have a ILoggedInUserService interface which has a GetLoggedInUser method which is supposed to return the name of the current logged in user from HttpContext. In my repository methods I am injecting that so I can use that save auditing fields like CreatedBy UpdatedBy etc. Now, my backgroung jobs are using the same repository methods, but how do I set different LoggedInUserName? Ideally, I dont wanna change the implementation of ILoggedInUserService and put some logic in there to check if HttpContext user is null, return admin or some default value. What ..read more
Visit website
I need help running the first migration.
Reddit » .NET
by /u/Aggravating-Pick9389
3h ago
I have old code that is using .Net Core 5 and SQL Server. I managed to update it to use .Net Core 8 using the .NET Upgrade Assistant, but since I am developing on a Linux machine, I am using Postgres instead of SQL Server. After making the change, the code builds fine but I am unable to create the first migration. I am getting this error. shell Unable to create a 'DbContext' of type ''. The exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions' while attempting to activate 'UserManagement.Domain.UserContext'.' was thrown while attempting to create an in ..read more
Visit website
Seasoned .NET Developer Seeking Remote Opportunities: Let's Connect and Collaborate!
Reddit » .NET
by /u/Far_Creme3816
4h ago
Hello everyone! I'm Pradeep, and I'm thrilled to have joined this vibrant tech community. As a seasoned .NET developer with 3 years of experience, I'm passionate about creating robust and scalable software solutions. My expertise lies in ASP.NET core.I'm currently on the lookout for remote job opportunities where I can contribute my skills and collaborate with talented individuals. Whether it's developing innovative applications, optimizing existing systems, or tackling new challenges, I'm eager to dive in and make an impact.Outside of coding, I enjoy playing chess, make small 3D animation cl ..read more
Visit website
CORS ERROR?
Reddit » .NET
by /u/OutlandishnessFar56
6h ago
Hi, I have an issue wherein old controllers seems to be OK but the new controller I created gets this Access to XMLHttpRequest at '' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. I already allowed any origin on my CORS but still getting the same error. This only happens when I deploy my app. https://preview.redd.it/5ehcrstqekwc1.png?width=213&format=png&auto=webp&s=8a5c0b523d5ede6f8869ecdce1ba94455281e453 https://preview.redd.it/vycqueptekwc1.png?width=215&format=png&auto=webp&s=f717e0e9eaa ..read more
Visit website
Iam using DAPR for service invocation in my microservice application. Currently iam spinning up the side car by running the dapr init command in cmd. Is there anyway i can program this so i dont have to run this everytime run the service
Reddit » .NET
by /u/No_Explanation_7077
8h ago
submitted by /u/No_Explanation_7077 [visit reddit] [comments ..read more
Visit website
What is better to start on mobile development with dotnet? Xamarin or NET Maui ?
Reddit » .NET
by /u/dwad90
9h ago
submitted by /u/dwad90 [visit reddit] [comments ..read more
Visit website
ELI5 - SignalR Disconnects
Reddit » .NET
by /u/Azraeana
11h ago
Hi! I’m relatively new to Blazor server development and SignalR and I’m just having some trouble determining if what I’m doing is “wrong”. Our Blazor server app needs to maintain connections for 30 minutes. That is a company policy for all sites. I have a js that uses a timer to time how long they sit inactive and at 30 minutes it boots them. No problem. My problem is that the SignalR connection disconnects every 30 seconds, displaying an attempting to reconnect message and graying out the screen. I get that it’s because we are not actively getting communication from the web server. But this ..read more
Visit website
Help me pick a thesis project.
Reddit » .NET
by /u/reddithoggscripts
13h ago
Hey guys, I chose this subreddit because generally you guys are the most responsive and polite and I feel like this post would get a lot of criticism since I'm looking for direction rather than technical advice. I am about to embark on my thesis for my software engineering masters (it's a conversion so it's not like I have a strong background in comp sci). Here's some of the topics that were suggested by the professors that I had *some* interest in. A short background from me. Since beginning my course I have created these projects so far: **A.** A bash script that simulates a round-robin al ..read more
Visit website
DnSpyEx code looks different than DN Reflector…
Reddit » .NET
by /u/johnshonz
15h ago
I am going to preface this post by saying this is my first time ever trying to modify a compiled .NET DLL I found the actual code block I need to change, but loading it in DN reflector looks very different compared to DnSpyEx… Just to give you an example, a != somehow turns into an == Just running the app makes me think that the == (which is what DN reflector shows) is actually correct Are there any resources someone can point me to for some additional info? All I really need to do is change a tiny block of code in a DLL. submitted by /u/johnshonz [visit reddit] [comments ..read more
Visit website
MVC View to PDF - Net 6
Reddit » .NET
by /u/Sufficient-Ad1040
17h ago
Hello, I'm a junior here, so please forgive me if I'm wasting your time. I've checked some posts on this group related to my topic but most replied with libraries that are not free. How do you handle creating PDF documents? I've been experimenting with a few libraries this week and have managed to reach a point where I can build an HTML page and export it to PDF. However, I was wondering if there's a smarter way to capture the current design. Here's my thought process: The "Download PDF" button sends a requestId to the backend. The endpoint retrieves the ticket details from the repository ba ..read more
Visit website

Follow Reddit » .NET on FeedSpot

Continue with Google
Continue with Apple
OR