24,493 questions with .NET-related tags

Sort by: Updated
0 answers

Change cookie path

In my ASP.NET application, I want to change the cookie path from the root to some specific folder. How can I do that?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,359 questions
asked 2024-06-13T11:23:12.5066667+00:00
Adeel Mirza 21 Reputation points
commented 2024-06-13T11:42:47.6566667+00:00
AgaveJoe 26,671 Reputation points
2 answers One of the answers was accepted by the question author.

Mac cursor on button

Hi, In window I did this code and is not working on MAC. How do i fix it ? Thanks, Microsoft.Maui.Handlers.ButtonHandler.Mapper.AppendToMapping("Custom", (handler, view) => { #if WINDOWS using Microsoft.UI.Input; using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-05-30T10:34:02.6266667+00:00
Dani_S 3,066 Reputation points
commented 2024-06-13T10:53:35.1666667+00:00
Dani_S 3,066 Reputation points
3 answers

Dispose File stream and stream

Hi, Does I handle the dispose in correct way ? Note: This line contentStream.CopyTo(fileStream); can take long time. I got contentStream here from download file from our website. var zipPathForFolderOrPathForFile =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
asked 2024-06-11T07:29:35.66+00:00
Dani_S 3,066 Reputation points
commented 2024-06-13T10:49:29.4266667+00:00
Dani_S 3,066 Reputation points
2 answers

How to restart the service when time is reach only once a day

Hi, in continue to https://learn.microsoft.com/en-us/answers/questions/1663229/service-monitor how to restart the service when time is reach only once a day ? protected override async Task ExecuteAsync(CancellationToken stoppingToken) { while…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
asked 2024-06-06T10:23:27.6266667+00:00
Dani_S 3,066 Reputation points
commented 2024-06-13T10:47:29.94+00:00
Dani_S 3,066 Reputation points
1 answer

.Net Framework

.net framework 1.1.4322 won't run on win 11

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
asked 2024-06-13T09:55:57.54+00:00
Robinson Putsoane 0 Reputation points
answered 2024-06-13T10:13:43.3966667+00:00
Miguel Gonçalves 411 Reputation points
0 answers

How can I add a video view to my iOS .NET project?

I want to play a video in my iOS .NET project. I have installed the NuGet package XamarinMediaManager version 1.2.2: https://github.com/Baseflow/XamarinMediaManager But the problem is that I only hear the sound of the video when I debug on my iPad. I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-12T11:59:53.5666667+00:00
Kim Strasser 686 Reputation points
commented 2024-06-13T09:58:26.78+00:00
Kim Strasser 686 Reputation points
1 answer

How to remove MAUI .NET Entry white space?

I've a entry in my android app. As in picture, text is clipped, and there is a big white space around. Is it possible to made text bigger, without clipping it, reducing the white space? <Style TargetType="Entry"> <Setter…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-13T08:07:03.3+00:00
Ajeje Brazorf 106 Reputation points
answered 2024-06-13T09:39:38.3266667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 70,556 Reputation points Microsoft Vendor
0 answers

How to fix slower performance with Microsoft.Data.SqlClient.TdsParserStateObject ReadSniSyncOverAsync method?

How to fix slower performance with Microsoft.Data.SqlClient.TdsParserStateObject ReadSniSyncOverAsync method when it has multiple calls (21) in a transaction with average execution time of 6116 ms per call and totalling to 128436 ms?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,051 questions
asked 2024-06-13T09:10:47.4366667+00:00
ShahSamir-9495 0 Reputation points
edited the question 2024-06-13T09:37:17.5633333+00:00
Lan Huang-MSFT 27,716 Reputation points Microsoft Vendor
0 answers

ASP.NET azure hosted app / sql server Works on localhost only

When I run my simple CRUD app on localhost it works really good. Hint: It is using SQL server to insert data and server is hosted on my Azure Subscription inside same Resource Group Deployed app : myAzureWebsitesLink.net Not working route : School -…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,281 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,359 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
807 questions
asked 2024-06-11T20:15:24.4333333+00:00
Anel Hodžić 0 Reputation points
commented 2024-06-13T09:17:13.3166667+00:00
Anel Hodžić 0 Reputation points
0 answers

Build error "The type 'BaseVideoView' already contains a definition for 'PlayerStateChanged'" when integrating android library in .net maui application

I have an native android library for video player and added this library(.aar) to android binding library in .net maui 8.0 to integrate the library with .net maui. I have followed the steps in the link…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-10T10:51:40.6233333+00:00
Suvarna KR 0 Reputation points
commented 2024-06-13T09:10:29.1633333+00:00
Suvarna KR 0 Reputation points
2 answers One of the answers was accepted by the question author.

The "CreateAppHost" task failed unexpectedly. How do I fix this?

I opened a project I worked on a few months and a few updates ago. Now I can't open the form designer. The error list states: MSB4018 The "CreateAppHost" task failed unexpectedly. System.IO.IOException: The requested operation cannot be…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 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,466 questions
asked 2024-06-13T00:02:22.32+00:00
Jon Hall 0 Reputation points
accepted 2024-06-13T09:10:24.3866667+00:00
Jon Hall 0 Reputation points
2 answers

How to disable Localization in Windows.

Hello Team, Currently my application configured with the different resx files. So when ever any change in the language in the device it automatically updates with the respective language. I want restrict that. On changes the language, changes should…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-11T10:08:29.73+00:00
Vaibhav Methuku 80 Reputation points
answered 2024-06-13T09:08:54.68+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,746 Reputation points Microsoft Vendor
1 answer

The color of hamburger icon in FlyoutPage always be changed to the white in Maui.

My project is using FlyputPage as follows: <FlyoutPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-12T08:57:33.9666667+00:00
Junior Jiang 6 Reputation points
answered 2024-06-13T08:58:24.4066667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,266 Reputation points Microsoft Vendor
1 answer

StackOverflowException after upgrading from .Net 6 to .Net 8

Hi, I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,281 questions
asked 2024-05-29T09:57:50.6666667+00:00
Abhishek, Burra 5 Reputation points
commented 2024-06-13T08:44:57.9766667+00:00
Abhishek, Burra 5 Reputation points
0 answers

How to fix "module was not instrumented." Reason:"path_is_excluded" error in Microsoft.CodeCoverage.Console tool?

I'm receiving the following problem while trying to instrument my dll with Microsoft.CodeCoverage.Console tool. module was not instrumented. Reason: path_is_excluded." I'm using Microsoft.CodeCoverage.A console tool for calculating code coverage.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,521 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,695 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,753 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,586 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
334 questions
asked 2024-06-13T06:50:10.2966667+00:00
R M 0 Reputation points
edited the question 2024-06-13T08:40:02.11+00:00
R M 0 Reputation points
0 answers

Scripts inside local html is not working with webview Eval in UWP Xamarin forms

Tried to update the html elements using script with webview Eval, its working fine in android and iOS but it is not working with UWP Xamarin forms. 1.webview.Eval to update the script : Script inside local html :

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,312 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
910 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,466 questions
asked 2024-06-13T05:22:24.0766667+00:00
Keerthana Sathiyanathan 0 Reputation points
edited a comment 2024-06-13T08:37:24.67+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 70,556 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to select multiples images on iOS using .NET MAUI

I'm using .NET MAUI and I want to select multiple images in iOS gallery (photos folder). I tried 2 libraries to do so. The first one is FilePicker, here is the implementation public class PicturePickerImpl : IPicturePicker { async public…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-12T12:51:17.79+00:00
Wyllis Monteiro 21 Reputation points
commented 2024-06-13T08:16:12.8966667+00:00
Wyllis Monteiro 21 Reputation points
3 answers

why can not connect to ios Simulator?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-06-12T03:35:06.8366667+00:00
mc 3,826 Reputation points
edited an answer 2024-06-13T08:14:41.2266667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,746 Reputation points Microsoft Vendor
1 answer

RenderTargetBitmap renders low quality image of the UIElement

Hi, I have a Xamarin.Forms application deployed in UWP, in which I have added Xamarin.Forms.Image to the page and trying to convert the UIElement to image using RenderTargetBitmap, the converted image quality is reduced. Again I have added the converted…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,312 questions
Universal Windows Platform (UWP)
asked 2023-01-17T14:53:16.2+00:00
Imman Kumar 6 Reputation points
commented 2024-06-13T08:12:21.0333333+00:00
Castorix31 82,241 Reputation points
1 answer

.net maui grouping data binding not working, displays blank lines.

My listview does not bind correctly, I'm getting blank lines. ( I'm missing something in the code) (in debug) the for each loop show there is data in the Items object but it does not show up in the listview. Xaml <?xml version="1.0"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,045 questions
asked 2024-05-30T12:51:24.5833333+00:00
tim 140 Reputation points
commented 2024-06-13T08:09:29.0766667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,746 Reputation points Microsoft Vendor