Microsoft Q&A

.NET

15,441 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

15,441 questions with .NET-related tags

Sort by: Updated
0 answers

Xamarin Forms: Implement push notification tapping on android platform

I have implemented push notification on my Xamarin forms application using FCM. My code [Service(Enabled = true, Exported = true)] [IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })] public class FirebaseNotificationService :…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,019 questions
asked 2023-06-07T14:54:25.0666667+00:00
Sreejith Sreenivasan 111 Reputation points
commented 2023-06-13T09:20:21.03+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 16,776 Reputation points Microsoft Vendor
1 answer

Localisation send email attachment- email not sent

Hi I have written code in mvc to send email. I have localisation for website. When i send an attachment in French .example file name HDFC po 2341. The email is not sent. Getting status as false. Used mailmessage. Need help

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
862 questions
asked 2023-06-08T16:09:52.63+00:00
Guhananth S 1 Reputation point
commented 2023-06-13T09:17:42.8633333+00:00
Guhananth S 1 Reputation point
0 answers

Blazor Hybrid MAUI TimePicker Spinner Style

We are using a TimePicker in Blazor Hybrid MAUI like this: <input type="time" id="arrivalTimePickerH" name="arrivalTimePickerHT" style="width:100%;height:40px;border-bottom:1px #bdbdbd solid;"…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,194 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.
994 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,453 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.
8,264 questions
asked 2023-06-13T09:01:20.9533333+00:00
Erik A 0 Reputation points
0 answers

C# try/catch not work

I'm using WPF/C# .NET 6.0.9 I have a class class library DLL file that contain a method, I use the method with try/catch but it does not work, then application will crash and exit. try { var result =…

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,376 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.
8,264 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,194 questions
asked 2023-06-13T07:35:48.4466667+00:00
hossein tavakoli 426 Reputation points
commented 2023-06-13T08:51:53.31+00:00
Hui Liu-MSFT 17,701 Reputation points Microsoft Vendor
0 answers

Best practices - working with views, key or no key designation during v3 to v6 upgrade

Hello, I am working with multiple .NET functions that use a mix of tables, views, and stored procedures that are defined via DbSets. After upgrading from EF Core 3 to EF 6, we got a lot of errors on the views and stored procedures because they were not…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
523 questions
asked 2023-06-12T18:32:14.1+00:00
Megan A 20 Reputation points
commented 2023-06-13T08:49:55.8866667+00:00
Jack J Jun 23,821 Reputation points Microsoft Vendor
2 answers

I want a database change to be reflected in web forms page without polling the database

Hello I have a web page whose records are based on a database table. If there is a change in the database table I wish to get it reflected on my front end web form in vb.net code behind. I do not want my web page to be refreshed by a user interaction…

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.
562 questions
asked 2023-06-07T02:04:37.62+00:00
Manoj Gokhale 0 Reputation points
commented 2023-06-13T08:47:34.29+00:00
QiYou-MSFT 2,761 Reputation points Microsoft Vendor
0 answers

DP900 certification exam concern

I am very concern due to electric cut issues I missed my DP900 certification exam which I have schedule. kindly consider my request and give me another chance to complete my exam Exam was schedule on 11 June 2023 thankyou

.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
51 questions
asked 2023-06-13T08:40:21.11+00:00
Arpita Singh 0 Reputation points
0 answers

How to fix - You must install or update .NET to run this application

root@ubuntu:/etc/systemd/system# /usr/bin/dotnet /var/www/MinAPI/WebApi.dll You must install or update .NET to run this application. App: /var/www/MinAPI/WebApi.dll Architecture: x64 Framework: 'Microsoft.AspNetCore.App', version '5.0.0' (x64) .NET…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,194 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,184 questions
asked 2023-06-13T08:40:17.94+00:00
Bashar Muhanna 0 Reputation points
2 answers One of the answers was accepted by the question author.

I want add validation with phone and email

If the user wants to register with the same email and phone, I want to get a warning that this email and phone have been registered before. I tried a lot of Ajax code about this, but I was not successful. Can you help? @model…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
862 questions
asked 2023-06-08T14:29:06.58+00:00
Harun Ergün 240 Reputation points
commented 2023-06-13T08:39:19.54+00:00
Harun Ergün 240 Reputation points
0 answers

.net maui change Android and iOS overview icon

In .net maui Android when the "Overview" button in clicked an Icon is shown. How do I change that icon ? On iOS how to change the ".NET" to something else ?:

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,453 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,202 questions
asked 2023-06-08T16:10:47.48+00:00
Eigil Krogh Sorensen 61 Reputation points
commented 2023-06-13T08:35:51.9233333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 48,456 Reputation points Microsoft Vendor
2 answers

Is it possible to get a reference to a specific instance of a COM component?

I have an application that I interact with using VB.NET code through a COM Interface. This all works fine as long as I only have one instance of the application running. However, if I have 2 instances of the application running there is no way to pick…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,124 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,194 questions
asked 2023-06-13T03:30:39.38+00:00
Will Eagan 0 Reputation points
answered 2023-06-13T08:34:18.4366667+00:00
RLWA32 32,161 Reputation points
1 answer

