Unhandled exception in "Build a web API with minimal API, ASP.NET Core, and .NET" Unit 2.
I wrote my code exactly as instructed, and I'm getting the following error message: Unhandled exception. System.InvalidOperationException: The service collection cannot be modified because it is read-only. at…
What is the correct way to upgrade dotnet SDKs for MAUI
Can someone tell me the proper way to upgrade .net? I have kept mine on an older version for a while now because it has been working with xcode 15.3 for me. Since it appears the issues with xcode 15.3 have been resolved in the latest version, I would…
How to dynamically change the port listened by Webserver in. NET when the Webserver is running
I created a NET 8 Console Application to create a WebServer and make it a Windows Service, in Program.cs, the code implementation is as follows var webOptions = new WebApplicationOptions() { Args = args, ContentRootPath =…
ASP.NET Core MVC pass a url parameter to the POST
Hi all; I have a Blazor Server app. It uses the ASP.NET Identity Library which is ASP.NET Core MVC. I am trying to pass a parameter to register so a URL like /identity/account/Register?follow=uniqueId gives me the parameter follow=uniqueId. In…
how to use sqlite views in.net maui
I have created 2 tables and a view in sqlite database. I also created a class for view including both table fields. Now I want to use this view in .net maui. Is it possible. Please explain how to do this. Thanks.
Debug and Release Version have different file Size, but in negative way: Maui Android App
I had a Xamarin App that when I compile goes to 30 MB file size in release after all optimization. Now, we uprade same app to Maui. And when I run the app in emulator it works fine with APK been generate of 20 MB. During Xamarin since link is not set and…
Gridview TextBox value getting null (blank) after button click
i am selecting some checkboxes and trying to enter some feedback value in the corresponding cell of textboxes. But, I am unable to get Gridview textbox value in all paging when i click save button. Getting blank value always. below is my…
How to get the position of NotifyIcon at runtime?
Hi, I want to retrieve the location and size of notifyIcon whenever it be clicked. The purpose is to set the application UI above the notifyIcon like the below photo. Please show me how I can do this with C#. Thank you!
Rendering issues with our .Net application post windows patch
Recently, we've encountered rendering issues with our .NET application following a Windows patch update for Windows 10 Version 22H2. Specifically, after applying the cumulative update for .NET Framework 3.5, 4.8, and 4.8.1, we've noticed intermittent…
how to create ios application in vs?
there is Android Application in VS. but no ios Application right? how to create ios? not MAUI just .net ios.
How to programmatically display the Windows taskbar using C#
I would like to know what C# code/instructions are necessary to make the Windows taskbar appear so that I can use a specific item on it. Can someone provide a concise example or resource to help me accomplish this? Thank you.
How to implement google play billing in MAUI .NET 8
I'm trying to implement the google play billing library in my .net maui application (8.0). I tried following instructions on this thread. https://learn.microsoft.com/en-us/answers/questions/1347017/im-curious-about-the-google-play-store-payment-fea …
A weired error about HTTP 500 !
I created a web user asp.net 8.0 mvc without ef. When I modify the stucture of oracle datebase table ,such as add a field ,then the web related to the table report a error about HTTP 500 . But after I restart the iis,it works well without doing anything…
Creating a Cross-Platform Calendar Event
Details I am developing an application that allows users to create meetings. For this, I need the user to select a date and time. I was thinking of letting the user choose a time zone, but Microsoft calendar converts meetings to the local time zone of…
What's wrong with System.Diagnostics.EventLog?
Dear Community, I run into trouble... Situation: I created a WorkerService with VisualStudio 2022 based on .NET 6. To log all Informations I use the System.Diagnostics.EventLog Library. If I run the application in the command prompt everything works…
AKS deployed application to access on-prem server
Hi, I want to connect to on-prem sql server from a .net application which is deployed in AKS. We already have Azure relay/hybrid connection setup for the same, but that requires azure app service. I am looking for options to connect from AKS deployed…
Maui MediaPicker.Default.CapturePhotoAsync windows doesn't display camera
When I run the app is the VS 2022 on Windows 10 the MediaPicker.Default.CapturePhotoAsync method displays the camera and allows me to capture a photo. When the app is published and installed on Windows 10 the MediaPicker.Default.CapturePhotoAsync method…
I received the error "Unable to find an OpenAPI description" while running the API tutorial at https://learn.microsoft.com/en-us/training/modules/build-web-api-aspnet-core/3-exercise-create-web-api
https://learn.microsoft.com/en-us/training/modules/build-web-api-aspnet-core/3-exercise-create-web-api When connecting to localhost using httprepl and https, I received the error "Unable to find an OpenAPI description". I am using…
How to resolve SignalR Hub connection issue from Client side Javascript code
I have web application developed in .NET 5.0. This web application calls Web APIs to fetch information from SQL DB. Web and API applications are two separate applications hosted in Azure. I want to push some real time data every 2 minutes to all clients…
What to use for Target Framework and Minimum Framework for Android Maui project
When I select the Target Android Framework as available in dropdown (Android 14.0 API Level 34) it change the XML Tag in file as <TargetFrameworks>net8.0-ios;net8.0-android34.0</TargetFrameworks> But when I use same file to compile using…