23,989 questions with .NET-related tags

Sort by: Updated
1 answer

.net MAUI app and WebPages

So I have built my first .net MAUI app. All things good. I would like to put on a webserver and run the app from a weblink on a webpage. Somewhat like the old SmartClient apps. How would I go about that? Thanks.

.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-16T15:48:14.203+00:00
dodDev 1 Reputation point
answered 2022-06-17T19:22:57.72+00:00
Rob Caplan - MSFT 5,412 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Choosing between desktop and web (intranet) for an internal application

We're developing a document management application for internal users. Users are spread out over 25 offices, each office will have 10-15 users. Users will be required to scan documents (20+ at times), generate and print barcode for each page and print a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,835 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,676 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,272 questions
asked 2022-06-16T14:13:25.75+00:00
DotNetDeveloper 21 Reputation points
accepted 2022-06-17T17:46:33.22+00:00
DotNetDeveloper 21 Reputation points
1 answer One of the answers was accepted by the question author.

How to use the concept of activation context in .net to load unmanaged dlls?

After some help and reading, I am sure the concept activation context can be used to solve my problem. In my application, I have to load an unmanaged dll c.dll by another managed dll b.dll, which is loaded by a.dll, which is loaded by app.exe. The…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,426 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,277 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,125 questions
asked 2022-05-26T07:48:37.837+00:00
燕鹏 李 301 Reputation points
commented 2022-06-17T15:22:41.453+00:00
燕鹏 李 301 Reputation points
2 answers

How to solve this .NET missing issue?

We developed a Wpf application, based on .NET 5.0, target OS version is 10.0.17763.0. And in developers' computer, they have Visual Studio installed, so the app runs normally. Now we make a release x64 version of the app and put it on a newly…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,125 questions
asked 2022-06-17T12:48:16.08+00:00
Tom JD1 Xue 21 Reputation points
answered 2022-06-17T15:00:15.667+00:00
Bruce (SqlWork.com) 56,766 Reputation points
1 answer One of the answers was accepted by the question author.

Mapper Key seems to be arbitrary

