.net core
106 TopicsConnection between .NET and AUTOCAD ELECTRICAL
I want to connect .NET with Autocad Electrical . i am using , AutoCAD Electrical 2025.0.2 , Product Version : 22.0.81.0 , Built on: V.154.0.0 AutoCAD 2025.1.1 Visual Studio Community 2022 - 17.12.3 my system is x64 bit 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. 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."); } } } 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)." and i am getting below error : 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.' dll path is also correct. i also tried same code with .NET Framework 4.7.2 and 4.8 targeting pack , but getting same error. How to load accoremgd.dll properly so that this application can use autocad accoremgd functions properly.82Views0likes1Comment.Net 8 Isolated upgrade issue- RPC Exceptions in .Net Core Function App
Hi Team, Need Immediate help. 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. Scenario: We are creating builder with ConfigureFunctionsWebApplication() like below: 1. var builder = FunctionsApplication.CreateBuilder(args); 2. builder.ConfigureFunctionsWebApplication(); 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: 1. An exception was thrown by the invocation. Exception: System.TimeoutException: Timed out waiting for the function start call. 2. The operation has timed out at Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.DefaultHttpCoordinator.SetFunctionContextAsync(String invocationId, FunctionContext context) 3.Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.DefaultHttpCoordinator.SetFunctionContextAsync(String invocationId, FunctionContext context) 4. 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 at Microsoft.Azure.Functions.Worker.FunctionsApplication.InvokeFunctionAsync(FunctionContext context) in D:\a\_work\1\s\src\DotNetWorker.Core\FunctionsApplication.cs:line 96 Stack: 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 5. 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 at Microsoft.Azure.Functions.Worker.FunctionsApplication.InvokeFunctionAsync(FunctionContext context) in D:\a\_work\1\s\src\DotNetWorker.Core\FunctionsApplication.cs:line 9646Views0likes0CommentsDotnet core Oracle 23c SSL connection not working on Linux environment and works on Windows
Our data direct ADO.NET oracle driver is having an issue with SSL connection on Linux platform and the same connection is working on windows environment with Oracle23c server. Are there any known limitations with dotnet core on linux environment with SSL/TLS connections. Trace : InnerException: System.IO.IOException Message: Unable to read data from the transport connection: Connection reset by peer. Source: System.Net.Sockets Stack Trace at System.Net.Sockets.NetworkStream.Read(Span`1 buffer) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](TIOAdapter adapter) at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory`1 buffer) at System.Net.Security.SslStream.Read(Byte[] buffer, Int32 offset, Int32 count) The same application works on Windows environment.327Views0likes3Comments๐ Kickstart Your .NET Journey with Microsoft Learn!
Hey .NET enthusiasts! 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. What you'll learn: The basics of .NET and why it's powerful How .NET supports multiple platforms Running your first .NET application Start learning here: Microsoft Learn Introduction to .NET Have you used .NET in your projects? Share your experiences and letโs discuss below!36Views0likes0Comments[Suggestion 1][Allow Language Selection During .NET Installation]
Hi, 1. Context: Currently, when installing the .NET SDK or runtime, multiple language resource folders are automatically included in the installation directory. 2. Problem: Many developers only require a single language, typically English and the additional localization files take up unnecessary disk space and clutter the installation directory. Currently, the installer does not provide an option to select which languages should be installed. Removing these manually is time-consuming and could potentially break application dependencies if done incorrectly. 3. Proposed Solution: Introduce an option in the .NET installer that allows users to select or deselect language packs during installation. 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. This would help: Reduce disk space usage. Improve installation customization. Provide a cleaner development environment. 4. What do you think about this suggestion ? Thank you for considering this request and Iโm happy to provide additional details or insights if needed.46Views0likes0Commentsfeature request:ย please add liblibgdiplus packages to DOTNET .. (linux)
feature request: please add liblibgdiplus packages (deb,rpm) to dotnet 9.xx description Libgdiplus is the Mono library that provides a GDI+-compatible API on non-Windows operating systems. need it to run .NET code on linux.. i know, most linux flavors provide a liblibgdiplus package, but adding it to dotnet prevents issues with running dotnet.. Andrรฉ30Views0likes0Comments[Korean] Let's Learn .NET - Generative AI
Learn about AI, how to get started, and using ChatGPT to improve text completions. Come to learn something new and leave with something that we all built, together, live with experts! Acknowledement: This content is live-streaming in Korean. Community Link: https://aka.ms/letslearn/dotnet/ai Featuring: Justin Yoo (@justinchronicle), Nayeon Kim, Piljoo Kwak #AI #dotNET #ChatGPT194Views0likes0CommentsLet's Learn .NET - Generative AI
Learn about AI, how to get started, and using ChatGPT to improve text completions. Come to learn something new and leave with something that we all built, together, live with experts! Community Links: https://aka.ms/letslearn/dotnet/ai Featuring: Gomolemo Mohapi (@GomoMohapi), Lebogang Madise #AI #dotNET #ChatGPT365Views0likes0CommentsOn .NET Live - Exploring Oqtane for Blazor and .NET MAUI
Oqtane is an open-source CMS and application framework that provides advanced functionality for developing web, mobile, and desktop applications on .NET. In this week's episode, MVP Shaun Walker join us to show how Oqtane leverages Blazor to compose a fully dynamic digital experience that can be hosted on Blazor Server, Blazor WebAssembly, or Blazor Hybrid. Featuring: Shaun Walker #blazor #maui975Views0likes0CommentsOn .NET Live - Exploring the Uncommon Path: Using Neovim for C# and the creation of Dumpify
What's your favorite IDE? Is it Visual Studio or VS Code? Maybe Rider? What if we told you there were C# developers who preferred Vim? In this week's episode, Microsoft employee and former community MVP Moaid Hathot joins the panel to show us how using Neovim as his IDE led him to create Dumpify. Featuring: Moaid Hathot (@MoaidHathot), Cam Soper (@CamSoper) #ide #cli2.2KViews0likes0Comments