<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>.NET Runtime topics</title>
    <link>https://techcommunity.microsoft.com/t5/net-runtime/bd-p/dotnet-runtime</link>
    <description>.NET Runtime topics</description>
    <pubDate>Thu, 16 Apr 2026 12:59:26 GMT</pubDate>
    <dc:creator>dotnet-runtime</dc:creator>
    <dc:date>2026-04-16T12:59:26Z</dc:date>
    <item>
      <title>MSB4184: The expression "[System.IO.Path]::GetDirectoryName('')" cannot be evaluate</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/msb4184-the-expression-quot-system-io-path-getdirectoryname-quot/m-p/4485586#M781</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi got this error now after I updated my VS IDE ....&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The path is not of a legal form. WinFormsSQLExamplePro C:\Program Files\dotnet\sdk\10.0.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Windows.targets&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;_WinRTRuntimeDllDirectory&amp;gt;$([System.IO.Path]::GetDirectoryName('%(_WinRTRuntimeDllReferencePath.FullPath)'))&amp;lt;/_WinRTRuntimeDllDirectory&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;_CsWinRTOrTargetingPackLibDirectory&amp;gt;$([System.IO.Path]::GetDirectoryName('$(_WinRTRuntimeDllDirectory)'))&amp;lt;/_CsWinRTOrTargetingPackLibDirectory&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the top most path entry contains a&lt;STRONG&gt; '%' &lt;/STRONG&gt;character , whereas the 2nd path contains a &lt;STRONG&gt;'$'&lt;/STRONG&gt; character...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what is going on ... (happened after VS update)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 10:17:48 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/msb4184-the-expression-quot-system-io-path-getdirectoryname-quot/m-p/4485586#M781</guid>
      <dc:creator>PieterClaassens</dc:creator>
      <dc:date>2026-01-14T10:17:48Z</dc:date>
    </item>
    <item>
      <title>Edm Model Generation Fails</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/edm-model-generation-fails/m-p/4484134#M780</link>
      <description>&lt;P&gt;Using an Azure ASP.NET MVC API from a Maui app, I am encountering the following error in the app when attempting to access the API. A few days ago, the initalization was working properly. The cloud app has been under further development, but the base api code has not been modified, only the response from the endpoints. The latest release NuGets are in use. What elements are being sought?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang=""&gt;System.TypeInitializationException: The type initializer for 'GeneratedEdmModel' threw an exception.
 ---&amp;gt; System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at SentryCloud.Models.Container.GeneratedEdmModel.CreateXmlReader()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 14:51:21 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/edm-model-generation-fails/m-p/4484134#M780</guid>
      <dc:creator>AlaskanRogue</dc:creator>
      <dc:date>2026-01-08T14:51:21Z</dc:date>
    </item>
    <item>
      <title>.NET runtime issues - application not starting up</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/net-runtime-issues-application-not-starting-up/m-p/4466585#M773</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have a .NET based application built using the .NET framework 8.0. The application runtimeconfig.json file shows this:&lt;BR /&gt;MyApp.runtimeconfig.json&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "tfm": "net8.0",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "frameworks": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "name": "Microsoft.NETCore.App",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "version": "8.0.0"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "name": "Microsoft.WindowsDesktop.App",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "version": "8.0.0"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ],&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;From the cmd prompt, the following runtimes are shown to be installed on the system:&lt;BR /&gt;&amp;gt;dotnet --list-runtimes&lt;BR /&gt;Microsoft.AspNetCore.App 8.0.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]&lt;BR /&gt;Microsoft.NETCore.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]&lt;BR /&gt;Microsoft.WindowsDesktop.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]&lt;/P&gt;&lt;P&gt;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:&lt;BR /&gt;"Description: A .NET application failed.&lt;BR /&gt;Application: MyAppControllerService.exe&lt;BR /&gt;Path: C:\MyApp\MyAppControllerService.exe&lt;BR /&gt;Message: You must install or update .NET to run this application.&lt;/P&gt;&lt;P&gt;App: C:\MyApp\MyAppControllerService.exe&lt;BR /&gt;Architecture: x64&lt;BR /&gt;Framework: 'Microsoft.NETCore.App', version '8.0.21' (x64)&lt;BR /&gt;.NET location: C:\Program Files\dotnet\&lt;/P&gt;&lt;P&gt;The following frameworks were found:&lt;BR /&gt;&amp;nbsp; 8.0.20 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]&lt;/P&gt;&lt;P&gt;Learn more:&lt;BR /&gt;https://aka.ms/dotnet/app-launch-failed&lt;/P&gt;&lt;P&gt;To install missing framework, download:&lt;BR /&gt;https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&amp;amp;framework_version=8.0.21&amp;amp;arch=x64&amp;amp;rid=win-x64&amp;amp;os=win10"&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;Since, as per this:&lt;BR /&gt;https://learn.microsoft.com/en-us/dotnet/core/install/windows&lt;/P&gt;&lt;P&gt;.NET Desktop Runtime includes the .NET runtime as well, and Microsoft.WindowsDesktop.App 8.0.20 is installed.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;JY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 11:28:20 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/net-runtime-issues-application-not-starting-up/m-p/4466585#M773</guid>
      <dc:creator>JY_2013</dc:creator>
      <dc:date>2025-11-03T11:28:20Z</dc:date>
    </item>
    <item>
      <title>How to respond to upgrade-assistant cli prompts?</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/how-to-respond-to-upgrade-assistant-cli-prompts/m-p/4466364#M772</link>
      <description>&lt;P&gt;Bear with me please, I have not touched this stuff in a few years.&amp;nbsp; Trying to upgrade Xamarin project to .Net Maui using CLI (latest version of VS 2022 cannot find the Upgrade assistant extension).&amp;nbsp; 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).&amp;nbsp; 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?&amp;nbsp; Please give me an example of using the Side-by-side upgrade.&amp;nbsp; Is is also telling me that I need to do something with NuGet also on the command line?&amp;nbsp; Thanks.&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Nov 2025 21:21:41 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/how-to-respond-to-upgrade-assistant-cli-prompts/m-p/4466364#M772</guid>
      <dc:creator>comcastnet1935</dc:creator>
      <dc:date>2025-11-02T21:21:41Z</dc:date>
    </item>
    <item>
      <title>dotnet on linux - Signing key on ... is not bound</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/dotnet-on-linux-signing-key-on-is-not-bound/m-p/4454321#M768</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dotnet on linux&amp;nbsp; gpg key not working....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warning: https://packages.microsoft.com/ubuntu/25.04/prod/dists/plucky/InRelease: Policy will reject signature wi&lt;BR /&gt;thin a year, see --audit for details&lt;BR /&gt;Controle: https://packages.microsoft.com/ubuntu/25.04/prod/dists/plucky/InRelease: Sub-process /usr/bin/sqv returned a&lt;BR /&gt;n error code (1), error message is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Signing key on BC528686B50D79E339D3721CEB3E94ADBE1229CF is not bound:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;No binding signature at time 2025-09-12T15:59:00Z&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;because: SHA1 is not considered secure since 2026-02-01T00:00:00Z&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 02:12:23 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/dotnet-on-linux-signing-key-on-is-not-bound/m-p/4454321#M768</guid>
      <dc:creator>Dutchglory</dc:creator>
      <dc:date>2025-09-16T02:12:23Z</dc:date>
    </item>
    <item>
      <title>Wont install Framework ect automaticly ???</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/wont-install-framework-ect-automaticly/m-p/4444195#M759</link>
      <description>&lt;P&gt;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 !&lt;/P&gt;&lt;P&gt;Now I run it under Windows 11 ... it just DON'T !&lt;/P&gt;&lt;P&gt;I know I SHOULD go back and make an "install package" but isn't there a 'Work-Around' ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 13:38:17 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/wont-install-framework-ect-automaticly/m-p/4444195#M759</guid>
      <dc:creator>keldsor</dc:creator>
      <dc:date>2025-08-15T13:38:17Z</dc:date>
    </item>
    <item>
      <title>Trying to add new Type to Dotnet Runtime from github</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/trying-to-add-new-type-to-dotnet-runtime-from-github/m-p/4436970#M755</link>
      <description>&lt;P&gt;Hi I'm trying to modify the .NET runtime from github.com/dotnet/runtime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a copy of the Dictionary class called Dictionary2 in these source code files:&lt;/P&gt;&lt;P&gt;C:\rt5\src\libraries\System.Collections\ref\System.Collections.cs&lt;/P&gt;&lt;P&gt;C:\rt5\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Am, I missing some code somewhere?&lt;/P&gt;&lt;P&gt;Can you guys help me out here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2025 19:38:56 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/trying-to-add-new-type-to-dotnet-runtime-from-github/m-p/4436970#M755</guid>
      <dc:creator>Erik343</dc:creator>
      <dc:date>2025-07-27T19:38:56Z</dc:date>
    </item>
    <item>
      <title>Do I need to upgrade Microsoft.AspNetCore.* NuGet packages after upgrading the .NET Runtime?</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/do-i-need-to-upgrade-microsoft-aspnetcore-nuget-packages-after/m-p/4431436#M752</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;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 &lt;STRONG&gt;8.0.0&lt;/STRONG&gt;, which are flagged as vulnerable:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Microsoft.AspNetCore.Authorization&lt;/LI&gt;&lt;LI&gt;Microsoft.AspNetCore.Components&lt;/LI&gt;&lt;LI&gt;Microsoft.AspNetCore.Http.Connections.Client&lt;/LI&gt;&lt;LI&gt;Microsoft.AspNetCore.SignalR.Client&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The scanner recommends upgrading these packages to version &lt;STRONG&gt;8.0.15&lt;/STRONG&gt; to resolve the issues.&lt;/P&gt;&lt;P&gt;To address this, I upgraded the .NET Runtime on our environment to version &lt;STRONG&gt;8.0.15&lt;/STRONG&gt;. However, the SCA scan still reports the same vulnerabilities, indicating that the vulnerable component versions have not changed.&lt;/P&gt;&lt;P&gt;My question is:&lt;BR /&gt;&lt;STRONG&gt;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?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any clarification would be appreciated. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 05:01:49 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/do-i-need-to-upgrade-microsoft-aspnetcore-nuget-packages-after/m-p/4431436#M752</guid>
      <dc:creator>MahaauD</dc:creator>
      <dc:date>2025-07-09T05:01:49Z</dc:date>
    </item>
    <item>
      <title>Can't able to Upload Images on Azure Server if it is more than 128KB</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/can-t-able-to-upload-images-on-azure-server-if-it-is-more-than/m-p/4423541#M742</link>
      <description>&lt;P&gt;Hi Everyone ,&lt;BR /&gt;&lt;BR /&gt;I am trying to upload image and store&amp;nbsp; 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&amp;nbsp; too large&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;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.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;img /&gt;&lt;P&gt;when i am debugging i am getting same content type = image/jpeg .&lt;BR /&gt;Code snippet for storing&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;private void SaveImage(int vendItemID)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string folderPath = @"C:\UploadedImages\";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Directory.CreateDirectory(folderPath);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string fileExtension = Path.GetExtension(fileUpload.FileName).ToLower();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string fileName = Path.GetFileNameWithoutExtension(fileUpload.FileName);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string newImageName = string.Empty;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbCon.Server = "***";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbCon.OpenConnection();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Optimize and compress the image&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] optimizedImageBytes = CompressImageToTargetSize(fileUpload.PostedFile.InputStream, fileExtension);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Convert to Base64&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string base64String = Convert.ToBase64String(optimizedImageBytes);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;using (SqlCommand cmd = new SqlCommand("***", dbCon.Cnn))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.CommandType = CommandType.StoredProcedure;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AddImageParameters(cmd, vendItemID, fileName, fileExtension);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.Parameters.AddWithValue("@ImageBase64", base64String);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var outputCodeParam = new SqlParameter("@ImageNewName", SqlDbType.NVarChar, 200)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ Direction = ParameterDirection.Output };&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.Parameters.Add(outputCodeParam);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.ExecuteNonQuery();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;newImageName = outputCodeParam.Value.ToString();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string newFilePath = Path.Combine(folderPath, newImageName);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;File.WriteAllBytes(newFilePath, optimizedImageBytes);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UpdateImagePath(newImageName, newFilePath);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception ex)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ShowMessage("Error while saving image: " + ex.Message, Color.Red);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LogError("Image save failed", ex);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;throw;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;finally&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbCon.CloseConnection();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;I also try to compress and change it to base 64 but its not working.&lt;BR /&gt;&lt;BR /&gt;Kindly assist on what steps i need to take.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shahid&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Note :WebForm i m working on .&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 07:17:54 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/can-t-able-to-upload-images-on-azure-server-if-it-is-more-than/m-p/4423541#M742</guid>
      <dc:creator>Shahid_MA</dc:creator>
      <dc:date>2025-06-13T07:17:54Z</dc:date>
    </item>
    <item>
      <title>Best Way to Fill ACORD 23 Vehicle Insurance Certificates on Windows – Any Recommended Tools?</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/best-way-to-fill-acord-23-vehicle-insurance-certificates-on/m-p/4420499#M741</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;While browsing, I found AcordForm&amp;nbsp;– 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.&lt;/P&gt;&lt;P&gt;However, I’d love some advice from the community:&lt;/P&gt;&lt;P&gt;What’s the best Microsoft-supported tool for filling out ACORD PDF forms?&lt;/P&gt;&lt;P&gt;Is Microsoft Edge’s PDF editor reliable enough, or should I be using Microsoft Word with PDF add-ins?&lt;/P&gt;&lt;P&gt;Any integration tips with OneDrive or SharePoint for document storage?.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:19:59 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/best-way-to-fill-acord-23-vehicle-insurance-certificates-on/m-p/4420499#M741</guid>
      <dc:creator>bu8sh723</dc:creator>
      <dc:date>2025-06-04T11:19:59Z</dc:date>
    </item>
    <item>
      <title>Esporto in excel un report DataReport</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/esporto-in-excel-un-report-datareport/m-p/4408713#M734</link>
      <description>&lt;P&gt;mi segnala questo errore se esporto in Excel il report o in qualsiasi altro tipo&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 13:33:26 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/esporto-in-excel-un-report-datareport/m-p/4408713#M734</guid>
      <dc:creator>Lelica</dc:creator>
      <dc:date>2025-04-28T13:33:26Z</dc:date>
    </item>
    <item>
      <title>Using late binding to run AdvancedSearch in Outlook in .NET8?</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/using-late-binding-to-run-advancedsearch-in-outlook-in-net8/m-p/4408024#M733</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string searchTag = "BuscaOutlook";
