23,104 questions with .NET-related tags

Sort by: Updated
0 answers

Trust relation ship issue while using System.Security.Principal.WindowsPrincipal.IsInRole

we are using System.Security.Principal.WindowsPrincipal.IsInRole method to veify the current user is belongs to adminstrato group or not we are passing the corresponding SecurityIdentifier constructed from AccountDomainAdminsSid and domain SID. we are…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,177 questions
asked 2024-02-28T07:08:54.6866667+00:00
Namburi Nagaraju (nnagaraj) 0 Reputation points
edited a comment 2024-02-28T08:25:57+00:00
Jiale Xue - MSFT 17,521 Reputation points Microsoft Vendor
0 answers

Net maui Windows platform how to change grid width according to screen width in collectionview ?

Net maui Windows platform how to change grid width according to screen width in collectionview ? or how to set justify position of grid and width thanks..

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,591 questions
asked 2024-02-27T08:23:48.0066667+00:00
Sami 741 Reputation points
commented 2024-02-28T08:23:48.93+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,416 Reputation points Microsoft Vendor
0 answers

Do we have any nuget package for .Net Android to implement Swipe to view edit and delete feature with RecyclerView?

We are currently migration our Xamarin. Android solution to .Net Android, we have implemented swipe to view edit and delete buttons like below image. in Xamarin we were using one plugin to implement that, but that plugin does not support in .NET Android.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,259 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,177 questions
asked 2024-02-27T05:57:03.8233333+00:00
Shingala A 20 Reputation points
commented 2024-02-28T08:20:41.95+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,416 Reputation points Microsoft Vendor
0 answers

NET8.0 MAUI - MediaElement - Error when trying to stream Audio files stored on AWS S3

Hi I am using MediaElement to Play audio files stored on AWS S3 buckets, using streaming. Everything is correctly setup and I am populating the MediaElement Source property with the url of the Audio file stored in my S3 bucket. I get the following…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,591 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,958 questions
asked 2024-02-27T20:43:12.21+00:00
Riffy 271 Reputation points
commented 2024-02-28T08:03:47.34+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,416 Reputation points Microsoft Vendor
0 answers

Which is the last iOS version supported by visual studio mac?

Hi, We are getting msg from apple that it will only allow us to deploy app with target version 17.0 only after April 29, 2024. but with Visual studio mac we are able to target till 16.4 only. Visual studio mac is not allowing to target 17.0. ITMS-90725:…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,259 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,177 questions
asked 2024-02-28T07:04:01.2933333+00:00
Shingala A 20 Reputation points
edited the question 2024-02-28T08:00:02.6033333+00:00
Shingala A 20 Reputation points
0 answers

System.TypeLoadException: Could not resolve type with token 01000004 from typeref (expected class 'System.Reflection.AssemblyInformationalVersionAttribute' in assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')

MAUI android app is crashing randomly and i am not able to find the root cause of it. Can anyone please help me on this by seeing the below crash log from appcenter. Thanks in advance System.TypeLoadException: Could not resolve type with token 01000004…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,591 questions
asked 2024-02-26T16:05:29.36+00:00
Satya 85 Reputation points
commented 2024-02-28T07:54:08.5833333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 30,741 Reputation points Microsoft Vendor
0 answers

How to avoid tab selection mismatch in tabbed page in .net maui?

In my .net maui project , i am using tabbedpage for tabs. In tabbed page having total 10 tabs. But getting issue while ex. when i am clicking on 5th tab details shows of 9th tab or 10th tab. I am attaching screenshots, In this screenshots i am…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,591 questions
asked 2024-02-27T09:09:37.1933333+00:00
Thombre, Ashish 100 Reputation points
commented 2024-02-28T07:51:19.37+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 30,741 Reputation points Microsoft Vendor
1 answer

DEP0700: Registration of the app failed with PushNotification

In my .NET 8 MAUI application for Windows, I would like to receive push notifications even when the app is closed. For that, I tried to add a background task using this code: private async void RegisterBackgroundTask() { var builder = new…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,591 questions
asked 2024-02-26T16:30:34.42+00:00
Enrico Rossini 126 Reputation points
commented 2024-02-28T07:45:19.4466667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 30,741 Reputation points Microsoft Vendor
0 answers

Shell navigation key error

White navigating, and selecting pages back and forth, I get this error An item with the same key has already been added. Key: 0 I do not understand it, I cheek the stack and I found this. at…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,591 questions
asked 2024-02-27T07:47:44.1533333+00:00
Eduardo Gomez 3,196 Reputation points
commented 2024-02-28T07:42:30.0566667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 24,341 Reputation points Microsoft Vendor
1 answer

.NET Blazor Routing

Hello, I have a razor page named Contact.razor. I want to localize it so when you select one of the 3 languages, the route changes accordingly. Meaning, I don't want to only change the culture but also the route. For example, by default it is /en/contact…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,018 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.
1,320 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,180 questions
asked 2024-02-27T22:25:09.26+00:00
Kuler Master 221 Reputation points
answered 2024-02-28T07:40:23.0266667+00:00
Kuler Master 221 Reputation points
1 answer One of the answers was accepted by the question author.

RAM usage in NET 8

Hi, I want in C# .Net 8 to calculate the usage of RAM. Is it the way ? System.Diagnostics.PerformanceCounter _ramCounter = new System.Diagnostics.PerformanceCounter("Memory", "Available MBytes"); RamCapacity =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,177 questions
asked 2024-02-25T14:40:50.5966667+00:00
דני שטרית 2,226 Reputation points
accepted 2024-02-28T07:39:17.4666667+00:00
דני שטרית 2,226 Reputation points
1 answer

Saving multiple draggable divs in their new positions

I have been able to use that to create drag and drop for multiple divs. What I mean is, whatever position a user drags and drops any div tag, and user clicks the save button, everything on that page will be saved as seen. Then whenever the user returns,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,177 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,180 questions
asked 2024-02-18T23:18:01.1766667+00:00
Donald Symmons 2,746 Reputation points
commented 2024-02-28T07:38:58.43+00:00
Lan Huang-MSFT 23,221 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Maui - close up with confirmations

Hi, I'm using .Net 8. I want when user will close the app he will get promp: If confirm it willl do this code otherwise close operation will be cancell ? How is can be done ? My current code: builder .UseTelerik() …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,591 questions
asked 2024-02-26T10:05:45.4433333+00:00
דני שטרית 2,226 Reputation points
accepted 2024-02-28T07:37:01.0266667+00:00
דני שטרית 2,226 Reputation points
3 answers

Is it possible to prevent a Javascript function from executing in C# if record exista in DB?

Hello community, please I will like to ask if it possible that a Javascript function is prevented from executing from code behind (C#), if a record exists in a database? The reason why I haven't posted any code is that I want to first find out if it is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,177 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,180 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,958 questions
asked 2024-02-27T05:26:56.4+00:00
Donald Symmons 2,746 Reputation points
answered 2024-02-28T07:35:32.5833333+00:00
Lan Huang-MSFT 23,221 Reputation points Microsoft Vendor
1 answer

How to utilize print report the lists of data in the table of an inventory webapp

I have a print report functionality but its output is that the print report javascript takes all of the page looking like a screenshot, what i wanted is that the data in the table only has to be printed, and when i click the print button it'll be in pdf…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,018 questions
asked 2024-02-28T01:08:11.6333333+00:00
MiKhel Navarra 20 Reputation points
answered 2024-02-28T07:29:30.6866667+00:00
Ping Ni-MSFT 1,365 Reputation points Microsoft Vendor
0 answers

Suddenly can't open the windows appliation

Hi! I using my application without issues until now. But, recently, suddenly I can not open my application if my application 's name have Japanese characters. If I change my application's name to only English characters, then I can open my application…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,193 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,177 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,958 questions
asked 2024-02-28T05:18:04.95+00:00
Nguyễn Đức Cang 0 Reputation points
edited a comment 2024-02-28T07:19:46.2333333+00:00
Hui Liu-MSFT 25,511 Reputation points Microsoft Vendor
0 answers

Error accessing web application: ":( Application Error If you are the application administrator, you can access the diagnostic resources."

Hi, I am following the instructions in the module "Develop and configure an ASP.NET application that queries an Azure SQL database". I finally was able to build the web app after getting some help in Q&A. However, when I tried to access the…

Azure SQL Database
Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
619 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,018 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
700 questions
asked 2024-02-25T13:52:30.7966667+00:00
YAU NICHOLAS HENG WAH 20 Reputation points
commented 2024-02-28T07:10:25.7+00:00
JasonPan - MSFT 3,946 Reputation points Microsoft Vendor
1 answer

How to get the call-id in Microsoft Teams?

Is it possible to get the call-id from a running Teams call? I should get call details from https://graph.microsoft.com/v1.0/communications/calls I want to use the call-id here: var result = await…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
8,695 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,018 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,972 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,750 questions
asked 2024-02-14T13:47:07.57+00:00
Ottmann, Thomas 20 Reputation points
edited the question 2024-02-28T06:52:20.06+00:00
ChetanSharmamsft 946 Reputation points Microsoft Vendor
1 answer

Using a MAUI handler to show an ActivityIndicator during WebView navigation on iOS

I have a Xamarin app I'm trying to port to MAUI. It has a WebView control that displays remote HTML content. There is also an ActivityIndicator that is used to indicate when navigation is taking place. On Android, the WebView's Navigating event fires…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,591 questions
asked 2024-02-27T15:54:41.5766667+00:00
Sibalik, Mike 11 Reputation points
answered 2024-02-28T06:42:51.19+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 24,341 Reputation points Microsoft Vendor
1 answer

Which "Maps SDK for Android" version being used in Xamarin.Forms.Maps 5.0.0.2083?

Hi Team, We are currently using Xamarin.Forms.Maps (5.0.0.2083) in our Xamarin Projects. We need to know which "Maps SDK for Android" version the above package uses. com.google.android.gms:play-services-maps: ?? Thanks.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,259 questions
asked 2024-02-27T11:05:41.8866667+00:00
Vinayagamoorthy K 0 Reputation points
answered 2024-02-28T06:25:39.3533333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 64,416 Reputation points Microsoft Vendor