22,877 questions with .NET-related tags

Sort by: Updated
0 answers

my dll is only 4.00 kb when I look at its size, in object explorer, when I click the arrow, it shows nothing and I cannot get to it with a using statement.

Hi, I had an asp.net website which uses a lot of .apx files. I was told to convert it to a web application. I did that by creating an empty web application and copying the website folders and files from the website into this new web application. There…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,981 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,145 questions
asked 2024-02-13T22:11:43.5933333+00:00
iqworks Information Quality Works 196 Reputation points
edited the question 2024-02-14T00:34:03.3433333+00:00
ChaitanyaNaykodi-MSFT 20,171 Reputation points Microsoft Employee
0 answers

How to manage to build/deploy and debug .NET (8) iOS project with its extension project

I am using Visual Studio (Windows). My solution includes two projects. (All .NET 8 with ios workload): <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net8.0-ios</TargetFramework> First project is the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,246 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,112 questions
Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
164 questions
asked 2024-02-13T21:06:13.74+00:00
Boleslav 0 Reputation points
edited the question 2024-02-14T00:07:45.29+00:00
Anna Xiu-MSFT 23,026 Reputation points Microsoft Vendor
1 answer

Are there any source apps to update the user & tables created when scaffolding an individual accounts MVC app

In Visual Studio 2022 , when you create an ASP.NET Core Web App ( Model View Controller) & select Individual Accounts as the Authentication type, a number of standard tables are created in the Database including AspNetUsers, AspNetRoles, &…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,981 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,145 questions
asked 2024-02-13T16:46:29.06+00:00
Richard Scannell 261 Reputation points
edited the question 2024-02-14T00:03:46.4333333+00:00
Anna Xiu-MSFT 23,026 Reputation points Microsoft Vendor
6 answers

How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."

Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,981 questions
asked 2023-06-03T08:29:57.58+00:00
Vaishnavi P 25 Reputation points
commented 2024-02-13T23:26:18.54+00:00
Chris Worthington 0 Reputation points
0 answers

Other ways to change label colors besides ColorPickerExtender

Is there another way to change color of labels on a web page and save the labels color into database besides using the ColorPickerExtender, as shown below? I asked this because using ColorPickerExtender displays the color code inside a Textbox, so that…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,112 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,145 questions
asked 2024-02-13T23:18:06.8033333+00:00
Donald Symmons 2,646 Reputation points
0 answers

Connect to mac using proxy

Is there a way to use a proxy when making an SSH connection to a mac from Visual Studio? Our setup is such that we use a ProxyCommand in our SSH config on the client machine in order to successfully connect to our mac via a CloudFlare tunnel. This works…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,246 questions
asked 2024-02-13T22:19:49.07+00:00
Michael Quinn 0 Reputation points
0 answers

How to customize the DrawingLine in CommunityToolkit.Maui DrawingView

I see in the documentation reference to creating a Custom Drawing Line for the DrawingView - see https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/drawingview#advanced-usage I want to enable my users to draw shapes (circle, ellipsis,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,516 questions
asked 2024-02-13T20:13:01.0566667+00:00
tbelvin 21 Reputation points
1 answer

NET MAUI - MediaElement - Not playing Audio Files stored on Google Drive

Hi I am using MediaElement to play Audio Files (.mp4) that are stored on my Google Drive,. But this is failing with error: [0:] MediaManager: Error: Error codename: ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED, Error message: Source error The following is a…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,516 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.
9,884 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.
741 questions
asked 2023-03-19T20:01:32.4066667+00:00
Riffy 271 Reputation points
answered 2024-02-13T20:08:01.1966667+00:00
Marian Adrian Grigore Grigore 0 Reputation points
1 answer

How to generate a Azure map listing countries from the .Net Core API and save a snapshot of the map image.

Hi Support Team, How to generate a Azure map listing Countries from the .Net Core API by passing region (i.e. Central and Southern and Northern) as parameter and then save a snapshot of the map image. Please kindly share inputs and samples if…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,981 questions
Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
553 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,427 questions
asked 2024-02-12T21:55:22.13+00:00
Vamshi 126 Reputation points
edited a comment 2024-02-13T19:51:34.27+00:00
Vamshi 126 Reputation points
0 answers

Crashing on re-navigating to second page.

I have a crashing issue I can't figure out. From my main page I have a button that opens a second page: await Shell.Current.GoToAsync("newPage"); That second page is setup as a tabbed layout with 2 tabs, both tabs are content pages, one…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,516 questions
asked 2024-01-31T16:01:09.54+00:00
Phunction 201 Reputation points
edited a comment 2024-02-13T18:25:35.4366667+00:00
Phunction 201 Reputation points
1 answer One of the answers was accepted by the question author.

Publishing a single .cs compiled file

Hi, May I please ask if it is possible to publish .cs file to make it a compiled DLL which will be in the bin folder of a live hosting, without having to publish the whole project? I asked this because I may need to make some changes to some C# codes and…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,112 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,145 questions
asked 2024-02-13T03:20:16.4666667+00:00
Donald Symmons 2,646 Reputation points
accepted 2024-02-13T18:12:55.9333333+00:00
Donald Symmons 2,646 Reputation points
0 answers

Cosmos "This is blocked by your Cosmos DB account firewall settings." within IHostedService

TLDR; Why can't I access Cosmos through an IHostedService when I am able to Access it via aspnet on the same App Service? I have an App service that serves an ASP.Net Core web API as well as hosting an IHostedService instance. The hosted service listens…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,981 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,334 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,427 questions
asked 2024-02-07T01:01:19.2466667+00:00
Cleland, Joe 5 Reputation points
commented 2024-02-13T17:57:23.67+00:00
Cleland, Joe 5 Reputation points
0 answers

Using ToString to display on watch window

VS used to use the override of ToString to display in the watch window for objects. This no longer happens. Any way to get this back?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,359 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,516 questions
asked 2024-02-09T19:14:01.4833333+00:00
Lloyd Sheen 1,291 Reputation points
commented 2024-02-13T17:55:40.6233333+00:00
Viorel 109.4K Reputation points
3 answers

Error using Role Based authentication in MVC application

I have an MVC application using the .Net framework that uses Authentication with individual user accounts. Everything works great. I am able to register new users and login with them. CRUD operations work on all of my models. Then I wanted to add…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,145 questions
asked 2024-02-11T18:28:33.5533333+00:00
M J 641 Reputation points
answered 2024-02-13T17:05:30.6333333+00:00
M J 641 Reputation points
1 answer

Use Generics to achieve data in required json format

I have a generic class say public class Generic<T> { public T Data {get; set;} } Suppose i have an anonymous object like var r1 = new { A = lstA, validation = null as ValidationError } var r2 = new { B = lstB, validation =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,112 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.
9,884 questions
asked 2024-02-13T10:18:11.8366667+00:00
Simi Nalinakumari 0 Reputation points
answered 2024-02-13T16:57:14.64+00:00
Bruce (SqlWork.com) 51,916 Reputation points
0 answers

Is there a way to trigger Outlook-Add-Ins (Web) from external? (Custom event activation)

I am currently working on Office365 add-ins development and their communication via asp.net interfaces which are registered with entra id. I would like to open email templates from an external program. Templates can be created via ms-graph or by the…

Outlook
Outlook
A family of Microsoft email and calendar products.
2,552 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,793 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
277 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,253 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,456 questions
asked 2024-02-13T16:28:50.7+00:00
Bomnüter, Lucas 0 Reputation points
1 answer

Error HRESULT E_FAIL has been returned from a call to a COM component. vs 2022

I'm trying to create a service application with WCF, when I get this error. I have tried multiple solutions that I saw online, such as adding this assembly gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll in the global assembly cache. I have…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,112 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,359 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.
9,884 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,468 questions
asked 2024-02-05T02:38:55.31+00:00
CARLOS LUIS RICHARDSON MENDEZ 0 Reputation points
commented 2024-02-13T16:26:55.68+00:00
CARLOS LUIS RICHARDSON MENDEZ 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to test is path is unc

Hi, In net 8. string DriectoryName = "\V530-DANIS"; \V530-DANIS => is not unc but new Uri(DirectoryName).IsUnc => return true and also Uri.TryCreate(DirectoryName, UriKind.Absolute, out Uri uri) && uri != null && uri.IsUnc…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,112 questions
asked 2024-02-12T14:18:36.81+00:00
דני שטרית 2,126 Reputation points
accepted 2024-02-13T16:16:31.4866667+00:00
דני שטרית 2,126 Reputation points
1 answer One of the answers was accepted by the question author.

.NET 8 core MVC app with AAD (or other external) login and authorisation in local tables

Are there any examples of asp.net CORE 8 apps or tutorials which let you use Azure AD / Entra ( or other external login for authentication, but which build roles from a database's local tables eg AspNetRoles, AspNetUserRoles? Additionally are there…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,981 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,145 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,427 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,555 questions
asked 2024-02-09T11:44:57.3+00:00
Richard Scannell 261 Reputation points
accepted 2024-02-13T16:05:55.7366667+00:00
Richard Scannell 261 Reputation points
0 answers

How to use different Data Types in a Custom Control

I have a Custom NumericUpDown control in my WPF C# .NET 8 application that is working nicely, But now i want to update it so that it can use different Numbers DataTypes like int and decimal so that i can re-use my custom NumericUpDown control instead of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,112 questions
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,618 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.
9,884 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.
741 questions
asked 2024-02-13T08:49:57.5066667+00:00
Mesh Ka 340 Reputation points
commented 2024-02-13T15:05:15.36+00:00
Mesh Ka 340 Reputation points