ubuntu下面运行asp.net core 不加载appsettings.json配置文件
我做了一个asp.net core5.0的站点,发布在ubuntu服务器上, 发现如果我不在程序所在文件夹下面运行站点,站点遍不会加载 appsettings.json配置文件 只要不在程序所在文件夹去启动站点,其他任何文件夹都不会加载 appsettings.json配置文件,这是为什么呢??
BlazorWebAppEntra .net9 sample app resets back to Home page
Download the BlazorWebAppEntra .net9 sample and create the app in Azure Entra with the other setup that you need to do in Azure. When you are able to login using Azure Entra into you Blazor Web App login click the Weather link in the Nav bar. You will…
.NET MAUI error after binding android library (.aar)
I am using android library called "autoreplyprint.aar" , this library contains another.jar file called "jna-4.5.1.jar". I have used following code to bind it in my MAUI project, <ItemGroup…
Issue with Project Reference
I am using visual studio 2022 with net9. C# unable to reference a class library project in another class library project. \Program Files\dotnet\sdk\9.0.201\Microsoft.Common.CurrentVersion.targets(2189,5): warning MSB9008: The referenced project…
Entry Focus issue in scroll view Maui
I had created a view with 30 entries in a scroll view, for suppose I focus on the 16 entry and click in the background Entry 1 is being focused automatically. Here is the code for reference. <ScrollView BackgroundColor="Green" …
Issues in release mode after upgrading to MAUI 9
After i upgrade from MAUI 8 to MAUI 9 , i face the following issues , I cannot have my target framework to net9.0-android35.0 but i could only use net9.0-android , i get the error as mentioned in the github link…
Change title and selected date colors in Android datepicker popup
How do I set the background color the title of the datepicker popup in android to my app primary color. also like to change the selected date color.
Onidiom vs on Platform
Hi, What are the diffrences beween OnIdiom or OnPlatform ? Can you give sample how you yiu use each one? Thanks,
I get cswinrt.rsp exited with error code 1 when compiling for ios simulator
Building for local iOS iPhone is OK. Only fails when building for iOS simulator. Visual Studio is running on a PC and paired to a Mac. 1>EXEC : error : Path '18.2' is not a file or…
Maui app as exe - throw exception when installing on new machine
Hi, Maui app as exe - throw exception when installing on new machine. This the message I got: What do we miss ? I used following command to publish application to exe. dotnet publish -f net9.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None …
.Net MAUI app fails to deploy only to remote iPhone
I have a .Net Maui app (9.0.14) built in vs2022 (updated to 17.13.4 today) on WIndows 11 Pro, which works fine on local dev machine, in ios simulator, android simulator and windows machine. I'm frustrated that I can't get the app icon to display if I…
While releasing the build in iOS MAUI, app getting crash while opening the application
Exceptions occurs was Terminating app due to uncaught exception 'System.ArgumentNullException', reason: 'ArgumentNull_Generic Arg_ParamName_Name, provider (System.ArgumentNullException) at System.ThrowHelper.Throw(String ) at…
Tracing "SQLite error 19 foreign key constraint" down to what actually causes it?
See screenshots. How do you find out which entity or which record produces this error? Haven't found info in the Internet. Default and test data is added using FluentApi in the configuration classes. The database is EnsureDeleted() first, then when it's…
How to connect ESPnow to C#
ESPnow is a protocol to connect one Espressif device to another over WiFi , such as ESP32 or ESP8266, WEMOS etc. the advantage is that it is not relying on local WiFi network, so no need to select a WiFi Network and register to it with a password. I…
SQLite Database Not Loading on iOS and Android with .NET MAUI but works with windows
Using Visual Studio 2022 preview with .NET 9 MAUI, there is an issue getting SQLite to work on iOS and Android. The code compiles for all maui platforms but does not load on the Android emulator or attached Iphone. It works on Windows without issues. I …
.NET Editor is not loading up in C# fundamentals course
.NET Editor is not loading up in C# fundamentals course. When i open c# certification from free codecamp one. xp and .net loader are not loading. please i need your help to fix it Link:…
Win32 internal error "Access is denied" 0x5 occurred while reading the console output buffer. Contact Microsoft Customer Support Services.
Hi, I‘m getting the following error while executing the "Invoke-WebRequest" command over "ssh.exec()": Win32 internal error "Access is denied." 0x5 occurred while reading the console output buffer. Contact Microsoft Customer…
In Blazor Server App, getting 404 error on page refresh
I am working on a Blazor server app with ASP.NET Core MVC and MudBlazor for design. My panel pages are in a PanelProject. I face the following issues: Whenever I try to refresh a page, I get a 404 error. Sometimes, I get a 403 error without knowing…
WARNING MVVMTK0045
Both with net8.0 and net9.0, at times I have a warning MVVMTK0045. Following the instructions in the relevant documentation https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/generators/errors/mvvmtk0045 does not clear the issue - on the…
"Missing Info.plist value. The Info.plist key 'BGTaskSchedulerPermittedIdentifiers' must contain a list of identifiers used to submit and handle tasks when 'UIBackgroundModes' has a value of 'processing'
I am trying to upload my maui ios app on transporter and getting this error: what i have tried so far is <key>BGTaskSchedulerPermittedIdentifiers</key> <array> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> …