Microsoft Q&A

.NET

13,956 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,956 questions with .NET-related tags

Sort by: Updated
0 answers

Http chunk encoding miss end of chunked encoding("0\r\n") or tailer("\r\n") on IIS 7.5

I create a simple ASP .NET Application and write a generic web handler (HelloFilterWithClose.ashx). HelloFilterWithClose.ashx ProcessRequest with setting a HttpResponse.Filter(MyFilter), and it response to http client with write a PDF file to http…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,318 questions
Internet Information Services
asked 2023-03-22T09:35:26.2833333+00:00
linq.x 1 Reputation point
commented 2023-03-23T11:07:08.14+00:00
Viorel 88,321 Reputation points
0 answers

Connecting

var Client = require('coinbase').Client; var client = new Client({'apiKey': 'API KEY', 'apiSecret': 'API SECRET'}); client.getAccounts({}, function(err, accounts) { console.log(accounts); });

.NET
.NET
Microsoft Technologies based on the .NET software framework.
868 questions
Azure Active Directory Domain Services
asked 2023-03-23T11:02:53.53+00:00
The World Bank 0 Reputation points
commented 2023-03-23T11:03:27.4966667+00:00
The World Bank 0 Reputation points
0 answers

in C# before the Nullable(?) was invented,Which can be null?which can't be null?

in C# before the Nullable(?) was invented,Which can be null?which can't be null? and Why are we need to worried about null or not null?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,816 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.
7,519 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
868 questions
Universal Windows Platform (UWP)
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
asked 2023-03-23T08:43:50.02+00:00
兰树豪 261 Reputation points
commented 2023-03-23T10:38:10.2666667+00:00
David Lowndes 4,381 Reputation points MVP
1 answer

.NET 6.0 migration issues leads to MySQL stored procedure calling

Once we migrate .NET core 3.1 applications to .NET 6.0, we get below issue while calling MySQL stored procedure, The LINQ expression could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
979 questions
asked 2023-03-22T14:29:14.39+00:00
Ninad Manjrekar Offcial 0 Reputation points
commented 2023-03-23T10:33:59.5933333+00:00
Ninad Manjrekar Offcial 0 Reputation points
0 answers

Samples for Xamarin.iOS projects should be upgraded to .NET SDK-style projects in Xamarin Support Policy

I developed a cross-platform applications with Xamarin.iOS.framework and Xamarin.Mac.framework and Mono.framework. I found some anxious information in https://dotnet.microsoft.com/en-us/platform/support/policy/xamarin. I want to know what's the quickest…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-20T02:48:22.8133333+00:00
Sun, Tracy (LNG-SHA) 0 Reputation points
commented 2023-03-23T10:04:15.94+00:00
Sun, Tracy (LNG-SHA) 0 Reputation points
1 answer

After the windows system wakes up from the sleep state, the application cannot continue to download

The application is in the process of downloading (using HttpClient). At this time, I hibernate the windows system and then wake up the system, but the application cannot continue to download (it is in Established). How can I continue to reuse the…

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.
7,519 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
868 questions
asked 2023-03-23T03:41:40.9566667+00:00
zhihao huang 0 Reputation points
commented 2023-03-23T09:57:59.51+00:00
zhihao huang 0 Reputation points
1 answer

The type or namespace name 'Platform' does not exist in the namespace 'Microsoft.Maui.Graphics' (are you missing an assembly reference?)

I am using Visual Studio Community 2022 64 bit 4.8.04161 on Windows 11 Pro. I need to be able to draw an image at a particular location. I am attempting to use the documentation at…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-16T20:44:11.47+00:00
Randy Clegg 0 Reputation points
commented 2023-03-23T09:45:42.55+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 43,931 Reputation points Microsoft Vendor
0 answers

making an image box in Razor page

I want to make an image box on my razor page so that users can type or sign their name in that box. I want something like adobe acrobat offers. below is the screen shot: How can I achieve this.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,816 questions
asked 2023-03-23T04:44:53.9833333+00:00
Anjali Agarwal 616 Reputation points
commented 2023-03-23T09:44:33.48+00:00
Ruikai Feng - MSFT 326 Reputation points Microsoft Vendor
1 answer

KeepScreenOn throws error on Android

Hi, I am trying the following: DeviceDisplay.KeepScreenOn = true; inside the App,xaml.cs and it's working fine on iOS but when I run it on Android I get below error: System.NullReferenceException: The current Activity can not be detected. Ensure that you…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-15T19:56:19+00:00
Jassim Al Rahma 1,166 Reputation points
answered 2023-03-23T09:38:14.2966667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 43,931 Reputation points Microsoft Vendor
1 answer

Location permission alert is not showing in android in net maui