When coding a mapping the key used does not seem to matter. Is there a case where the value matters. PickerBase can be any string and it still works. PickerHandler.Mapper.AppendToMapping("PickerBase", (handler, view) =>

.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-16T17:46:57.55+00:00
Jeff Pfahl 91 Reputation points
accepted 2022-06-17T14:52:58.593+00:00
Jeff Pfahl 91 Reputation points
1 answer One of the answers was accepted by the question author.

How to set ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS on/off within the Xamarin.

I am trying to achieve ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS on/off within the app. So in a specific activity, it should be on and other off. I could achieve to request the permission and PowerManager.isIgnoringBatteryOptimizations() returning true…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-06-16T22:39:46.067+00:00
Anonymous
accepted 2022-06-17T13:01:14.657+00:00
Anonymous
0 answers

Bearer token authentication is not permitted for non TLS protected endpoints (MS Graph) C#

Hello, I am having trouble pulling a user’s photo from MS Graph. In my app, I have configured ASP.net Core Identity to use Microsoft as an external login / registration choice. Locally, it pulls the picture fine, which leads me to believe it has…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,646 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,563 questions
asked 2022-06-13T18:14:50.637+00:00
Mike860 1 Reputation point
commented 2022-06-17T12:26:34.057+00:00
1 answer

Quick login for Desktop Windows apps

Would it be possible to for a .NET Windows app such as UWP to have access to display list of connected accounts on Windows PC? That could be like a quick list to login faster in the app instead of need to re-type the Microsoft email, kind of like it…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,835 questions
Universal Windows Platform (UWP)
asked 2022-06-06T18:00:31.553+00:00
vanjmali 26 Reputation points
commented 2022-06-17T09:31:12.987+00:00
Roy Li - MSFT 32,051 Reputation points Microsoft Vendor
0 answers

Android device connection refused in WebClient download request on localhost PC

A VisualStudio 2019 project running on Windows 10 Home was taken from a tutorial that actually targeted Phone 8. It is a 'Book Store' app using data stored in an XML file which is loaded into the local host web page built with Asp.Net Core Web app. My…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 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,277 questions
asked 2022-06-11T00:11:18.5+00:00
Raymond Larkin 1 Reputation point
commented 2022-06-17T08:27:01.663+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,806 Reputation points Microsoft Vendor
1 answer

how to use image color for using in ui

hello everyone , so, I have a music player project and in my project i want to use musics image dominant (or Correct) color for using in my UI , i searched about it a lot but i couldn't find any good solution , in fact i want to make something like…

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
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,277 questions
asked 2022-06-16T13:28:43.477+00:00
IKINGSHADOW 136 Reputation points
answered 2022-06-17T08:20:37.523+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
1 answer

Microsoft.Office.Interop.Word.dll Not Found

I have office installed but I don't have this path: C:\Program Files (x86)\Microsoft Visual Studio\Shared\Visual Studio Tools for Office\PIA\Office14\Microsoft.Office.Interop.Word.dll How do I get this fixed? I have tried reinstalling office and…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,125 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,010 questions
Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
893 questions
asked 2022-06-16T20:07:40.623+00:00
Micah Holmes 1 Reputation point
commented 2022-06-17T07:57:48.497+00:00
Emi Zhang-MSFT 22,011 Reputation points Microsoft Vendor
3 answers

Migrate legacy ASP.NET Webforms application (specially aspx controls and its code behind pages) to .NET Core 6 using DotVVM

Hi, One of our client requirement is to migrate legacy ASP.NET Webforms application (specially aspx controls and its code behind pages) to .NET Core 6. We were evaluating different tools and then we found that DotVVM (https://www.dotvvm.com/)…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
asked 2022-06-14T13:45:42.19+00:00
Debobrata Bose 1 Reputation point
answered 2022-06-17T07:43:52.277+00:00
Rena Ni - MSFT 2,061 Reputation points
1 answer

ASP.NET MVC Adding Same Records too many times when I refresh the page

I am new with ASP.NET and i made a blog project with simple ways. My problem is after commentting to a single blog and every refresh the page comment has been recorded too many times. I would be happy if you solve this or find a new way to comment to a…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,272 questions
asked 2022-06-16T23:56:25.503+00:00
Deepgatron 1 Reputation point
answered 2022-06-17T07:39:21.307+00:00
Yijing Sun-MSFT 7,066 Reputation points
0 answers

How to remove the titlebar in MAUI (MacOS and Windows)?

How to remove the titlebar?

.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-15T12:28:26.257+00:00
OBJECTSOCIAL 1 Reputation point
commented 2022-06-17T07:37:52.84+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,451 Reputation points Microsoft Vendor
2 answers

How to upload image using ajax in asp.net mvc

Hi guys how can i upload image using AJAX in ASP.NET MVC

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
asked 2022-06-14T13:55:53.707+00:00
Ram 21 Reputation points
answered 2022-06-17T05:36:14.623+00:00
Zhi Lv - MSFT 32,016 Reputation points Microsoft Vendor
1 answer

Azure Ad B2C: from client to server to another server?

I am trying to set up an application consisting of a front-end Next.js (client + server) application with a Asp.Net Core Web API. So there are two servers and one client. Next.js has a nice library called nextAuth which allows using Azure Ad B2C as…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 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,652 questions
asked 2022-06-02T11:18:00.553+00:00
Knippert 6 Reputation points
commented 2022-06-17T03:54:26.26+00:00
Bruce (SqlWork.com) 56,766 Reputation points
0 answers

how to custom asp-validate-for target?

I want to using asp-validate-for to validate a image upload If I Upload some picutre there is a div will display it: <div id="my-image"> </div> if there is some image: <div id="my-image"> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
asked 2022-06-16T06:14:55.657+00:00
mc 3,701 Reputation points
commented 2022-06-17T01:29:19.457+00:00
Rena Ni - MSFT 2,061 Reputation points
1 answer

Restricting access to a public ASP.NET Core WebAPI

I'm building an application and I'm having a hard time understanding how to properly restrict access to the API for its data while still allowing the sites and apps that run on that data to function. The API is on its own domain (say api.mysite.com)…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
asked 2022-06-02T01:03:09.777+00:00
SelAromDotNet 1 Reputation point
commented 2022-06-16T19:49:22.21+00:00
SelAromDotNet 1 Reputation point
1 answer

sort static dropdown using VB.NET asp.net page

I'm populating a dropdown with dates, it's currently showing the dates as 8/1/2022 7/1/2022 6/1/2022 5/1/2022 I want to show the dates as 5/1/2022 6/1/2022 7/1/2022 8/1/2022 protected sub getDates(sender as…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,272 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,579 questions
asked 2022-06-16T12:12:13.49+00:00
TheCoder 91 Reputation points
answered 2022-06-16T19:17:22.233+00:00
Bruce (SqlWork.com) 56,766 Reputation points
2 answers One of the answers was accepted by the question author.

Recognition of changed culture or time format

I want to show the current day time in the current time format like: DateTime now = DateTime.Now; textBlockTime.Text = now.ToString("T", culture); On app start the culture is set to CultureInfo.CurrentCulture. When the user changed…

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
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,277 questions
asked 2022-06-16T11:58:55.453+00:00
Heiko 1,211 Reputation points
accepted 2022-06-16T15:51:26.837+00:00
Heiko 1,211 Reputation points