Reddit » .NET
1,106 FOLLOWERS
Reddit is a network of communities based on people's interests. A sub-Reddit for discussion and news about Dot Net technology. Check out the posts and share your knowledge and opinions on topics related to .NET. Find out where can you start with .NET as a web developer.
Reddit » .NET
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
Reddit » .NET
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
Reddit » .NET
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
Reddit » .NET
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
Reddit » .NET
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
Reddit » .NET
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
Reddit » .NET
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
Reddit » .NET
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