string searchScope = "'\\Caixa de Entrada'";
filter = "@SQL=\"urn:schemas:httpmail:subject\" LIKE '%orcamento%' AND \"urn:schemas:httpmail:datereceived\" &amp;gt;= '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;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 12:22:31 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/using-late-binding-to-run-advancedsearch-in-outlook-in-net8/m-p/4408024#M733</guid>
      <dc:creator>Winderson</dc:creator>
      <dc:date>2025-04-25T12:22:31Z</dc:date>
    </item>
    <item>
      <title>AacAmbientLighting.exe Issue</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/aacambientlighting-exe-issue/m-p/4404483#M732</link>
      <description>&lt;P&gt;Hi, I'm not sure if this is an appropriate place to post this, please do let me know if not.&lt;/P&gt;&lt;P&gt;I have for the last two days been getting the following message popping up on my machine and I can't work out for what reason.&amp;nbsp; I updated my Internet Security during that time, so automatic thought was it was that preventing the files been read, but I've disabled the Internet Security and the error message still crops up&lt;/P&gt;&lt;P&gt;I have also uninstalled and reinstalled Armoury Crate, uninstalling it does take the error away, but that causes other issues and I use ROG hardware.&amp;nbsp; So I kind of need Armoury Crate to be functioning.&lt;/P&gt;&lt;P&gt;This is the error that I'm seeing:&lt;/P&gt;&lt;img /&gt;&lt;P&gt;When I try and install the .Net Runtime software it says that 'the specified account already exists' so I'm a littled confused as to what might be causing the issue and how I can resolve it and keep Armoury Crate on my machine.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 15:11:29 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/aacambientlighting-exe-issue/m-p/4404483#M732</guid>
      <dc:creator>Dontaskmewhy121</dc:creator>
      <dc:date>2025-04-15T15:11:29Z</dc:date>
    </item>
    <item>
      <title>.Net 8 Isolated upgrade issue- RPC Exceptions in .Net Core Function App</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/net-8-isolated-upgrade-issue-rpc-exceptions-in-net-core-function/m-p/4399422#M729</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;STRONG&gt;Need Immediate help.&lt;/STRONG&gt; I am continuously receiving RPC Exceptions when I have upgraded my Function App to .Net 8 previously I had zero exceptions related to this in .Net 6.&amp;nbsp;&lt;BR /&gt;Scenario:&lt;BR /&gt;We are creating builder with ConfigureFunctionsWebApplication() like below:&lt;/P&gt;&lt;P&gt;1. var builder = FunctionsApplication.CreateBuilder(args);&lt;/P&gt;&lt;P&gt;2. builder.ConfigureFunctionsWebApplication();&lt;BR /&gt;&lt;BR /&gt;And basically, we have Http triggers and SB triggers in the application and only couple of them are facing issue and the error in AI states that this is an issue related to worker. I have copied multiple exception wrapped as an RPC exception below:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; An exception was thrown by the invocation.&lt;BR /&gt;Exception: System.TimeoutException: Timed out waiting for the function start call.&lt;BR /&gt;&lt;STRONG&gt;2. &lt;/STRONG&gt;The operation has timed out at Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.DefaultHttpCoordinator.SetFunctionContextAsync(String invocationId, FunctionContext context)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt;Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.DefaultHttpCoordinator.SetFunctionContextAsync(String invocationId, FunctionContext context)&lt;BR /&gt;&lt;STRONG&gt;4. &lt;/STRONG&gt;Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.FunctionsHttpProxyingMiddleware.Invoke(FunctionContext context, FunctionExecutionDelegate next) in D:\a\_work\1\s\extensions\Worker.Extensions.Http.AspNetCore\src\FunctionsMiddleware\FunctionsHttpProxyingMiddleware.cs:line 45&lt;BR /&gt;&amp;nbsp; &amp;nbsp;at Microsoft.Azure.Functions.Worker.FunctionsApplication.InvokeFunctionAsync(FunctionContext context) in D:\a\_work\1\s\src\DotNetWorker.Core\FunctionsApplication.cs:line 96&lt;BR /&gt;Stack: &amp;nbsp; &amp;nbsp;at Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.DefaultHttpCoordinator.SetFunctionContextAsync(String invocationId, FunctionContext context) in D:\a\_work\1\s\extensions\Worker.Extensions.Http.AspNetCore\src\Coordinator\DefaultHttpCoordinator.cs:line 66&lt;BR /&gt;&lt;STRONG&gt;5.&lt;/STRONG&gt; &amp;nbsp;Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.FunctionsHttpProxyingMiddleware.Invoke(FunctionContext context, FunctionExecutionDelegate next) in D:\a\_work\1\s\extensions\Worker.Extensions.Http.AspNetCore\src\FunctionsMiddleware\FunctionsHttpProxyingMiddleware.cs:line 45&lt;BR /&gt;&amp;nbsp; &amp;nbsp;at Microsoft.Azure.Functions.Worker.FunctionsApplication.InvokeFunctionAsync(FunctionContext context) in D:\a\_work\1\s\src\DotNetWorker.Core\FunctionsApplication.cs:line 96&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 05:44:28 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/net-8-isolated-upgrade-issue-rpc-exceptions-in-net-core-function/m-p/4399422#M729</guid>
      <dc:creator>Harshit08121996</dc:creator>
      <dc:date>2025-04-01T05:44:28Z</dc:date>
    </item>
    <item>
      <title>Embedded Json being interpretted incorrectly</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/embedded-json-being-interpretted-incorrectly/m-p/4399232#M726</link>
      <description>&lt;P&gt;I created an API project in .NET 6.0 with an endpoint that accepts a Json request body with Json embedded in one of the attributes of the request. &amp;nbsp;The problem I'm having is that within the embedded Json, one of the values has an escaped double quotes right before an open square bracket, and when the embedded Json is received by the endpoint, the escaped double quote is missing. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of how the end point is being called:POST /DataRequest/MyDataBody:{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "HostName": "my-host-01",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "Job": "some_job",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "JobData": "{\"attr1\":\"value1\",\"attr2\":\"value2\",\"attr3\";\"[val3] foo\"}"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;The issue I see with JobData is that the \"[ after the attr3 definition gets immediately translated to just [. &amp;nbsp;When I say Immediately, I mean that I have a break point on the very first line of the endpoint code and the escaped double quote is already removed from the JobData attribute.So, when I'm looking at the value that was received by the end point, it looks like this:"JobData": "{\"attr1\":\"value1\",\"attr2\":\"value2\",\"attr3\";[val3] foo\"}"&lt;/P&gt;&lt;P&gt;This ends up being invalid Json and causes errors further down in the code. &amp;nbsp;I tried to do some research on this, but it's pretty hard to google something like this and get any sort of answer. &amp;nbsp;I did some experimenting and found that these combinations:\"attr3\":\"\"[val3] foo\" &amp;nbsp; &amp;nbsp; produces &amp;nbsp; &amp;nbsp;"attr3":"[val3] foo"\"attr3\":\" [val3] foo\" &amp;nbsp; &amp;nbsp; &amp;nbsp; produces &amp;nbsp; &amp;nbsp;"attr3":" [val3] foo" &amp;nbsp; &amp;nbsp; &amp;nbsp;(note, there's a space between the escaped double quote and the bracket)It seems like something in the framework is incorrectly assuming that the open bracket is starting a list even though it's got an escaped double quote in front of it. &amp;nbsp;I also found that the sequence ]\" does the same thing on the other end where the escaped double quotes gets dropped in the string.&lt;/P&gt;&lt;P&gt;Is \"[ and ]\" a special case escape that I'm just not aware of? &amp;nbsp;Has anyone else run across this? &amp;nbsp;We've kind of worked around the issue using the space between the escaped double quote and the open bracket, but I was hoping to find out why this happens.&lt;BR /&gt;&lt;BR /&gt;If I'm posting this in the wrong place, please let me know where I should post this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 16:53:32 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/embedded-json-being-interpretted-incorrectly/m-p/4399232#M726</guid>
      <dc:creator>sdhamblet</dc:creator>
      <dc:date>2025-03-31T16:53:32Z</dc:date>
    </item>
    <item>
      <title>🚀 Kickstart Your .NET Journey with Microsoft Learn!</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/kickstart-your-net-journey-with-microsoft-learn/m-p/4385165#M717</link>
      <description>&lt;P&gt;Hey .NET enthusiasts!&lt;/P&gt;&lt;P&gt;Are you new to .NET or looking to refresh your skills? Microsoft Learn has an Introduction to .NET module that walks you through the fundamentals of .NET, .NET Core, and the .NET Framework. This is a free, hands-on learning experience designed to get you started quickly.&lt;/P&gt;&lt;P&gt;What you'll learn:&lt;/P&gt;&lt;P&gt;The basics of .NET and why it's powerful&lt;BR /&gt;How .NET supports multiple platforms&lt;BR /&gt;Running your first .NET application&lt;/P&gt;&lt;P&gt;Start learning here: &lt;A class="lia-external-url" href="https://learn.microsoft.com/training/modules/dotnet-introduction/?wt.mc_id=studentamb_444266" target="_blank"&gt;Microsoft Learn Introduction to .NET&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you used .NET in your projects? Share your experiences and let’s discuss below!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 17:16:35 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/kickstart-your-net-journey-with-microsoft-learn/m-p/4385165#M717</guid>
      <dc:creator>HaseebAhmad</dc:creator>
      <dc:date>2025-02-24T17:16:35Z</dc:date>
    </item>
    <item>
      <title>i want to connect my wp site with DOTNet.</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/i-want-to-connect-my-wp-site-with-dotnet/m-p/4375911#M716</link>
      <description>&lt;P&gt;i want to connect wp website &lt;A class="lia-external-url" href="https://resizepanda.com/" target="_blank"&gt;Resizepanda&lt;/A&gt; witb dotnet framework. Actually the tool operate best with framework, any idea how to handle this?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 12:35:48 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/i-want-to-connect-my-wp-site-with-dotnet/m-p/4375911#M716</guid>
      <dc:creator>Teresa23</dc:creator>
      <dc:date>2025-02-10T12:35:48Z</dc:date>
    </item>
    <item>
      <title>[Suggestion 1][Allow Language Selection During .NET Installation]</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/suggestion-1-allow-language-selection-during-net-installation/m-p/4370562#M714</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;&lt;U&gt;Context&lt;/U&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currently, when installing the .NET SDK or runtime, multiple language resource folders are automatically included in the installation directory.&lt;/P&gt;&lt;img /&gt;&lt;P&gt;2. &lt;STRONG&gt;&lt;U&gt;Problem&lt;/U&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Many developers only require a single language, typically English and the additional localization files take up unnecessary disk space and clutter the installation directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currently, the installer does not provide an option to select which languages should be installed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Removing these manually is time-consuming and could potentially break application dependencies if done incorrectly.&lt;/P&gt;&lt;P&gt;3. &lt;STRONG&gt;&lt;U&gt;Proposed Solution&lt;/U&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Introduce an option in the .NET installer that allows users to select or deselect language packs during installation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This feature could be similar to the "Individual components" selection available in the Visual Studio Installer, where users can choose exactly what they need, ensuring a more streamlined installation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This would help:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reduce disk space usage.&lt;/LI&gt;&lt;LI&gt;Improve installation customization.&lt;/LI&gt;&lt;LI&gt;Provide a cleaner development environment.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;4. &lt;STRONG&gt;What do you think about this suggestion ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you for considering this request and I’m happy to provide additional details or insights if needed.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 08:57:14 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/suggestion-1-allow-language-selection-during-net-installation/m-p/4370562#M714</guid>
      <dc:creator>R0bot</dc:creator>
      <dc:date>2025-01-25T08:57:14Z</dc:date>
    </item>
    <item>
      <title>Connection between .NET and AUTOCAD ELECTRICAL</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/connection-between-net-and-autocad-electrical/m-p/4369363#M713</link>
      <description>&lt;P&gt;I want to connect .NET with Autocad Electrical . i am using ,&lt;/P&gt;&lt;P&gt;AutoCAD Electrical 2025.0.2 , Product Version : 22.0.81.0 , Built on: V.154.0.0 AutoCAD 2025.1.1&lt;/P&gt;&lt;P&gt;Visual Studio Community 2022 - 17.12.3&lt;/P&gt;&lt;P&gt;my system is x64 bit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a console application in .NET 8.0 Runtime with C# language , Added dll accoremgd , acdbmgd, acmgd, Autodesk.AutoCAD.Interop . Also in .NET in Solution Explorer , in project references , i have made "Copy Local" property as False.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using System;
