Content
Fix database errors in visual studio
The code for selection of a row in data grud view doesnt work for me (Microsoft visual studio 2019)


Referencing multiple projects with top-level statements
I have two projects A and B. Each project has a single top-level statement Program.cs file. I made the Program class visible from each project by enabling internals: <InternalsVisibleTo Include="MyTargetProject" /> The problem is that…


How to fix error in visual studio 2019
The code .DataSource = ds.Tables[0]; doesn't work for me. What might be the error?? In Microsoft vs 2019


How to terminate a process cleanly from a background service
I have developed a program which runs as a Windows service. This program starts a process to run another exe file. It's developed in C# with .NET 6.0. I know I can use Process.Kill() to terminate the process, but I'd like to try to end the process…


Timespan.FromHours(24) not working after publish application on Azure app service
Hi i hi have one small simple application which logs the information. So I have one basic application which is using System.Threading.Timer and setup timer to run my function once a day and create logs. Ex. _timer = new Timer(callbackAsync, null,…
"dotnet" is not recognized
I have installed a fresh Windows10, and downloaded the "dotnet-install.ps1" from Microsoft: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script And I ran it with a powershell window: > .\dotnet-install.ps1 -Channel 7.0…


xamarin android emulator android > 9 ? how to make ?
Hello all, I have vs 2022 entreprise installed on my computer all works fine with emulator below android 9 .. i can push my app , debug ans so on .. I've try to make an android 10 / 11 and so on but impossible to start it ,, Of course i have the sdk who…


fileupload emty error !!!
Hello friends, if the file upload is empty SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Holding_DB"].ConnectionString); con.Open(); SqlCommand cmdSelect = new…


Button click event is not firing
Greetings again dear experts. I have an .aspx page with two sections One section allows our users to enter records displays existing records for update. The second allows users to preview the records, whether insert or update before submitting to the…
How can caming towns null ?
When the city is selected, it comes with the town. But when the city is selected, I want the town to be empty and for the user to select it. I want when user choose city second drowboxlist caming null how can add ? my code is ; For example…


how can add validation 2 drowdownlist
The user comes and selects the city from the first dropdownlist. If the first value is selected from the second dropdownlist, I want it to give an error. I want to add validation but failed. Help me please ? Where is my mistake ? my code ; var…


Xamarin Form Add Multiple Binding
Please I need help. I have my Xamarin Form app that works very well with DataBinding to its View Model named OrderDetailViewModel. But today I have to add another DataBinding field in line 10 Binding OrderStatusMessage that is bind to its Xaml.cs file…
How can add HTML paragraph alignment
I have a paragraph with too many words in it. I want it to be left and right aligned. Like Microsoft Word (same as ctrl+D). How can I do this? First ; I want like this ; This is (Ctrl+D) Is there a parameter in html that I can do the same way? My code…


Does the class returned by System.Security.Cryptography.IncrementalHash.CreateHMAC(HashAlgorithmName.SHA256) uses a managed or a native crypto implementation?
I've developed an app with Xamarin for Android and iOS which uses a sha256 hash. I need to know if the class returned by System.Security.Cryptography.IncrementalHash.CreateHMAC(HashAlgorithmName.SHA256) uses a managed or a native sha implementation…


MauiSplash to fill the screen
Hi, Using: <ItemGroup> <MauiSplashScreen Include="Resources\Splash\splashscreen.svg" /> </ItemGroup> How can I make the splash image to fill the screen vertically and horizontally? Thanks, Jassim


SAML Toolkit for C# and ASP.NET
Is there any SAML Toolkit for C# and ASP.NET? I want to integrate SAML 2.0 into my existing ASP.NET application. I have done the research for plugins/toolkits for. NET. I haven't found any from Microsoft. Please help me on this.


How can I set environment name without building every time?
I need to set custom environment names for builds that gets deployed to different servers. From looking at official documentation and other answers elsewhere, the recommended option is to pass environment name as an argument while calling dotnet publish…


Getting User Details from Azure AD in ASP.NET
In my ASP.NET 4.8 MVC application, I was able to get user authenticated using Azure AD. Now I need to get user details like job title, department, email, etc. From the research I did so far, it looks like MS Graph API is the way to go. Am I correct? Can…
SsdtHelper.DeployDacPacWithOptions() fails with System.MissingMethodException: Method not found: 'Void Microsoft.SqlServer.TransactSql'
I have a .NET Framework 4.6.1 (upgrading to 4.6.2 doesn't solve it) project that uses DacServices to deploy my database's SSDT on a Docker container. This eventually uses the following code: using (var fileStream = new FileStream(dacpacPath,…


How can I use WeakReferenceMessenger instead of MessagingCenter in my iOS project?
I get the following message when I use MessagingCenter in my .NET 7.0 iOS project: [deprecated] class Microsoft.Maui.Controls.MessagingCenter Associates a callback on subscribers with a specific message name. CS0618: 'MessagingCenter' is obsolete: 'We…

