How can I open Microsoft Excel in Visual Basic.NET
I am using Visual Studio 2023 for using Visual Basic. I have latest version of Microsoft Office. I want to open Excel using Visual Basic (not VBA). Please tell me how to go about it. It is very important for me.
System.Reflection.TargetInvocationException: "Expression 'dest => dest' must resolve to top-level member" when configuring AutoMapper profile
I'm encountering an exception when trying to configure AutoMapper in my ASP.NET Core application. The exception message is: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->…
Migrate .net6 project to the .Net8
Hi Team, I have some of the class library, console app WPF and WinUI projects developed using .net6 in my solution. Now i need to migrate all the projects in that solution from .net6 to the .net8. Could you please provide the guide or help link for this…
root is missing error, while making frontend using window form application in VS 2022 using C#
Root is missing error, while making frontend using window form application in VS 2022 using C#. How to troubleshoot this issue.
Register close button in mac
Hi, In window i did, how to do it in mac ? builder .UseMauiApp<App>() .ConfigureLifecycleEvents(events => { #if WINDOWS events.AddWindows(windowsLifecycleBuilder…
How to assign value from session upload file into upload posted file again
i am trying to save uploaded file after some big process. i am saving uploaded file in session to retain the file upload data. i.e : uploaded file will be saving into session variable. after saving to session upload file will be cleared. but, the upload…
Mitigation for Dll hijacking
Hello Team, I found dll injection in c#, .net and c++thick client applications. But to perform dll here I needed admin access. in this case I had admin access. So what will be the standard mitigation to prevent dll injection after even get the admin…
How to insert new,update, delete existing record in single row of gridview
I am developing ASP.NET application and i am using gridview in that. Here, i am not using any textbox controls outside of the gridview to save the record. everything i want to maintain in same row of the records. for example, when page load, if any…
Getting BitLockerRecoveryKey via GraphServiceClient returns wrong VolumeType
Hi, i recently installed the newest Graph.Beta 5.75.0-preview and noticed a bug with the according Microsoft.Graph.Beta.Models. I want to get all BitLockerRecoveryKeys in my tenant. this is my Code: var allBitlockerRecoveryKeys = await…
.net maui grouping data binding not working, displays blank lines.
My listview does not bind correctly, I'm getting blank lines. ( I'm missing something in the code) (in debug) the for each loop show there is data in the Items object but it does not show up in the listview. Xaml <?xml version="1.0"…
Will VS2022 17.9 get updated for .Net 8 and 6 servicing updates released on May 28?
Components installed with VS2022 (e.g., .Net 8, .Net 6) are not shown separately in Windows settings for Apps or control panel's Programs and Features. These components have been updated as needed through the monthly patch Tuesday updates to VS through…
Microsoft (R) Visual Basic Compiler asking the upgrade the version.
We are trying to Execute SSRS report using rs.exe and will store result in CSV file. For this We have prepared (.rss) file, and executed from command prompt with following command. rs -i filename.rss -s https://server_name/ReportServer -v…
Certification configuration: I'm not able to verify my domain
Hello, after developing a Blazor Web App I tried to connect the app with my own domain. So I have to verify my domain to bind the certificate to my app. First step (import certificate to key fault) seems to work (step is checked). But I do not see the…
Search bar corrupted in MAC
Hi, In windos it works but in MAC is corrupted, why? <HorizontalStackLayout Grid.Row="1" Grid.Column="0" Margin="10,10,0,5" HorizontalOptions="Start"> <SearchBar x:Name="searchBar"…
Error AMM0000 after updating Android project to .NET 8.0 and Android Target OS Version 34.0
I get many errors after updating my Android project to .NET 8.0 and Android Target OS Version 34.0. I use Visual Studio Version 17.10.1 on my Windows 11 laptop. Error…
publish app in mac
Hi, How do i publish my app in mac ? In windows i did: dotnet publish -f net8.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true…
How do I override the default Blazor scaffolding template in Visual Studio 2022
I want to edit the scaffolding template for Blazor CRUD pages, but my changes to the template are not being reflected in the output. I tried researching this issue, and the closest answers I could find are how to edit Razor templates, or MVC component…
App crashes after throwing an error ' Window was already created'
Platform : Android Version : MAUI 8 Description : I was trying to invoke platform specific code by implementing broadcast Receiver for android, When I tried to register the receiver onResume( ) , app crashed with an error "Window was already…
How to customise global window closing prompt in a .NET MAUI application
I am working on a .NET MAUI project for desktop, I found a global solution for prompting a user before closing the application here. I would like to know if this can be customised and triggered conditionally when closing. For example: I have an…
MAUI: What is the difference between GoToAsync() and PushAsync() to navigate between pages?
What is the difference exactly between using await Shell.Current.GoToAsync Route Relative/GoBack with (..) Single instance?? await Shell.Current.Navigation.PushAsync(Use NavigationPage) - similar to prism or Xamarin Forms…