I am using below code on xaml page but location permission in not working with promt method protected async override void OnAppearing() { base.OnAppearing(); var status = await…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-19T17:13:52.1233333+00:00
anil kumar 51 Reputation points
commented 2023-03-23T09:28:15.8166667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 13,501 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Unhandled exception rendering component: '<' is an invalid start of a value

Hi, I used blazor wasm and I just want rendering a datagrid via the controller. Below you will find the detail of the code . Have you an idea how I can fix this problem? Thanks in advance Data is located in LocalDb "ConnectionStrings": { …

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.
7,519 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
876 questions
asked 2023-03-22T17:54:40.82+00:00
sblb 831 Reputation points
commented 2023-03-23T09:27:46.53+00:00
sblb 831 Reputation points
1 answer

simpler RowDefinitions

Hi, I have the following RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" How can I make it simpler to have 12 Auto Rows? Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-21T18:17:39.2066667+00:00
Jassim Al Rahma 1,166 Reputation points
answered 2023-03-23T09:24:14.4733333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 13,501 Reputation points Microsoft Vendor
0 answers

How to fix a windows based .net application performance issue and run multiple instance of it in task scheduler.

I am running one windows application under task scheduler which is getting data from one 3rd party API and process other information. now, I want to run multiple instance of this application under one server.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
868 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,797 questions
asked 2023-03-23T02:11:43.2+00:00
chirag valand 0 Reputation points
commented 2023-03-23T09:21:15.22+00:00
Jack J Jun 21,896 Reputation points Microsoft Vendor
1 answer

How to change the size of the font for whole project during runtime?

Hello everyone, I want to make a dynamic update of the font size, I tried it like here(https://learn.microsoft.com/en-us/training/modules/use-shared-resources/4-use-and-update-dynamic-resources), but not everything ok, however I used dynamic resources.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-11T09:16:19.26+00:00
Valentine 0 Reputation points
commented 2023-03-23T09:07:25.78+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 13,501 Reputation points Microsoft Vendor
1 answer

如何和在MAUI程序中订阅android的广播消息。

以前在xamarin中可以通过 activity.RegisterReceiver(receiver, new IntentFilter("com.xamarin.example.TEST"));来订阅系统广播,或其他app的广播消息。请问在MAUI中怎么订阅呢?谢谢。

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-02-27T06:15:05.33+00:00
猪哥哥 0 Reputation points
commented 2023-03-23T09:00:38.89+00:00
猪哥哥 0 Reputation points
1 answer

Microsoft.WindowsAzure.Storage.StorageException: 'Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.'

Hi, I'm trying to upload a file to a blob storage using Access keys Here is my code: // Retrieve storage account from connection string. CloudStorageAccount storageAccount =…

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,523 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,318 questions
asked 2023-03-10T16:20:13.3266667+00:00
Augusto Emanuelli 0 Reputation points
edited the question 2023-03-23T08:56:08.3633333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 43,931 Reputation points Microsoft Vendor
0 answers

ASP. NETA WEB API not showing on solution node

I'm a novice but in the solution node I have 3 projects, now I want to add the asp. Net web api but upon clicking create it loads succesfully but the project itself is not seen in the solution node, my projects remain 3/3 instead of 4/4 in short heres a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,816 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.
7,519 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,758 questions
asked 2023-03-20T05:13:52.7666667+00:00
JOHN MARKOUSH G. PALAGINOG 0 Reputation points
commented 2023-03-23T08:54:47.93+00:00
Zhi Lv - MSFT 21,706 Reputation points Microsoft Vendor
0 answers

How to delegate the any kind of file to Print in any locally added printer via network/usb ?

Hi, How to print any kind of file to any already created printer in local system ? Like I just handover any kind of file to printer queue or spooler and it will take care of conversion using whatever driver the printer device is using while creation.…

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.
7,519 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
868 questions
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
533 questions
asked 2023-03-23T08:51:00.75+00:00
Strawhat007 40 Reputation points
1 answer

Unable to archive iOS apps

Archiving iOS app in Visual Studio for Mac does not archive anything without error. I didn't know the cause, so I recreated the project, set the signature and archived it, and it worked normally. However, when I tried to archive the same project the next…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-09T02:10:08.2533333+00:00
punio 0 Reputation points
edited a comment 2023-03-23T08:46:29.11+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,131 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Does .NET MAUI support WPF?

As we know we can create UWP applications in MAUI, Please let me know can we create WPF applications In .net MAUI, If there is any possibility please let us know what is the approach for that. [Goal clarification edited in from comment --RC] We…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 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,274 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
469 questions
asked 2022-05-16T09:58:08.377+00:00
Devi Prasad 86 Reputation points
commented 2023-03-23T08:35:23.2866667+00:00
Alex Rus 0 Reputation points