Forum Widgets
Latest Discussions
.NET runtime issues - application not starting up
Hello, We have a .NET based application built using the .NET framework 8.0. The application runtimeconfig.json file shows this: MyApp.runtimeconfig.json "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.WindowsDesktop.App", "version": "8.0.0" } ], Please note that we have Published the application and verified that only .NET version 8.0.16 components, DLLs etc are required. Anything higher than this does not show up. From the cmd prompt, the following runtimes are shown to be installed on the system: >dotnet --list-runtimes Microsoft.AspNetCore.App 8.0.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] However, when we try to start a Windows service which is installed as part of the application, it does not start up, and the Windows Event Viewer shows the following error: "Description: A .NET application failed. Application: MyAppControllerService.exe Path: C:\MyApp\MyAppControllerService.exe Message: You must install or update .NET to run this application. App: C:\MyApp\MyAppControllerService.exe Architecture: x64 Framework: 'Microsoft.NETCore.App', version '8.0.21' (x64) .NET location: C:\Program Files\dotnet\ The following frameworks were found: 8.0.20 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Learn more: https://aka.ms/dotnet/app-launch-failed To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.21&arch=x64&rid=win-x64&os=win10" So, the issue is, even with Microsoft.WindowsDesktop.App 8.0.20 being installed on the system, it still asks for the .NET 8.0 Runtime (v8.0.21) to be installed. Please let me know why this is so? Since, as per this: https://learn.microsoft.com/en-us/dotnet/core/install/windows .NET Desktop Runtime includes the .NET runtime as well, and Microsoft.WindowsDesktop.App 8.0.20 is installed. Thanks in advance, JYJY_2013Nov 03, 2025Copper Contributor66Views0likes0CommentsHow to respond to upgrade-assistant cli prompts?
Bear with me please, I have not touched this stuff in a few years. Trying to upgrade Xamarin project to .Net Maui using CLI (latest version of VS 2022 cannot find the Upgrade assistant extension). I have downloaded the upgrade-assistant, but am not familiar with how to reply\how to make a selection of what is displayed after I enter "upgrade-assistant upgrade project-name" (it does not execute and instead displays information...see attached image). Is what is being display telling me that I need to ctrl-c out of this and re-enter the command using what they are showing? Please give me an example of using the Side-by-side upgrade. Is is also telling me that I need to do something with NuGet also on the command line? Thanks.comcastnet1935Nov 02, 2025Copper Contributor39Views0likes0Commentsdotnet on linux - Signing key on ... is not bound
dotnet on linux gpg key not working.... Warning: https://packages.microsoft.com/ubuntu/25.04/prod/dists/plucky/InRelease: Policy will reject signature wi thin a year, see --audit for details Controle: https://packages.microsoft.com/ubuntu/25.04/prod/dists/plucky/InRelease: Sub-process /usr/bin/sqv returned a n error code (1), error message is: Signing key on BC528686B50D79E339D3721CEB3E94ADBE1229CF is not bound: No binding signature at time 2025-09-12T15:59:00Z because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance because: SHA1 is not considered secure since 2026-02-01T00:00:00ZDutchglorySep 16, 2025Copper Contributor41Views0likes0CommentsWont install Framework ect automaticly ???
I have an app/program (an EXE-file) I made way back when King of Spade was a Knight and I've used it for years on Windows 10 where it automaticly downloaded and installed the dependencies ! Now I run it under Windows 11 ... it just DON'T ! I know I SHOULD go back and make an "install package" but isn't there a 'Work-Around' ?keldsorAug 15, 2025Brass Contributor130Views1like4CommentsTrying to add new Type to Dotnet Runtime from github
Hi I'm trying to modify the .NET runtime from github.com/dotnet/runtime. I created a copy of the Dictionary class called Dictionary2 in these source code files: C:\rt5\src\libraries\System.Collections\ref\System.Collections.cs C:\rt5\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs When I use dot peek from Jetbrains, Dictionary2 exists in my System.Collections.dll, but when I import System.Collections.dll in my main console C# application, Dictionary2 gives me compiler errors. Am, I missing some code somewhere? Can you guys help me out here? Thanks!Erik343Jul 27, 2025Copper Contributor124Views4likes2CommentsDo I need to upgrade Microsoft.AspNetCore.* NuGet packages after upgrading the .NET Runtime?
Hi, I'm encountering an issue with our SCA (Software Composition Analysis) scan, which reports several known vulnerabilities in .NET Core components. Specifically, the scan detects that the following packages are still on version 8.0.0, which are flagged as vulnerable: Microsoft.AspNetCore.Authorization Microsoft.AspNetCore.Components Microsoft.AspNetCore.Http.Connections.Client Microsoft.AspNetCore.SignalR.Client The scanner recommends upgrading these packages to version 8.0.15 to resolve the issues. To address this, I upgraded the .NET Runtime on our environment to version 8.0.15. However, the SCA scan still reports the same vulnerabilities, indicating that the vulnerable component versions have not changed. My question is: Do I also need to manually upgrade the corresponding NuGet package versions in the project to 8.0.15, or is upgrading the .NET Runtime alone sufficient to ensure these components are updated as well? Any clarification would be appreciated. Thank you!MahaauDJul 09, 2025Copper Contributor122Views0likes1CommentCan't able to Upload Images on Azure Server if it is more than 128KB
Hi Everyone , I am trying to upload image and store but when i do it in my local server its working fine but when i push the same code in server i am getting entity too large I reached out microsoft support they are telling that "The content type format is supposed to be image as example given to upload the image file otherwise the application gateway will not understand the image and tries to accept only 128KB which is why the request is not accepted with Application Gateway. " when i am debugging i am getting same content type = image/jpeg . Code snippet for storing private void SaveImage(int vendItemID) { try { string folderPath = @"C:\UploadedImages\"; Directory.CreateDirectory(folderPath); string fileExtension = Path.GetExtension(fileUpload.FileName).ToLower(); string fileName = Path.GetFileNameWithoutExtension(fileUpload.FileName); string newImageName = string.Empty; dbCon.Server = "***"; dbCon.OpenConnection(); // Optimize and compress the image byte[] optimizedImageBytes = CompressImageToTargetSize(fileUpload.PostedFile.InputStream, fileExtension); // Convert to Base64 string base64String = Convert.ToBase64String(optimizedImageBytes); using (SqlCommand cmd = new SqlCommand("***", dbCon.Cnn)) { cmd.CommandType = CommandType.StoredProcedure; AddImageParameters(cmd, vendItemID, fileName, fileExtension); cmd.Parameters.AddWithValue("@ImageBase64", base64String); var outputCodeParam = new SqlParameter("@ImageNewName", SqlDbType.NVarChar, 200) { Direction = ParameterDirection.Output }; cmd.Parameters.Add(outputCodeParam); cmd.ExecuteNonQuery(); newImageName = outputCodeParam.Value.ToString(); } string newFilePath = Path.Combine(folderPath, newImageName); File.WriteAllBytes(newFilePath, optimizedImageBytes); UpdateImagePath(newImageName, newFilePath); } catch (Exception ex) { ShowMessage("Error while saving image: " + ex.Message, Color.Red); LogError("Image save failed", ex); throw; } finally { dbCon.CloseConnection(); } } I also try to compress and change it to base 64 but its not working. Kindly assist on what steps i need to take. Thanks, Shahid Note :WebForm i m working on .Shahid_MAJun 13, 2025Copper Contributor99Views0likes1CommentBest Way to Fill ACORD 23 Vehicle Insurance Certificates on Windows – Any Recommended Tools?
I frequently deal with insurance documentation and recently had to work with the ACORD 23 Vehicle Insurance Certificate. I’ve been using Windows 11 and was looking for the most efficient way to fill, edit, and save these forms digitally without printing them out. While browsing, I found AcordForm – it lets you view and understand various ACORD forms like the 23, 25, and more. It’s been helpful for referencing and understanding the format. However, I’d love some advice from the community: What’s the best Microsoft-supported tool for filling out ACORD PDF forms? Is Microsoft Edge’s PDF editor reliable enough, or should I be using Microsoft Word with PDF add-ins? Any integration tips with OneDrive or SharePoint for document storage?. Thanks in advancebu8sh723Jun 04, 2025Copper Contributor68Views0likes0CommentsEsporto in excel un report DataReport
mi segnala questo errore se esporto in Excel il report o in qualsiasi altro tipoLelicaApr 28, 2025Copper Contributor59Views0likes0CommentsUsing late binding to run AdvancedSearch in Outlook in .NET8?
I'm trying to use the AdvancedSearch feature from Outlook in my .NET 8 application, but I haven't been able to make it work. I'm currently using Restrict when I need to filter by a specific sender or by date. However, I need more advanced filtering options — for example, checking if the subject contains a specific word. I could use a loop to do this after retrieving the results with Restrict, but it's very slow. It seems like AdvancedSearch would be a better option, but I'm getting an error when I try to run the search. Below is an example of my code, although I've tried many variations. If anyone can share a working example, that would be really helpful. Thanks in advance! string searchTag = "BuscaOutlook"; string searchScope = "'\\Caixa de Entrada'"; filter = "@SQL=\"urn:schemas:httpmail:subject\" LIKE '%orcamento%' AND \"urn:schemas:httpmail:datereceived\" >= '2024-04-01 00:00:00'"; try { dynamic searchb = outlookApp.AdvancedSearch(searchScope, filter, true, searchTag); } catch (Exception ex) { MessageBox.Show("Erro no AdvancedSearch:\n" + ex.Message); return; }WindersonApr 25, 2025Copper Contributor98Views1like1Comment
Resources
Tags
- .net122 Topics
- .NET Framework99 Topics
- .net core81 Topics
- accessibility1 Topic
- community1 Topic