using Autodesk.AutoCAD.Interop;
using Autodesk.AutoCAD.Runtime;
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.ApplicationServices;

namespace AutoCADElecDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            AcadApplication acadApp = null;
            const string progId = "AutoCAD.Application.25"; // Adjust for your AutoCAD version

            try
            {
                // Get a running instance of AutoCAD
                acadApp = GetActiveAutoCAD(progId);
            }
            catch (System.Exception ex)
            {
                Console.WriteLine($"Error initializing AutoCAD: {ex.Message}");
                return;
            }

            try
            {
                // Ensure AutoCAD is visible
                acadApp.Visible = true;
                Console.WriteLine("AutoCAD is now running.");

                // Register for the BeginQuit event
                Application.BeginQuit += OnBeginQuit;

                // Keep the application running to monitor AutoCAD's state
                Console.WriteLine("Press Enter to exit...");
                Console.ReadLine();
            }
            catch (System.Exception ex)
            {
                Console.WriteLine($"An error occurred: {ex.Message}");
            }
            finally
            {
                // Unregister the event handler before exiting
                Application.BeginQuit -= OnBeginQuit;
            }
        }

        static AcadApplication GetActiveAutoCAD(string progId)
        {
            try
            {
                var comObject = Marshal.GetActiveObject(progId);
                Console.WriteLine($"Connected to AutoCAD: {progId}");
                return (AcadApplication)comObject;
            }
            catch (System.Exception ex)
            {
                Console.WriteLine($"Error accessing AutoCAD: {ex.Message}");
                throw;
            }
        }

        static void OnBeginQuit(object sender, EventArgs e)
        {
            Console.WriteLine("AutoCAD is being closed.");
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;For above code, my application comes in break mode "Your app has entered a break state, but no code is currently executing that is supported by the selected debug engine (e.g. only native runtime code is executing)."&lt;/P&gt;&lt;P&gt;and i am getting below error :&amp;nbsp;&lt;BR /&gt;System.IO.FileNotFoundException: 'Could not load file or assembly 'accoremgd, Version=25.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.'&lt;/P&gt;&lt;P&gt;dll path is also correct.&lt;/P&gt;&lt;P&gt;i also tried same code with .NET Framework 4.7.2 and 4.8 targeting pack , but getting same error.&lt;BR /&gt;&lt;BR /&gt;How to load accoremgd.dll properly so that this application can use autocad accoremgd functions properly.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 11:28:27 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/connection-between-net-and-autocad-electrical/m-p/4369363#M713</guid>
      <dc:creator>soubhagya</dc:creator>
      <dc:date>2025-01-22T11:28:27Z</dc:date>
    </item>
    <item>
      <title>Get certificate's public key in the PKCS8 format</title>
      <link>https://techcommunity.microsoft.com/t5/net-runtime/get-certificate-s-public-key-in-the-pkcs8-format/m-p/4366908#M710</link>
      <description>&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;Windows 11 24H2&lt;/P&gt;&lt;P&gt;.Net Framework 4.8, 4.7.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;I do not understand how to get server's certificate public key in PKCS8 format using the X509Certificate class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;P&gt;I'm implementing the custom server's certificate check for SSL connection (aka certificate pinning) in the next way:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a new SSLStream:&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="csharp"&gt;SslStream sslStream = new SslStream(
    client.GetStream(),
    false,
    new RemoteCertificateValidationCallback(ValidateServerCertificate),
    null);&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;Declare the ValidateServerCertificate() method:&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="csharp"&gt;public static bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) {}&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;Get server's certificate public key&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="csharp"&gt;certificate.GetPublicKey()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The public key which I get is in the PKCS1 format and I can't find any function in .Net Framework to get it in the PKCS8 format or to convert from PCKS1 to PKCS8. As a fallback, I'm using the static prefix for the PKCS8 format which works well but is valid only for 2048 bits long public keys:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private static byte[] pkcs8Prefix = { 0x30, 0x82, 0x01, 0x22, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0F, 0x00 };
byte[] pkcs8PublicKey = pkcs8Prefix.Concat(certificate.GetPublicKey()).ToArray();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which function of .Net Framework can I use to get the public key in the PKCS8 format?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 06:53:09 GMT</pubDate>
      <guid>https://techcommunity.microsoft.com/t5/net-runtime/get-certificate-s-public-key-in-the-pkcs8-format/m-p/4366908#M710</guid>
      <dc:creator>Dmitrii</dc:creator>
      <dc:date>2025-01-16T06:53:09Z</dc:date>
    </item>
  </channel>
</rss>

