25,010 questions with .NET-related tags

Sort by: Updated
1 answer

How to display the image file

If the image file is placed in the configuration as shown below, What is the most efficient way to display an image? * I would like to display it in consideration of the burden on the application. Currently, Properties:Build actions:Embedded…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
asked 2020-12-10T23:05:39.43+00:00
TS44 81 Reputation points
answered 2020-12-11T02:22:02.38+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,171 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Setting up App to access SQL database using SQL Application Role

The App in question (C#, WPF, MVVM, EF) uses an SQL database as its Model/Datasource. It will have several users who will run the App from their windows desktop from within the business network. So for each user the App will need to connect and…

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,710 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,346 questions
asked 2020-12-08T01:24:42.72+00:00
scott thomson 66 Reputation points
commented 2020-12-10T23:30:57.913+00:00
scott thomson 66 Reputation points
1 answer One of the answers was accepted by the question author.

My "QueryAsync" never gets to the "return" statement

I'm using server Blazor with Dapper, using Alan Simpsons YouTube Tutorial. The PlantList.razor Page triggers the generation of a plant list in the PlantService.cs file. The query executes the stored procedure but never gets to the "return…

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,499 questions
asked 2020-12-10T20:21:27.663+00:00
Ed Hansen 26 Reputation points
accepted 2020-12-10T21:56:14.58+00:00
Ed Hansen 26 Reputation points
1 answer One of the answers was accepted by the question author.

iOS app crashes on launch with Xamarin.iOS

I've successfully published our app via Xamarin Forms in Android, but I'm running into some issues for iOS. I can run a release build using a distribution cert and profile successfully on a simulator, but when I try to build an IPA and run it on a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
asked 2020-12-09T23:03:54.803+00:00
Brad Germain 96 Reputation points
accepted 2020-12-10T18:01:56.597+00:00
Brad Germain 96 Reputation points
0 answers

ClickOnce Deployment Failing Due To File Association

We have a WPF application internally deployed to a fileshare that has 1 file association. It has been working great for a long time, but after an update we pushed today, the ClickOnce installer throws an error. The file is no longer associated and the…

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,710 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
967 questions
asked 2020-12-09T03:13:24.463+00:00
Justin 1 Reputation point
commented 2020-12-10T16:24:03.207+00:00
Justin 1 Reputation point
1 answer One of the answers was accepted by the question author.

Log Webhook requests

Remote server periodically sends webhook notifications to us. I want to record the request and send back a 200. The request is a POST to /, so only the headers and payload matter, the headers for authentication, and the payload for the data. The data…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,397 questions
asked 2020-12-09T20:22:24.45+00:00
Boruch Tkatch 141 Reputation points
commented 2020-12-10T15:05:50.567+00:00
Boruch Tkatch 141 Reputation points
1 answer One of the answers was accepted by the question author.

The correct data binding to display the hierarchy

Hi, everybody. I apologize a thousand times for my superficial and possibly trivial question, but I can't figure out how it works. What I need to get: I need to display information about the Department and who it reports to in a hierarchical way in the…

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,710 questions
asked 2020-12-09T10:32:16.227+00:00
Денис Шумков 21 Reputation points
accepted 2020-12-10T09:37:05.043+00:00
Денис Шумков 21 Reputation points
2 answers One of the answers was accepted by the question author.

Xamarin UITableView with UIButton or UITextField on iOS 14.2 does not work anymore

Hello, does anyone also have the problem that when I display a line in UITableView with UITextField or UITextButton, I can't type or click anything? The same code base works on 13.xx and below. A simple example is available here …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
asked 2020-12-09T13:48:16.857+00:00
Sven Reißenweber 21 Reputation points
answered 2020-12-10T09:14:33.36+00:00
Sven Reißenweber 21 Reputation points
1 answer

About the notation of the plug-in you are using

I created an app using the following plug-ins, but if I sell it on Google Play etc., do I have to list all the plug-in notations?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
asked 2020-12-10T07:11:27.48+00:00
TS44 81 Reputation points
answered 2020-12-10T08:22:55.407+00:00
JarvanZhang 23,951 Reputation points
1 answer

windows athentication mode not working

Hi I am following through with Pluralsight tutorial I create empty webform app and set authentication to windows and deny anonymous users and enable NTLM in properties . But when I run app I am not getting log in pop up like the instructor is…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,397 questions
asked 2020-12-08T15:07:02.877+00:00
kobosh 176 Reputation points
answered 2020-12-10T08:09:19.63+00:00
Sam Wu-MSFT 7,286 Reputation points Microsoft Vendor
2 answers

Code first Unique constraint on multiple columns

Say I want a Microsoft SQL Server entity as follows: CREATE TABLE [dbo].[Entity]( [ID] [int] IDENTITY(1,1) NOT NULL, [COL1] [nvarchar] NOT NULL, [COL2] [nvarchar] NULL, [COL3] [nvarchar] NULL, CONSTRAINT [PK_Entity] PRIMARY KEY CLUSTERED Then…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
726 questions
asked 2020-12-06T17:22:22.337+00:00
EuroEager2008 171 Reputation points
commented 2020-12-10T08:00:42.027+00:00
Daniel Zhang-MSFT 9,621 Reputation points
1 answer One of the answers was accepted by the question author.

add a corner radius to tapped page in xamarin forms

how I can add a corner radius to a tapped page and use it in MVVM with prism like this UI in xamarin forms

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
asked 2020-11-30T19:08:16.907+00:00
anass nassim 41 Reputation points
commented 2020-12-10T05:40:18.887+00:00
Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
0 answers

System.InvalidOperationException: Type 'System.ServiceModel.WasHosting.MetabaseSettingsIis7Factory

We have hosted WCF service (http://localhost:2010/Service.svc) on Windows Server 2012 R2 and getting the below error. Any help will be high appreciated. Type 'System.ServiceModel.WasHosting.MetabaseSettingsIis7Factory, System.ServiceModel.WasHosting,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,570 questions
asked 2020-12-09T17:56:03.313+00:00
Mohammad Salman 1 Reputation point
commented 2020-12-10T02:55:17.853+00:00
Theobald Du-MSFT 326 Reputation points
2 answers

Disk Detection and Drive Leeters Assignment in VB.Net

Hi, Currently I am using Diskpart (Windows command line utility) to manage disks and assign drive letters. Disk 0 is present almost 99.99% scenarios, however, I need to check for the disk 1 and disk 2 all the time. If disk 1 is present,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 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,665 questions
asked 2020-12-09T09:28:06.457+00:00
~OSD~ 2,151 Reputation points
answered 2020-12-10T02:35:36.55+00:00
Xingyu Zhao-MSFT 5,361 Reputation points
0 answers

customized menu items of my excel Add-In application

HI, Team, my Excel Add-In application was developed by .net 4.7. I add some menu items into right click menu in order to i can execute that function eg(Refresh Sheet) with VBA code, this works well for past years. but recently, there is a client…

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,710 questions
asked 2020-12-07T05:37:50.73+00:00
Julie Shen 1 Reputation point
commented 2020-12-10T02:08:31.54+00:00
Julie Shen 1 Reputation point
1 answer One of the answers was accepted by the question author.

.net 5.0 seems to be wrong in detecting zero-terminzted string

The following code: class Program { static void Main(string[] args) { const string s = "abc"; const string sz = "abc\0"; void Report(string str) =>…

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,641 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,141 questions
asked 2020-12-09T17:09:31.873+00:00
Anatoli Koutsevol 21 Reputation points
accepted 2020-12-09T22:58:43.48+00:00
Anatoli Koutsevol 21 Reputation points
1 answer One of the answers was accepted by the question author.

Missing Android 11 in SDK Manager

I'm running Visual Studio for Mac 8.8.3, and when I open the Android SDK Manager I don't see Android 11. I see Android 10 and below. Is there something I am missing?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 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,883 questions
asked 2020-12-08T20:46:30.963+00:00
Clay 61 Reputation points
accepted 2020-12-09T14:48:21.21+00:00
Clay 61 Reputation points
0 answers

showing picker inside a listview

Hi all, I am working with the ListView where my requirement is to show a picker inside it, but I am facing an error like this System.ArgumentNullException: 'Value cannot be null. Parameter name: element' for more information, I have shared a code in…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
asked 2020-12-09T08:24:51.847+00:00
mauli 1 Reputation point
commented 2020-12-09T11:49:55.577+00:00
JarvanZhang 23,951 Reputation points
3 answers One of the answers was accepted by the question author.

Accessing on-premise Dynamics v8 via OData using RestSharp/System.Net.Http

Hi there! I'm trying to access data from our on-premise Dynamics (v8) via OData WebService using RestSharp / System.Net.Http but in this case i'm kind of stuck. I fiddled around a couple of days now and the problem seems to be somewhere around the…

.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,141 questions
asked 2020-12-08T14:20:34.863+00:00
grinsehinze 96 Reputation points
accepted 2020-12-09T11:15:37.787+00:00
grinsehinze 96 Reputation points
0 answers

How to set Cipherspec preferences for .NET Core applications on Linux

On Windows we can edit Windows Group Policy to set the cipherspec preferences. But how do we achieve the same on Linux for .NET Core applications

.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,141 questions
asked 2020-12-09T09:52:25.11+00:00
Ram Ch 1 Reputation point