Content
System.InvalidOperationException: 'Invalid operation. The connection is closed.'
hello All, I am getting this error when calling a small function. I am calling this function twice. Below is my code: public async Task<EmployeeInfo?> GetEmployeeByEmployeeNumber(string employeeId) { List<int> emplyoeeInfoId =…


how to fix reportviewer rendering exception when EnablePartialRendering on ScriptManager is set to true
WARNING! There was an error parsing the document In our MVC application we are calling an ASPx page (using an iframe) that contains a reportviewer control, the reports are loading but when I click "Show report" button after I give the…


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…


why invoking a multi-targeting library doesn`t work as expected?
I`m currently learning how to create multi-targeting library with dotnet. I created a multi-targeting library in .net6 and .net 7. However, when I calling the method in this library, the output doesn`t work as my expectation. excution command: in…


System.IO.DirectoryNotFoundException: 'Could not find a part of the path 'C:\MyApp\API\Live\Images\Company Logo.png'
Hi All, I am developing an application in .Net Core WebAPI in C#. I need to access company logo and insert it into excel while exporting data to excel. I have added Images folder with logo images to my startup WebAPI project in solution for this purpose.…


How to load data of employee if drop down list selected changed ?
I work on MVC web application using c# by ado.net I face issue I can't display employee data based on drop down selected index changed . so if user select Pending Request from drop down list it will select employee that have select employee status 1…


Bitmap Colors & Editing in CMYK
I have a Xamarin.Android app with an Android.Graphics.Bitmap for which I need to view each pixel's color in CMYK (as opposed to RGB). I also need to be able to rotate & crop the Bitmap. I am not extremely familiar with working with graphics &…


Inject IHttpClientFactory To Create HttpClient through a class
I'm trying to Use IHttpClientFactory To Create HttpClient (ref: https://www.rahulpnath.com/blog/are-you-using-httpclient-in-the-right-way/). At the end of the page, it says: "The Controller class can now use the WeatherService and call it to get…


Process.Start does not work anymore
I have a simple code that used to work, but it does not work anymore. Process.Start("Some Website Address"); Also, the code below works: Process.Start(@"C:\Program Files\Google\Chrome\Application\chrome.exe", "Some Website…


Why I got 401 occasionally?
Hi All, I'm calling HTTPClient with dynamic token in a loop, but occasionally it thrown me 401 (Unauthorized). What did I do wrong in my test codes below? Is it correct to put the Authorization in there?, it looks like in some time it doesn't reset…
Verify User Login credentials via web service
Hello all: I am messing with a web site created with MVC and Individual Accounts for Authorization, so in my DB I have the table AspNetUsers, and in the code the Login method calls: var result = await…


How do I get VS Installer to transform appsetting.json file as per SlowCheetah file transformations in an .net6 desktop app?
I am working with a C# Windows Forms App .NET 6.0. We have several different environments (dev, qat, etc) and I have created SlowCheetah transform files for each of them. When I compile in the various environments, the appsettings.json file which is…


There were deployment errors. Continue? (MAUI - Android Emulator Problem)
I am new to MAUI. when I run the android emulator this error popup. But with windows Machine, it works fine. I reinstall visual studio and it still shows this error. Please Help me to solve this problem or give alternative solutions.…


Maui create release version of App
Ok I have an app which I would like to create a release version. I change to Release mode. I then build, took about 5 times before it worked. The errors mean absolutely nothing to me so I just kept on trying as this seems to be the way VS…


how to use blazor webassembly in razor pages?
how to use blazor webassembly component in razor pages? if I create Count in webassembly how to use it in razor pages? if I do not open that page do not load dll If I open that page then load it. /Pages/Count.cshtml with component Count If I do not open…


The type or namespace name 'Platform' does not exist in the namespace 'Microsoft.Maui.Graphics' (are you missing an assembly reference?)
Seriously, Do you even test before release? It works, then stops. Restart computer, and it works again. Given that Micro$oft no longer values the developer/engineers, you can bet the stock is going the way of Yahoo!


maping type error
im trying to create a get user by i method well not a user but an entity called branch and that entity has a foreign key called appuser now i want that when i call the get method it returns the entity branch as well as the data linked to it through the…


add one to one and one to many relationship
Hi So a little weird but im trying to add a one to one and one to many relatioship between two entites lets say i have two entities 1 is branch 2 is AppUser now a branch can have a app user as the branch admin(done through roles not the elephant in the…


SideBar Nav Menu
Hello Friends. Has anyone ever used a side nav bar menu (kind of like a bootstrap Menu) in their .Net Maui windows app? Thanks !!!


.Net Maui, how to run method after page is shown?
Hi, I am trying to find a way to run a method after a contentpage is showing on the screen. OnAppearing() does not work as it fires before the page is actually loaded. Is there any way to do this without using a timer? It seems strange there is no built…