Forum Widgets
Latest Discussions
Who is using Hot Reload?
I'm digging Hot Reload. Anyone using it? https://www.youtube.com/watch?v=4S3vPzawnoQshanselmanNov 03, 2021Microsoft2.8KViews16likes15Comments.NET Conf 2021 Recap – Videos, Slides, Demos, and More
.NET Conf 2021 was the largest .NET Conf ever with over 80 sessions from speakers around the globe! We want to give a huge THANK YOU to all who tuned in live, asked questions in our Twitter feed, and participated in our fun and games. The learning continues with community-run events happening thru the end of January so make sure to check those out. Also, watch the session replays and keep an eye on our conference GitHub repo where we are collecting all the slides and demos from our presenters. If you participated in .NET Conf 2021, please give us your feedback about the event so we can improve in 2022. On-Demand Recordings We had a lot of awesome sessions from various teams and community experts that showed us all sorts of cool things we can build with .NET across platforms and devices. You can watch all of the sessions right now on the .NET YouTube or the new Microsoft Docs events hub. What were your favorite sessions? Leave them in the comments below! I have so many favorites, but I loved the Productivity talk around Roslyn and AI with Mika: I also recommend the C# 10 session with Mads and Dustin. Explore Slides & Demo Code All of our amazing speakers have been uploading their PowerPoint slide decks, source code, and more on the official .NET Conf 2021 GitHub page. Be sure to head over there to download all of the material from the event and don’t forget you can still grab digital swag as well! .NET Podcasts App We are happy to announce the release of .NET Podcast app, a sample application showcasing .NET 6, ASP.NET Core, Blazor, .NET MAUI, Azure Container Apps, and more from the .NET Conf 2021 keynote! Grab the source code on GitHub and start exploring locally on your machine, or fork the repo and deploy to Azure with GitHub actions in a few easy steps. Launch After Party Q&A on December 16th On December 16, 2021 .NET Conf and Visual Studio 2022 launch event speakers and experts will be LIVE to answer all of your questions. Learn more about the recent launch of Visual Studio 2022 and .NET 6, including tips and tricks, new features with the latest releases, and connect with others in your community. Register for the event today! Local .NET Conf Events The learning continues with community-run events happening thru the end of January, so be sure to find a local event and sign up today!. Thanks again to everyone that made .NET Conf 2021 possible and we can’t wait for even more .NET Conf events in 2022!JamesMontemagnoDec 03, 2021Microsoft7.2KViews6likes3CommentsTrying 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 Contributor74Views4likes2CommentsSystem.Text.Json Source Generators Makes Serialization 40% Faster in ASP.NET!
In this video I looked at how to use Source Generators with System.Text.Json to improve serialization and deserialization performance by up to 40%. We then looked at how we can use this in an ASP.NET application. https://www.youtube.com/watch?v=sRCAwmF2arYRehanSaeedNov 04, 2021Copper Contributor1KViews3likes1Comment.NET 8.0.2 Update Causes ASP.NET Core MVC 'Index View Not Found' Error
Hello everyone, I recently updated to .NET https://github.com/dotnet/core/blob/main/release-notes/8.0/8.0.2/8.0.2.md?WT.mc_id=dotnet-35129-website and encountered an issue with my ASP.NET Core MVC application. After the update, the application began throwing an error related to the 'Index' view not being found. This issue was not present prior to the update. An unhandled exception has occurred while executing the request. System.InvalidOperationException: The view 'Index' was not found. The following locations were searched: /Views/Home/Index.cshtml /Views/Shared/Index.cshtml This error is generated by the Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware and specifically indicates that the MVC framework is unable to locate the 'Index.cshtml' file in both the 'Home' and 'Shared' directories, where it traditionally searches for views. I've verified the existence of the 'Index.cshtml' file in the correct location and ensured that the routing configurations are set up correctly. This setup was working seamlessly before the update to .NET 8.0.2. Update: I was able to resolve this issue by uninstalling the .NET 8.0.2 updates. After reverting to the previous version, the application started working as expected without any errors. It appears that the .NET 8.0.2 update may have introduced a change or incompatibility affecting the way ASP.NET Core MVC applications locate views.Hammad_ul_haqFeb 16, 2024Copper Contributor34KViews2likes6CommentsWont 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 Contributor67Views1like4CommentsUsing 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 Contributor79Views1like1Comment[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.R0botJan 25, 2025Copper Contributor120Views1like1CommentMysql connection error
Hello, I need help with a connection with C#. I have a database that I just dumped, the connection with the mysql.data tools was working perfectly, but after the dump I get this error: Unable to cast object of type 'System.DBNull' to other types in System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) in System.Convert.ToInt32(Object value, IFormatProvider provider) in MySql.Data.MySqlClient.Driver.<LoadCharacterSetsAsync>d__81.MoveNext() --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione --- in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in MySql.Data.MySqlClient.Driver.<ConfigureAsync>d__78.MoveNext() --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione --- in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) in MySql.Data.MySqlClient.MySqlConnection.<OpenAsync>d__94.MoveNext() --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione --- in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in MySql.Data.MySqlClient.MySqlConnection.Open() in DBTester.FormMain.btnTest_Click(Object sender, EventArgs e) in C:\Users\... The absurd thing is that if I try several times, on the fourth or fifth attempt it succeeds, has anyone ever encountered this problem, or can they help me figure out what may have gone wrong? Now DB works on MariaDB 11, the old db was on MariaDB 8 What can I verify?_Nexthop_Jan 15, 2025Copper Contributor155Views1like2CommentsUpgrade guide .net framework 4.5 to 4.8
Hello! We are in the process of upgrading .net framework version from 4.5 to 4.8 for a legacy application. We have class library projects, web forms project and an MVC project. 1. The system.* assemblies for some of the projects in the the .csproject file look like below. I don't think these are installed as nuget packages. instead, i believe these are added as reference from the GAC. is this assumption correct? If so, as part of the upgrade process, should i remove these assembly references and install them as nuget packages instead or shall i keep the assemblies as they are? <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.Linq"> <RequiredTargetFramework>3.5</RequiredTargetFramework> </Reference> <Reference Include="System.Web.ApplicationServices" /> <Reference Include="System.Web.DynamicData" /> <Reference Include="System.Web.Entity" /> <Reference Include="System.Drawing" /> <Reference Include="System.Web" /> <Reference Include="System.Web.Extensions" /> <Reference Include="System.Xml" /> <Reference Include="System.Configuration" /> <Reference Include="System.Web.Services" /> <Reference Include="System.EnterpriseServices" /> <Reference Include="System.Web.Mobile" /> <Reference Include="System.Xml.Linq" /> 2. How do i determine should i need to use a newer version of the assemblies than the current ones while upgrading to framework 4.8? 3. Here is the collective list of all the System.* assemblies that are referenced in the projects in the solution System System.Core System.Xml.Linq System.Data.DataSetExtensions System.Data System.Xml System.configuration System.Data.Linq System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Drawing System.Web.Extensions System.Web.Services System.EnterpriseServices System.Web.MobiletechworkMay 22, 2024Copper Contributor765Views1like0Comments
Resources
Tags
- .net120 Topics
- .NET Framework98 Topics
- .net core81 Topics
- accessibility1 Topic
- community1 Topic