Keep dictionary state between the methods in a same class
I have below test class, Where I am defining _cacheExecutor dictionary at class level, and the purpose is mainly to cache the results with type T and test data as keys. public class CodesAndGuidelinesTest : SchemaCache,…
Create new asp.net core web application pannel doesnt show up.
Im tring to code following this youtube video from freecodecamp and the template page doesnt show up. So when I create a new project and choose Asp.Net core web app and so on, the "Create new asp.net core web application pannel" doesnt show…
How to run android libraries on a mac.
I am developing an application for Android and iOS from a MAC but when I call the library Android.Content.Pm I get an error saying that this library does not exist. How can I correct it?
OleDb connection to Azure SQL Server using MFA - error DB_SEC_E_AUTH_FAILED "User option must be specified, if Authentication option is 'ActiveDirectoryInteractive'. "
We have a utility app written in C++ (MFC/ATL) which connects to SQL Server databases to perform various functionality. It connects via ODBC using the CDatabase::OpenEx method with DSN for the particular database passed in the connection string. …
How to upload a image in javascript?
I am using abp vnext and there is a DTO in the api. const fd = new FormData(); fd.append("file", document.getElementById('file1').files[0]); $.ajax({ url: '/api/app/merchant/image?Name=s', …
Already logon. Then, must prevent same User Id being used to login
Hi. I'm not using Identity. I create my own Login Authentication So far, I can Login using below private async Task SignInAsync(string UserId, List<string> Roles) { var claims = new List<Claim> {…
CosmosDB - SPARK OLTP Connector 3 Cross Partition Query
Hi Dose cosmosdb spark 3 support cross partition query. If yes; how can I enable. My below code is not return all data. Can you please help on this. https://twitter.com/ImAbhishekTomar/status/1531904079085326337
MAUI and Kestrel webserver on Android ARM and iOS
I am a software developer and I am using MAUI and ASP.NET (.NET 6) together in one cross platform application. I found out ASP.NET Kestrel webserver (ASP.NET 6) is not available in MAUI on Android ARM and iOS platforms. When I compile, I get this…
Create Azure Sql Server Database as serverless using EF code first migration
How can I create a serverless SQL Database on a server? when EF core creates DB using regular migration and provided connection string it creates a provisioned DB but i need a serverless DB instead
Cannot create storage account
I am getting error as policy disallowed to while creating account. Please have a look at the error
Request.Files.Count showing error
Hi guys what should be the problem for my code showing error to the Files see the pictures
How to resolve "The type initializer for 'Gdip' threw an exception" for using ClosedXML in dotnet core webapi in Kubernates deployement?
I am using ClosedXml for my controller to return the excel file as response and it was working in windows local environment. I deployed the code in Kubernates and found the below exceptions in logs and not working. What was the solution to resolve this…
Xamarin Android Emulator not working (Visual Studio 2022)
So I started doing some stuff with Xamarin today, and after a few tries it all worked somehow. But now, as I start the program to see how it looks and all, the emulator starts, but doesn't do anything more. As always, it started in the screen where I…
UNNotificationServiceExtension is not being invoked
I downloaded the MonkeyNotify sample from the Xamarin.iOS samples repository. The NotificationService class is never called. When the notification is expanded, the title configured in the NotificationService class is not visible. Is there anything…
How to copy metadata from a photo to a rotated version of the photo in UWP?
I can take a picture in Xamarin Forms UWP and rotate it (if necessary) and change it's size. That all works fine. Not all the meta data gets copied over to the new photo. I can get the meta data from the old photo like this: ImageProperties propsIn =…
.NET Maui Visual Studio Windows iOS development
I am exploring .Net Maui within Visual Studio 2022 Preview 17.3 for development of multi-platform apps as an evolution of Xamarin. When I develop for iOS and an iPhone connected directly to my Windows PC automatic provisioning does not work. As a…
Visual Studio 2022 Xamarin android. Failing to archive
I have a xamarin app that I have archived and distributed (privately) for over a year. All of a sudden now I am getting this error: XA4314: $(AndroidSigningKeyPass) is empty. A value for $(AndroidSigningKeyPass) should be provided. Done building…
.net core api not loading connectionString from appsettings in apache (linux)
Hi there I have an api that runs locally and on IIS, that is built in .net core 3.1. I wanted to port it to apache. I have configured my apache server on ubuntu using the tutorials: …
Listview with TimePicker on cells: how to get selected index of the changed TimePicker (WPF C#)
Hi, I have a Listview where two TimePickers (MaterialDesigner XAML) are "embedded" into 2 columns, the last column of the Listview contains the time difference between those TimePickers. I would like the program to calculate the time…
Android App crashed with InnerLiner Gesture message in Xamarin forms
When added tap gesture number of taps=2, app getting crash with below error message. InnerGestureListener.HasAnyGestures () D:\a_work\1\s\Xamarin.Forms.Platform.Android\InnerGestureListener.cs, line 59 System.NullReferenceException: Object…