How to use Key Vault reference locally in asp.net (framework) application

Key Vault reference works locally for DotNet Core apps (Functions, ASP.NET Core). But can we use Key Vault reference locally in ASP.NET (Framework) applications. E.g. In framework app, we read app setting values as follows: using…

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
778 questions
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.
562 questions
asked 2023-06-09T07:09:44.6533333+00:00
Bhavya Shah 0 Reputation points
commented 2023-06-13T08:29:37.0133333+00:00
Lan Huang-MSFT 15,376 Reputation points Microsoft Vendor
1 answer

I added a asp.net website project reference to an existing vs 2022 application which reference is any cpu and asp.net website cpu reference is x86 now how should I change asp.net wesite refernce to any cpu in vs 2022

I added a asp.net website project reference to an existing vs 2022 application which reference is any cpu and asp.net website cpu reference is x86 now how should I change asp.net wesite refernce to any cpu in vs 2022. Note: I dont have properties when I…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,494 questions
asked 2023-06-09T03:31:59.1333333+00:00
Bhanu Chandu Ravipati 0 Reputation points
commented 2023-06-13T08:28:36.81+00:00
Lan Huang-MSFT 15,376 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to fix 'The repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-22.04-prod jammy Release' does not have a Release file.'

I am trying to publish a .NET 5.0 Web API to an Ubuntu Server with a 22.04 version, and when I want to install the .NET 7.0 since the 5.0 is no longer supported running the below command sudo apt-get update && \ sudo apt-get install -y…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,184 questions
asked 2023-06-12T11:43:28.54+00:00
Bashar Muhanna 0 Reputation points
accepted 2023-06-13T08:28:06.86+00:00
Bashar Muhanna 0 Reputation points
1 answer

When adding DataSet in ASP.NET Framework 4.7.2 project in Visual Studio 2022 it automatically adds NuGet Package for Microsoft.Data.SQLClient after updating the version from 17.4.3

Whenever we add a new DataSet and Table Adapter in ASP.NET Web Site (Framework 4.7.2) in Visual Studio 2022, it automatically adds NuGet Package for Microsoft.Data.SQLClient. It was not happening in the version 17.4.3 and previous versions of VS2022.…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,202 questions
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.
562 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,194 questions
asked 2023-06-07T12:16:37.1+00:00
Kalsofte 0 Reputation points
commented 2023-06-13T08:26:34.5033333+00:00
Lan Huang-MSFT 15,376 Reputation points Microsoft Vendor
1 answer

VB.NET Entity Framework Using multiple databases

I'm trying to setup Entity Framework 6 in my VB.Net desktop application. I can get it working fine using Production database, but, this is a program where you can login to either production or the test database. When I created the model, I set it up to…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
246 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,194 questions
asked 2023-06-09T15:41:14.4233333+00:00
Joseph Mancini 41 Reputation points
commented 2023-06-13T08:21:03.2966667+00:00
Jack J Jun 23,821 Reputation points Microsoft Vendor
0 answers

Create API Controllers using entity framework error startIndex

Using database provider 'Microsoft.EntityFrameworkCore.SqlServer'! startIndex cannot be larger than length of string. (Parameter 'startIndex') at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.<BuildCommandLine>b__6_0() at…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
523 questions
asked 2023-06-11T11:15:50.9533333+00:00
NARARIT 0 Reputation points
commented 2023-06-13T08:14:27.7233333+00:00
Jack J Jun 23,821 Reputation points Microsoft Vendor
2 answers

Databinding Problems

Hello everyone and thanks for the help in advance. I am developing a MVC application that posts a list of a model to a controller. The model: public class tbl_Log_Exams { public int? ID { get; set; } public int? ClientID { get;…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
862 questions
asked 2023-06-11T02:06:06.93+00:00
Kmcnet 441 Reputation points
edited an answer 2023-06-13T08:12:50.7433333+00:00
Lan Huang-MSFT 15,376 Reputation points Microsoft Vendor
1 answer

What is the best way in Blazor to initialize a page that hits the DB to initialize itself

Hi all; What I learned in this question is I want to set render-mode="Server" in _Host.cshtml. This way the page is rendered once. But... this is also the slowest way to render the page. If the code in my OnInitializedAsync() is hitting the DB,…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
994 questions
asked 2023-06-12T20:39:32.6366667+00:00
David Thielen 1,126 Reputation points
edited a comment 2023-06-13T08:09:42.6266667+00:00
Zhi Lv - MSFT 24,636 Reputation points Microsoft Vendor
2 answers

Cookie is not getting updated in IIS hosted ASP.NET MVC app

In our ASP.NET MVC app hosted on IIS, we face an issue where the cookie is not getting overwritten when the user switches culture. However, interestingly, when we debug the app using IIS Express, the cookie works fine. We're curious about the possible…

Internet Information Services
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
862 questions
asked 2023-06-10T20:43:00.0466667+00:00
thunder12 41 Reputation points
answered 2023-06-13T08:03:12.5933333+00:00
XuDong Peng-MSFT 5,096 Reputation points Microsoft Vendor