23,991 questions with .NET-related tags

Sort by: Updated
1 answer

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,…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,190 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,279 questions
asked 2022-06-14T22:57:15.457+00:00
pratap chandra 1 Reputation point
commented 2022-06-14T23:37:46.77+00:00
Karen Payne MVP 35,191 Reputation points
2 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,190 questions
asked 2021-12-14T11:29:41.627+00:00
Andreas Jabbari 11 Reputation points
answered 2022-06-14T23:06:09.867+00:00
Camilo Restrepo Rodriguez 1 Reputation point
2 answers One of the answers was accepted by the question author.

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?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-03-18T18:22:19.933+00:00
kevin david 161 Reputation points
accepted 2022-06-14T22:36:34.89+00:00
kevin david 161 Reputation points
1 answer

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. …

Azure SQL Database
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,398 questions
asked 2022-06-10T08:34:48.933+00:00
Bill Wallace 1 Reputation point
commented 2022-06-14T21:46:57.473+00:00
Oury Ba-MSFT 16,471 Reputation points Microsoft Employee
1 answer

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', …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,190 questions
asked 2022-06-14T08:49:50.893+00:00
mc 3,701 Reputation points
answered 2022-06-14T19:49:19.02+00:00
Bruce (SqlWork.com) 56,846 Reputation points
1 answer

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> {…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,190 questions
asked 2022-06-14T11:21:38.32+00:00
Jerry Lipan 916 Reputation points
answered 2022-06-14T18:43:00.077+00:00
Bruce (SqlWork.com) 56,846 Reputation points
1 answer

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

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,398 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,448 questions
asked 2022-06-01T18:32:51.87+00:00
Abhishek Tomar 21 Reputation points
commented 2022-06-14T17:48:16.237+00:00
GeethaThatipatri-MSFT 27,642 Reputation points Microsoft Employee
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,190 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,900 questions
asked 2022-06-13T08:02:09.043+00:00
MauiDevGuy 1 Reputation point
answered 2022-06-14T17:18:02.693+00:00
Rob Caplan - MSFT 5,412 Reputation points Microsoft Employee
0 answers

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

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
Azure SQL Database
asked 2022-06-13T13:04:42.28+00:00
Muhammad Maaz Qureshi 6 Reputation points
commented 2022-06-14T16:54:55.32+00:00
GeethaThatipatri-MSFT 27,642 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Cannot create storage account

I am getting error as policy disallowed to while creating account. Please have a look at the error

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,270 questions
asked 2022-06-14T13:58:54.107+00:00
Anonymous
commented 2022-06-14T14:54:44.613+00:00
Anonymous
1 answer One of the answers was accepted by the question author.

Request.Files.Count showing error

Hi guys what should be the problem for my code showing error to the Files see the pictures

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,190 questions
asked 2022-06-14T14:05:52.08+00:00
Ram 21 Reputation points
accepted 2022-06-14T14:37:45.383+00:00
Ram 21 Reputation points
3 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,190 questions
asked 2022-06-09T17:07:06.653+00:00
Elaya Raja 96 Reputation points
accepted 2022-06-14T10:51:32.82+00:00
Elaya Raja 96 Reputation points
1 answer

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-05-31T19:39:42.353+00:00
Turbofuss 1 Reputation point
commented 2022-06-14T09:41:18.673+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,806 Reputation points Microsoft Vendor
0 answers

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-06-08T10:25:36.567+00:00
Prabakaran Ramasamy 21 Reputation points
commented 2022-06-14T09:37:58.327+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,806 Reputation points Microsoft Vendor
1 answer

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 =…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
Universal Windows Platform (UWP)
asked 2022-06-01T16:13:34.923+00:00
WillAutioItrax 201 Reputation points
commented 2022-06-14T09:35:57.243+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,806 Reputation points Microsoft Vendor
1 answer

.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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,900 questions
asked 2022-06-01T08:52:18.583+00:00
obal 1 Reputation point
commented 2022-06-14T09:34:44.62+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,451 Reputation points Microsoft Vendor
1 answer

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-05-31T19:38:09.133+00:00
Gregg Lanzing 1 Reputation point
commented 2022-06-14T09:31:47.66+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,806 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

.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: …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,190 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,279 questions
asked 2022-06-09T08:25:41.903+00:00
Phil 166 Reputation points
accepted 2022-06-14T09:23:24.6+00:00
Phil 166 Reputation points
1 answer

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,676 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
766 questions
asked 2022-06-10T12:23:32.053+00:00
BobG 41 Reputation points
commented 2022-06-14T09:20:49.04+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
0 answers

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-06-09T06:21:06.977+00:00
Subbu Naidu 11 Reputation points
commented 2022-06-14T09:19:22.18+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor