Microsoft Q&A

.NET

13,114 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,114 questions with .NET-related tags

Sort by: Updated
4 answers

how to use where in my order-details?

public class Order{ public int Id{get;set;} public int UserId{get;set;} public DateTime CreateTime{get;set;} public List<OrderDetail>OrderDetails{get;set;} } public class OrderDetail { public int Id{get;set;} public int ProductId{get;set;} public…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,614 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
430 questions
asked 2023-02-09T01:01:56.52+00:00
打玻璃 1,546 Reputation points
edited a comment 2023-02-09T08:20:00.6733333+00:00
打玻璃 1,546 Reputation points
0 answers

How to Embed SSRS report in ASP.Net CORE

To Embed SSRS report in existing web We had the report viewer in ASP.NET and we have migrated to asp.net core we are not able to embed SSRS report Can we get some help

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,614 questions
asked 2023-02-09T08:18:16.12+00:00
Shashank Gowda 0 Reputation points
0 answers

(Xamarin.Forms) Android API 28 or later, I want to focus on the app when the app starts.

What we want to achieve. In Xamarin.Forms since Visual Studio 2017 (API28), the entire app does not get focus when launching the app. DispatchKeyEvent() function does not take the first ACTION=KEYDOWN, only ACTION=KEYUP. Prior to API27, the entire app…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,825 questions
asked 2023-02-09T08:12:34.72+00:00
3-hand-gum 0 Reputation points
0 answers

SsdtHelper.DeployDacPacWithOptions() fails with System.MissingMethodException: Method not found: 'Void Microsoft.SqlServer.TransactSql'

I have a .NET Framework 4.6.1 (upgrading to 4.6.2 doesn't solve it) project that uses DacServices to deploy my database's SSDT on a Docker container. This eventually uses the following code: using (var fileStream = new FileStream(dacpacPath,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
644 questions
asked 2023-01-23T12:08:46.3933333+00:00
Ron Anoshi 0 Reputation points
commented 2023-02-09T08:09:27.9733333+00:00
Ron Anoshi 0 Reputation points
0 answers

showing a large pdf file embedded on a browser

I am trying to show a pdf file embedded in my browser window. My code shows a small pdf file on the browser, but it does not show the large pdf file. Below is my code: Model class: public class FileModel { public int FileModelId { get; set; } …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,614 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
623 questions
asked 2023-02-08T23:54:49.76+00:00
Anjali Agarwal 141 Reputation points
commented 2023-02-09T08:07:07.3133333+00:00
Farid Uddin Kiron MSFT 81 Reputation points Microsoft Employee
0 answers

2 Factor Authentication does't working in my ASP.NET MVC5 application.

Hello Now I'm developing a web application with ASP.NET MVC5 using C#. I wanna implement 2factor authentication with AmazonSES. Its working well on my laptop local environment. Then I deploy this application to Azure App Service, its not working…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
623 questions
asked 2023-02-09T08:03:49.6833333+00:00
edited the question 2023-02-09T08:04:17.0066667+00:00
0 answers

Maui stuck in release building when Microsoft Graph is added

Hi Am having issues trying to build a release of my Maui app when adding Microsoft.Graph I have tried different computers, different versions of Graph and even a clean template but with the same result. The only kind of logging I can give is shown…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
917 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
608 questions
asked 2023-02-08T09:14:02.71+00:00
christian 0 Reputation points
commented 2023-02-09T07:55:36.4033333+00:00
christian 0 Reputation points
0 answers

IBindingConfigurationElement alternate in net core 6.0

Hi, I am working to consume an existing WCF service using the WEBAPI which is to be built in net core 6.0 I need to use IBindingConfigurationElement Interface, of System.ServiceModel.Configuration, but I am not able to find any alternate of this class in…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,614 questions
Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
262 questions
asked 2023-02-08T13:34:08.7666667+00:00
Hari 0 Reputation points
commented 2023-02-09T07:29:09.7633333+00:00
Zhi Lv - MSFT 19,061 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

How to fix double permission popup in xamarin ios web view

When I am trying to use camera in a web view, there are two permissions that are asked in iOS. One is the popup created from browser and the other is created from the Phone. Are there are any ways to avoid the browser popup for camera permission? …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,825 questions
asked 2023-02-06T09:19:10.4933333+00:00
Anila Mathew 0 Reputation points
edited an answer 2023-02-09T07:20:30.6333333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,821 Reputation points Microsoft Vendor
0 answers

Wrong Host name of the website in IIS. Domain name with a hyphen doesn't work.

Hello, I want to run an application in IIS Server and it must run on host name like a "my-app", but it doesn't work. When I try to run the app with domain "my-app.com" it works correctly. Locally on the server everything works…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
412 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,275 questions
Internet Information Services
asked 2023-02-08T11:37:06.1266667+00:00
Kornel Mizdalski 0 Reputation points
commented 2023-02-09T07:19:36.91+00:00
Kornel Mizdalski 0 Reputation points
0 answers

How to fix, Database could not be created due to login failed when trying to deploy to azure

Hello, am getting this errror when trying to deploy to my web api with sqlserver to azure. Severity Code Description Project File Line Suppression State Error Web deployment task failed. ((2/9/2023 9:18:13 AM) An error occurred when the request was…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,614 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.
157 questions
Azure SQL Database
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
318 questions
asked 2023-02-09T06:57:45.31+00:00
David Joseph 0 Reputation points
edited the question 2023-02-09T07:06:53.2533333+00:00
Seeya Xi-MSFT 12,901 Reputation points Microsoft Vendor
2 answers

.net 5 web API with DateTime parameter

Dear Sir I have an app with API controller and Manager to send Endpoint to controller public static class DrEndpoints { public static string ExportFiltered(string searchString) { return…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,614 questions
asked 2023-02-08T16:19:29.24+00:00
arkan salman 1 Reputation point
commented 2023-02-09T07:01:56.8466667+00:00
Zhi Lv - MSFT 19,061 Reputation points Microsoft Employee
2 answers

how do you default a dropdown list value in mvc razor using vb.net and c#

hello I am trying to set a default value for a dropdownlist in vb.net and in c# mvc razor view here is how I populate the list here is how I create the drop list in mvc razor the data options for my list are I would like to default the dropdownlist to…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
623 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
644 questions
asked 2023-02-07T23:00:30.67+00:00
AppDev 1 Reputation point
answered 2023-02-09T07:01:12.0466667+00:00
Lan Huang-MSFT 9,356 Reputation points Microsoft Employee
1 answer

How to fix Error DEP0700 Maui .NET7.0

Can someone please help sort this deployment error once updated to .NET7.0 Error        DEP0700: Registration of the app failed. [0x80073CF6] AppxManifest.xml(33,27): error 0x80070003: Cannot install or update package chhlvl.designIT7_xzp7k71ajzmr6…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
917 questions
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
610 questions
asked 2023-02-08T00:06:19.36+00:00
Anjalee Gamage 0 Reputation points
answered 2023-02-09T06:45:03.8566667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,696 Reputation points Microsoft Employee
1 answer

Open OracleConnection ONGet and Close it OnPost

Hi have a problem I ve been struggling with stateless http request for days on my razpr .NET6 webapp My razor page has a button that opens a modal, this triggers a method (with ajax) public OracleConnection connection { get; set; } public…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,614 questions
asked 2023-02-08T15:07:54.8633333+00:00
Butachan 1 Reputation point
answered 2023-02-09T06:38:31.7966667+00:00
Zhi Lv - MSFT 19,061 Reputation points Microsoft Employee
4 answers One of the answers was accepted by the question author.

asp.net setup doubts

Hello We Have developed one small web application which has aspx page and cs file c# as a code behind. We use database as sql express 2008 R2 Microsoft SQL Server Express Edition with Advanced Services ( sql server management studio …

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
8,597 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
asked 2023-02-03T11:07:51.19+00:00
RAVI 256 Reputation points
accepted 2023-02-09T06:31:29.1+00:00
RAVI 256 Reputation points
3 answers

Sql select most repeated value

Hi, I have a database called a “reader”, and a table called "dailyreader". The dailyreader has 6 columns and i am looking to create a query to select the most repeated values in all columns and show how many times has been repeated. Thanks,

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
8,597 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
644 questions
asked 2023-02-08T13:31:04.7266667+00:00
M Simo 0 Reputation points
answered 2023-02-09T06:22:37.3533333+00:00
Olaf Helper 26,066 Reputation points
3 answers One of the answers was accepted by the question author.

How to create environments with appSettings?

In previous projects i could click the Configuration or Debug menu (in the top bar) and set a new Configuration. This was displayed when i expanded web.config and i could use this to change environments to use different database connection strings…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,614 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
644 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,036 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
623 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
485 questions
asked 2023-02-03T09:02:57.8733333+00:00
Mr Edge 121 Reputation points
accepted 2023-02-09T06:18:10.86+00:00
Mr Edge 121 Reputation points
0 answers

xamarin ios not able to find some of the swift standard runtime libraries.

xamarin ios not able to find some of the swift standard runtime libraries. I am even using linker flag too and it does resolve many errors related to swift runtime libraries but still there few library error such as swiftDataDetection, swiftFileProvider…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,825 questions
asked 2023-02-08T17:28:34.61+00:00
Muhammad nawaz shafiq 0 Reputation points
edited a comment 2023-02-09T06:13:16.76+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,821 Reputation points Microsoft Vendor
0 answers

Xamarin.Forms Speakerphone Stop Activating Suddenly on Android 10

I have App that has been working for years on Android 10, 11, 12 to Turn On/Off SpeakerPhone for Inbound and Outbound calls, but now it works sometimes on Inbound calls but never on Outbound calls. Here is a simple BroadcastReciever and…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,825 questions
asked 2023-01-17T22:27:57.81+00:00
Universal Camera 286 Reputation points
edited a comment 2023-02-09T06:02:42.6+00:00
Universal Camera 286 Reputation points