10,569 questions with C#-related tags

Sort by: Updated
0 answers

Setting PropertyBag Property without allowing custom scripts

We are setting Propery Bag values of a Sharepoint Online Web from an Azure Function using the Microsoft.SharePoint.Client (Microsoft.SharePointOnline.CSOM) Library with the SetPropertyBagValue. For setting a Property Bag value the "Allow Custom…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,147 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,569 questions
asked 2024-07-04T12:35:08.1166667+00:00
Martin Ewald 0 Reputation points
0 answers

azure account and I want to set up a win2012r2 server,

I have an azure account and I want to set up a win2012r2 server, but there is no win2012r2 in the list. I know that the support has been discontinued and it causes security problems because it will no longer be updated, but I still want to set up a…

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,569 questions
asked 2024-07-04T12:21:13.4233333+00:00
zloooy_fe zloooy_fe 5 Reputation points
0 answers

How to create an MS style documentation

We are currently looking for ways to automatically create a documentation for our whole codebase. There are many tools out there DocFX, Sandcastle, Doxygen. How does MS create its documentation. For us the style of the MS is very good, and we'd like…

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,569 questions
asked 2021-07-14T07:27:52.537+00:00
commented 2024-07-04T10:33:25.32+00:00
1 answer

XmlSerializer problem with namespace

Hello! I need to deserialize and serialize this XML. Unfortunately without success. Why, who can solve it? Where is the cause? Target <COM_1 xmlns="urn:biztalk-org:biztalk:biztalk_1"> <body> <doc:Z_COATING_ORDER…

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,569 questions
asked 2024-07-03T18:48:11.1166667+00:00
Noah Aas 340 Reputation points
commented 2024-07-04T09:36:46.51+00:00
Jiale Xue - MSFT 42,146 Reputation points Microsoft Vendor
1 answer

ADFS retrieving claims using native client application

Hi, We are currently attempting to write a test application in C#, which needs to retrieve certain claims upon authorization. No matter what we have tried, it seems we only receive the same 10 claims from the ADFS server (see image for the received…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,571 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,219 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,569 questions
asked 2024-07-01T22:16:09.97+00:00
G_Niles 0 Reputation points
commented 2024-07-04T09:27:51.9266667+00:00
Jiale Xue - MSFT 42,146 Reputation points Microsoft Vendor
4 answers

could not load file or assembly'Microsoft.data.sqlclient'

how to solve this error

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,571 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 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,819 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,193 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,569 questions
asked 2023-09-12T17:01:47.29+00:00
Niyati Savaliya 0 Reputation points
commented 2024-07-04T09:27:26.8866667+00:00
Steven Xi 6 Reputation points
2 answers

How to set a fixed width for the header of TabViewItem in TabView

There is a TabWidthMode property for TabView to specify the width of the tabs. But I want to set a fix width for each tabs. So how to do it? I have a Style setting for the TabViewItem, but I don't know how to add the Width property into…

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.
745 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,569 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.
784 questions
asked 2024-07-04T02:44:23.1733333+00:00
C CB 85 Reputation points
edited an answer 2024-07-04T09:16:54.48+00:00
Castorix31 82,751 Reputation points
2 answers One of the answers was accepted by the question author.

How to save a many to many relationship with Entity Framework

Hi, I have a many to many relationship between Flight and Journey, so I have created an intermediate table to create the relationship: the thing is, I have a list of flights and one Journey, so how can I create the code to make the assembly so I can…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
719 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,569 questions
asked 2023-03-21T00:31:43.34+00:00
Jhon Hernandez 21 Reputation points
answered 2024-07-04T08:59:22.9033333+00:00
MARTIN JOY 0 Reputation points
0 answers

webservice service System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; number, NumberFormatInfo info, Boolean parseDecimal)

I am currently encountering an issue with a web service. The server-side field MinimumOrderAmount is of type double, and in my receiving program, I have defined it as decimal. When the server sends a value of 9999999999 for MinimumOrderAmount, my program…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,571 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 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,569 questions
asked 2024-07-04T03:09:31.28+00:00
Xu Li 0 Reputation points
commented 2024-07-04T08:54:28.3166667+00:00
Lan Huang-MSFT 28,821 Reputation points Microsoft Vendor
0 answers

SpeechSynthesizer sometimes plays speech depending on SpeechSynthesisOutputFormat

In a C# WPF application, I call this function to convert text to speech: SpeechSynthesisResult speechSynthesisResult = await speechSynthesizer.SpeakSsmlAsync(strSsml); The audio data is returned ok. BUT the function also sometimes plays the speech as…

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,511 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,056 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,569 questions
asked 2024-07-03T14:10:30.4733333+00:00
One More Henry 20 Reputation points
commented 2024-07-04T08:41:08.3966667+00:00
One More Henry 20 Reputation points
1 answer

Manage Bluetooth with an ASP.NET app

good evening, I find myself creating a web application with asp.net in windows 11 also targeting previous versions, for managing bluetooth. I tried to integrate Windows.Device.Bluetooth with the VS22 package, but I get error NETSDK1130. I would like to…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 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,569 questions
asked 2024-07-03T10:06:53.05+00:00
Eric Marziali 0 Reputation points
edited a comment 2024-07-04T07:28:56.6766667+00:00
Lan Huang-MSFT 28,821 Reputation points Microsoft Vendor
3 answers

How to insert HTML to a Blazor WASM?

I am working on an e-commerce solution. The client side is a Blazor WASM .Net 6 project. I am trying to use a 3rd party payment gateway and unfortunately, their support is very poor. I am trying to progress by trial and error. On the checkout razor page,…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,342 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,475 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,569 questions
asked 2024-07-03T05:05:43.7233333+00:00
Cenk 986 Reputation points
commented 2024-07-04T06:28:35.18+00:00
Cenk 986 Reputation points
2 answers

Error when building Unity+MRTK3.0 project: 'The type or namespace name 'EyesPose' could not be found'

I am building a project with Unity+MRTK3.0, and I am getting an error that states: 'The type or namespace name 'EyesPose' could not be found'. However, the script 'EyeCalibrationChecker' has 'using Windows.UI.Input.Spatial'. The error message shows:I am…

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,569 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
388 questions
asked 2024-07-01T09:26:28.8233333+00:00
Liang Chen 0 Reputation points
answered 2024-07-04T02:04:56.34+00:00
Ying Li - MSFT 890 Reputation points Microsoft Vendor
1 answer

.Net Maui writing to Xaml file.

I would like the user to be able to modify the XAML to fit their visual needs for example make text larger. And then be able to save that setting and reload the XAML file for that particular user. I get a compiler Error saying the name 'XamlWriter' does…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,141 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,569 questions
asked 2024-07-03T16:12:26.7433333+00:00
Tom Meier 180 Reputation points
answered 2024-07-03T22:43:41.1633333+00:00
Bruce (SqlWork.com) 60,206 Reputation points
1 answer

Apply WSS to SOAP request

Hi, My Requirement is to apply outgoing WSS using RSA with SHA 256 using a certificate to the XML. Can you help me with how to achieve this? XML request is attached. xml request.txt

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,569 questions
asked 2024-07-01T16:29:10.02+00:00
sonal khatri 51 Reputation points
edited a comment 2024-07-03T18:16:24.04+00:00
sonal khatri 51 Reputation points
1 answer

The data specified for the media type is invalid inconsistent or not supported by this object

Hi, I have an windows form application which is recording video by using Media Capture. This app is taking hundreds of record in a day but in a few days getting(once in 500-550 record) an error which below; "The data specified for the media type is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,868 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,569 questions
asked 2024-07-01T14:58:38.8666667+00:00
Ali 0 Reputation points
answered 2024-07-03T15:07:24.63+00:00
Michael Taylor 50,581 Reputation points
1 answer One of the answers was accepted by the question author.

Using Localization with DataAnnotation where do you put the ressources file and how to access it

I am using .Net Core 8 I succeed to use StringLocalizer and HtmlstringLocalizer I want to localized DataAnnotation the [Display(Name = "PhotoEpisode")] and the error message [Required(ErrorMessage = "Le sous-titre de l'épisode est…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,342 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,569 questions
asked 2024-07-02T14:57:31.1766667+00:00
Boucourt 85 Reputation points
accepted 2024-07-03T13:07:38.24+00:00
Boucourt 85 Reputation points
1 answer One of the answers was accepted by the question author.

Reading Emails from outlook in C#

Hi, hope you are well. Junior dev here. I am trying to figure out how to get my C# application to read emails from a certain address, if it matches then check if it has an attachment. IF it does extract the attachment and store it locally. I can not…

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,569 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,036 questions
asked 2024-07-02T06:46:39.94+00:00
Keagan S 20 Reputation points
accepted 2024-07-03T11:25:18.81+00:00
Keagan S 20 Reputation points
1 answer

Error Verify Signature XML DGI UY always return false

I am working on validating the signature of an XML envelope in this case from Uruguay, but due to the signature verification method it always returns false using .Net C# The tests carried out with unsuccessful results, apply the following code that…

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,569 questions
asked 2024-06-28T20:06:42.6466667+00:00
Alexi Tomala 0 Reputation points
commented 2024-07-03T09:26:51.7+00:00
Jiale Xue - MSFT 42,146 Reputation points Microsoft Vendor
0 answers

Switching Between System Power Saving Mode in UWP app ,makes the app non-responded for a while

My UWP app was not responding for sometime, when switching between power Saving mode(windows settings) while App was running. To Reproduce the issue , Run the app Open Windows System Battery Settings -> Enable/Disable Power Saving Mode Now try to…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,057 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,571 questions
Universal Windows Platform (UWP)
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,569 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.
784 questions
asked 2024-06-28T10:13:12.27+00:00
Prem Kumar S 0 Reputation points
commented 2024-07-03T08:06:32.83+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor