Skip to content

.NET (Core and Framework)

Discussions on the .NET Core, .NET Framework and .NET 5 frameworks

This category can be followed from the open social web via the handle .net-core-and-framework@forum.codeproject.com

10.2k Topics 32.0k Posts
  • Is this the correct category for Blazor Server questions

    5
    0 Votes
    5 Posts
    160 Views
    Graeme_GrantG
    @sneha2004sahani2004 said in Is this the correct category for Blazor Server questions: Most forums lump Blazor Server and Blazor WASM together Hmmm, there are more than two... Blazor Server Static, Blazor Server Interactive, Blazor WebAssembly/WASM, Blazor Auto (Server + WASM), Blazor Hybrid (WinForm, WPF, Analonia, MAUI) ... Then there is StreamRendering...
  • Plugin development for beyond trust platform in .net.

    csharp question
    3
    0 Votes
    3 Posts
    97 Views
    S
    You don’t build plugins directly for BeyondTrust, you just talk to it through the REST API. In .NET it’s as simple as an HttpClient call with the API key: var client = new HttpClient { BaseAddress = new Uri("https://your-url/api/public/v3/") }; client.DefaultRequestHeaders.Add("Authorization", "PS-Auth key=API_KEY; runas=API_USER;"); var res = await client.GetStringAsync("users"); Console.WriteLine(res); Swap "users" with "accounts", "sessions", etc. depending on what you need.
  • 0 Votes
    1 Posts
    29 Views
    No one has replied
  • .net core vs .net framework

    dotnet csharp asp-net visual-studio performance
    2
    0 Votes
    2 Posts
    86 Views
    F
    When comparing .NET Core and .NET Framework, it is essential to consider various factors such as performance, cross-platform support, deployment options, and future-proofing. Here’s a detailed comparison between the two to help you decide which is best for your needs: 1. Performance .NET Core: Generally faster and more efficient than .NET Framework. Microsoft has made significant performance improvements in .NET Core, especially in areas like server-side web applications and microservices. Kestrel, the web server in .NET Core, is highly optimized for performance, especially in handling asynchronous operations and modern hardware architectures. Garbage Collection (GC) and JIT (Just-In-Time) compilation have been improved in .NET Core to reduce latency and improve throughput. Supports tiered compilation, which optimizes hot paths of code over time for better performance. .NET Framework: Performance is generally good for most traditional desktop and enterprise applications. However, it lacks many of the modern performance optimizations found in .NET Core. The web server in .NET Framework, IIS, is more mature but not as optimized for high-performance scenarios, especially compared to Kestrel in .NET Core. Verdict: .NET Core offers better performance, especially for web applications, cloud-based services, and applications that require scalability. 2. Cross-Platform Support .NET Core: Cross-platform, meaning it can run on Windows, Linux, and macOS. If you are building applications that need to be deployed across multiple operating systems, .NET Core is the clear choice. .NET Framework: Only runs on Windows. It is tightly integrated with the Windows operating system and is not portable across other platforms. Verdict: If you need cross-platform support, .NET Core is the way to go. 3. Application Types .NET Core: Ideal for building web applications (ASP.NET Core), microservices, cloud-native apps, console apps, cross-platform libraries, and high-performance APIs. It supports modern development practices like Docker containers, Kubernetes, and serverless architectures. Does not fully support desktop applications like Windows Forms or WPF (though .NET Core 3.1 and .NET 5+ added partial support). .NET Framework: Best suited for Windows-specific applications, especially legacy desktop applications built with WPF or Windows Forms. If you are working with older enterprise applications that require compatibility with Windows-only technologies like COM, WCF, or Windows Services, .NET Framewor
  • whatsapp otp

    csharp asp-net linq
    3
    0 Votes
    3 Posts
    74 Views
    F
    To implement sending WhatsApp OTP for TOTP (Time-based One-Time Password) in ASP.NET using LINQ operations, you'll need to: 1. Generate TOTP: Use a library that supports TOTP generation. 2. Send the OTP to WhatsApp: You can use services like Twilio, Vonage, or WhatsApp Business API to send messages via WhatsApp. 3. Verify the OTP: Store and verify the TOTP against the user input.
  • How does "Practice Mode" in Geometry Dash help players?

    com game-dev help question
    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • Gantt chart for management app c# Windows Forms

    csharp winforms help question
    3
    0 Votes
    3 Posts
    61 Views
    pkfoxP
    So you want someone else to pass the exam for you ? In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
  • Can anyone recommend a tool to...

    csharp debugging tutorial question
    4
    0 Votes
    4 Posts
    84 Views
    M
    To diagnose which DLL is unable to be loaded by a subject DLL, especially in a .NET context, you can utilize several tools and methods: Dependency Walker **Tool**: Dependency Walker (depends.exe) **Usage**: This tool analyzes the dependencies of a DLL and can help you see which DLLs are missing or failing to load. It provides a detailed tree view of all dependencies, showing the status of each one. **Steps**: Download Dependency Walker from [dependencywalker.com](http://www.dependencywalker.com/). Open your subject DLL with Dependency Walker. Check for any missing or red-colored entries in the tree. Process Monitor (ProcMon) **Tool**: Process Monitor (part of Sysinternals Suite) **Usage**: ProcMon allows you to capture real-time file system, registry, and process/thread activity. This can help you see which DLLs are being accessed and which ones are failing to load. **Steps**: Download and run Process Monitor from [Microsoft Sysinternals](https://docs.microsoft.com/en-us/sysinternals/downloads/procmon). Set a filter for your application (use the process name). Look for "NAME NOT FOUND" or "DLL NOT FOUND" events, which indicate that a specific DLL could not be loaded. 3. **Fusion Log Viewer** **Tool**: Fusion Log Viewer (Fuslogvw.exe) **Usage**: This tool logs assembly binding failures, which can be particularly useful for .NET applications to determine why a specific assembly (DLL) failed to load. **Steps**: Open the Developer Command Prompt for Visual Studio. Run `fuslogvw.exe`. Enable logging and reproduce the issue. Check the logs for any binding errors or issues related to your subject DLL. 4. **.NET Assembly Binding Logging** If the subject DLL is a .NET assembly, you can enable assembly binding logging in the registry: **Steps**: Open `regedit`. Navigate to `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion`. Create a new DWORD value named `ForceLog` and set it to `1`. Create a new DWORD value named `LogPath` and set it to a directory where you want the logs saved. Reproduce the issue, and check the logs in the specified directory. 5. **Debugging with Visual Studio** If you have the source code for the .NET application, you can attach the debugger to your application and set breakpoints around the P/Invoke calls. Check for exceptions thrown during the load process. The exception messages can often provide insight into what went wrong. *Using LoadLibraryE
  • travelshook

    1
    0 Votes
    1 Posts
    18 Views
    No one has replied
  • What are Smart Hemp Gummies?

    php com json help question
    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • Smart Hemp Gummies Scam & Cost | Where Can I Buy?

    php com json help question
    1
    0 Votes
    1 Posts
    23 Views
    No one has replied
  • Advice on a product to convert PDF to TIFF or JPEG.

    question
    5
    0 Votes
    5 Posts
    59 Views
    V
    For converting PDFs to TIFF or JPEG, consider using Adobe Acrobat Pro DC. It's a reliable tool offering high-quality conversions and additional features like batch processing, OCR, and extensive format support. Alternatively, online tools like Smallpdf or Zamzar provide quick and easy conversions without needing software installation. These solutions ensure accurate and efficient PDF to image conversions. MUST VISIT- REACT NATIVE CLASSROOM TRAINING IN BANGALORE BEST REACT JS TRAINING WITH PYTHON IN BANGALORE
  • Pain O Soma 500mg Treat Skeletal Muscle Pain Relaxation :-

    com
    1
    0 Votes
    1 Posts
    27 Views
    No one has replied
  • C#, WPF project

    csharp wpf testing tools question
    5
    0 Votes
    5 Posts
    77 Views
    W
    To automate the creation of a Pitchbook by selecting specific slides from various reports in your Report Automation (RA) tool, you can follow these steps. Since your tool is created in WPF with C# code, the process involves manipulating PowerPoint slides programmatically. Here is a high-level approach: Install Required Libraries: Use a library like Open XML SDK or Microsoft PowerPoint Interop to manipulate PowerPoint presentations. For this example, I will use Open XML SDK. Extract Slides from Existing Reports: Write a method to extract the desired slides from the existing PowerPoint presentations generated by your RA tool. Create a New Pitchbook: Write a method to create a new PowerPoint presentation and add the extracted slides to it. Example Implementation Step 1: Install Open XML SDK You can install the Open XML SDK via NuGet Package Manager in Visual Studio: bash Copy code Install-Package DocumentFormat.OpenXml Step 2: Extract and Combine Slides Here’s a basic example of how you can achieve this: csharp Copy code using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Presentation; using System; using System.Linq; public class PitchbookCreator { public void CreatePitchbook(string[] sourceFiles, int[][] slideIndices, string outputFilePath) { // Create a new presentation document using (PresentationDocument newPresentation = PresentationDocument.Create(outputFilePath, DocumentFormat.OpenXml.PresentationDocumentType.Presentation)) { // Add a new presentation part to the presentation document PresentationPart presentationPart = newPresentation.AddPresentationPart(); presentationPart.Presentation = new Presentation(); SlideIdList slideIdList = new SlideIdList(); for (int i = 0; i < sourceFiles.Length; i++) { using (PresentationDocument sourceDocument = PresentationDocument.Open(sourceFiles\[i\], false)) { PresentationPart sourcePart = sourceDocument.PresentationPart; int slideIndex = 256 + i; foreach (int index in slideIndices\[i\]) { SlidePart slidePart = (SlidePart)sourcePart.GetPartById(sourcePart.Presentation.SlideIdList.ChildElements\[index\].GetAttribute("id", "").Value); SlidePart newSlidePart = presentationPart.AddNewPart(); newSlidePart.FeedDa
  • 0 Votes
    1 Posts
    18 Views
    No one has replied
  • 0 Votes
    1 Posts
    29 Views
    No one has replied
  • 0 Votes
    2 Posts
    45 Views
    M
    Hey everyone! We’ve got a new mod menu app for Mobile Legends: Bang Bang that can help you out. It’s called “NP Modz” and “Naruto PH Modz”. You np modz can grab the APK file from our site. Stick around to learn more about this app and what it can do.
  • np Modz

    android com help
    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • dotNET event in Madrid

    csharp com collaboration tools question
    1
    0 Votes
    1 Posts
    26 Views
    No one has replied
  • 0 Votes
    1 Posts
    19 Views
    No one has replied