24,027 questions with .NET-related tags

Sort by: Updated
3 answers One of the answers was accepted by the question author.

Visual Stuio 2022 Bugs

HI Guys, Does anyone have any idea how to fix the new visual studio 2022 bug? Explain When I add more than 2 Buttons regardless <ASP:Button OR <ASP:LinkButton that I add to the form only 2 works the 3rd one does not work, the button shows on…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,281 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,291 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,125 questions
asked 2022-04-04T17:22:05.42+00:00
Jose Saiz 21 Reputation points
accepted 2022-04-05T13:01:13.08+00:00
Jose Saiz 21 Reputation points
0 answers

.NET 4.5 WinForms Frame

Hey, My WinForms app is in .NET 4.0 Full, I'm considering to upgrade the project to .NET 4.5. BTW .NET 4.5 WinForms has a new large form border style, looks ugly IMO. Is there any workaround to make the .NET 4.5 forms looks like the older ones? …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,836 questions
asked 2022-04-04T16:14:59.953+00:00
OSVBNET 1,386 Reputation points
commented 2022-04-05T12:33:45.78+00:00
Karen Payne MVP 35,196 Reputation points
3 answers

Unable to resolve class library references in dotnet core 5 app

I have class library and i have used that class library as a project reference in my dotnet core 5 webapi project. And i have used it in the controller like this But when i hit this controller from post man i get error saying: Im…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
asked 2022-04-05T07:13:24.23+00:00
Muhammad Nabeel Iqbal 0 Reputation points
commented 2022-04-05T11:09:04.697+00:00
AgaveJoe 26,141 Reputation points
0 answers

How does an installer add a firewall inbound rule?

Hi. I am implementing an installer. Since some of executable files open sockets so Windows Defender alerts for the files. This alert stops the application. So I am going to implement adding firewall rules by an installer. In order to add the rule, I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,401 questions
asked 2022-04-05T11:07:59.763+00:00
takumi harayama 1 Reputation point
1 answer

MVC checkbox postback and refresh in the dashboard

I have an existing MVC application to read one external database to generate pdf upon submit button and its working fine. TimeSheet.cshtml – has the following dashboard display: I was asked to enhance application to insert some checkbox…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,281 questions
asked 2022-03-22T03:37:26.103+00:00
Shri-6058 326 Reputation points
commented 2022-04-05T09:58:07.877+00:00
Lan Huang-MSFT 25,866 Reputation points Microsoft Vendor
0 answers

Tree view with specific field from json

I am developing an winform application using C#. In this application in treeview control I will be showing question and subquestions in tree structure. Source of question and sub-question will be a some specific field in a JSON. On click of a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,401 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,291 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,125 questions
asked 2022-03-30T22:20:41.147+00:00
Surya P Singh 21 Reputation points
commented 2022-04-05T09:55:04.587+00:00
Jack J Jun 24,296 Reputation points Microsoft Vendor
0 answers

ASP.NET Core 6 how can I Use a .pem-chain file or .pem file to set up https

I have an app I have written in asp.net core 6, and I think I have what I need to get https set up. I have a .pem-chain file and a .pem file I can use and I also have a .key file that was created when I generated a .csr file. I looked through all the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
asked 2022-04-04T06:29:42.933+00:00
Nicole Demera 1 Reputation point
commented 2022-04-05T09:45:18.343+00:00
Zhi Lv - MSFT 32,016 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

gridview asp.net doubts

Hello I have one gridview from that im extracting each 20 quantity from the gridview1 data into gridview2 data this is my c# code private void BindGridView() { int SrNoCounter = Convert.ToInt32("1"); List<ItemAllocation> gridSrc =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,281 questions
asked 2022-03-17T13:01:54.407+00:00
RAVI 916 Reputation points
accepted 2022-04-05T08:44:58.833+00:00
RAVI 916 Reputation points
1 answer

Create a separete Database Table for each Chart?

I have About 6 Charts on my website I have a code script that first gets all the dates in a year and adds it to a model List that model list contains 2 values: "Date" and "Value" (for the chart X and Y axis), the dates are all…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,281 questions
asked 2022-04-04T12:20:05.113+00:00
osyris 236 Reputation points
commented 2022-04-05T06:22:37.387+00:00
Zhi Lv - MSFT 32,016 Reputation points Microsoft Vendor
0 answers

System.Net network tracing doesn't work in .net app

System.Net network tracing doesn't work in .net app This is the only output is see in the log file. I made sure the TRACE is enabled : System.Net Information: 0 : [23592] Current OS installation type is 'Client'. …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,281 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,125 questions
asked 2022-04-01T13:47:58.23+00:00
Siv Siri 21 Reputation points
commented 2022-04-05T06:11:34.087+00:00
Yijing Sun-MSFT 7,071 Reputation points
0 answers

Strange Wrapping Patterns

I have a TextView that is doing strange wrapping & not displaying all text. Here is the code & screenshots for 2 of the scenarios: android:text="Remove Visits Before" android:text="Remove Visits Before Visits Before1 2…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-04-04T19:44:45.687+00:00
Nathan Sokalski 4,116 Reputation points
commented 2022-04-05T05:18:09.63+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,661 Reputation points Microsoft Vendor
0 answers

How can I View Alternative Layouts Simultaneously?

I'm not sure where to ask this, so I am asking it here. When a Xamarin.Android app has alternative layouts (such as layout-land), Visual Studio 2022 displays them in the same tab, therefore only allowing you to see only one of them at a time. Because…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-04-04T01:59:39.42+00:00
Nathan Sokalski 4,116 Reputation points
commented 2022-04-05T05:13:36.527+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,551 Reputation points Microsoft Vendor
2 answers

Integration test in .NET6

I do integration test to my system. I have 2 webAPIs and one monitor. "manager" webAPI ->Server->"notify" webAPI I created default client with WebApplicationFactory that sends requests to "manager" webAPI. My…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
asked 2022-03-23T12:06:25.36+00:00
Anna Kozorovitsky 1 Reputation point
commented 2022-04-05T05:01:05.733+00:00
Brando Zhang-MSFT 2,956 Reputation points Microsoft Vendor
0 answers

Can no longer access areas pages in MVC app

When the identity pages in my app were first scaffolded I could access them. Now I can't and don't know why. I get the error 404 “This local host page cannot be found”. The app also portays some weird routing when I try to access the links from within…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
asked 2022-03-14T09:13:27.43+00:00
lm1212 141 Reputation points
commented 2022-04-05T04:55:30.077+00:00
Brando Zhang-MSFT 2,956 Reputation points Microsoft Vendor
2 answers

How to add Bearer token to a request in ASP.NET CORE

I have an API secured by Bearer token to be consumed in a mvc project. I'm using ClientFactory to call the API in mvc. I get the generated token from WeatherForecast [HttpGet] method and use it to to access the Authorized PlayerController methods. It…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 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,291 questions
asked 2022-03-06T07:15:42.717+00:00
amin khosravi 21 Reputation points
commented 2022-04-05T04:52:00.67+00:00
Brando Zhang-MSFT 2,956 Reputation points Microsoft Vendor
1 answer

Edit a Word document within the browser

Hi, I have an ASP.NET web application which has a page to upload Word documents. I am looking for the ability to open/edit Word documents from within the Web application/browser itself and retain the document formatting. All this without the need to…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,281 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,011 questions
asked 2022-03-07T15:46:43.14+00:00
Sunil Ferro 1 Reputation point
commented 2022-04-05T02:39:08.847+00:00
Lan Huang-MSFT 25,866 Reputation points Microsoft Vendor
1 answer

How to remove the default WCF service page?

I have a WCF service hosted on IIS. This service is strictly for use by a thick client application. I am attempting to harden the site to limit hacking and following suggestions online have managed to remove and add headers as need to hide the fact it is…

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,401 questions
asked 2022-04-04T18:26:24.43+00:00
Scott S 1 Reputation point
answered 2022-04-05T02:07:20.497+00:00
Lan Huang-MSFT 25,866 Reputation points Microsoft Vendor
2 answers

MVC 5 Prevent Users From Going Back After Logging In or Out Using Identity Framework

I am building an app using MVC 5 and I ran into a common issue that has been asked over and over but I can't seem to find the right answer using .NET Identity. Once the user logs in, they should not be able to go back to the login page and the same is…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,281 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,291 questions
asked 2022-04-03T19:29:27.11+00:00
Steven Petersen 1 Reputation point
commented 2022-04-05T01:55:25.657+00:00
Yijing Sun-MSFT 7,071 Reputation points
1 answer

Synapse workspace has a 0 core limit

I have a Synapse workspace running a bunch of pipelines every night. The pipelines are starting notebooks which use a spark pool. Since April 1st, all the pipelines failed with this error message: "message": "Operation on target *****…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,401 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,402 questions
asked 2022-04-04T11:48:10.787+00:00
bjorneev 1 Reputation point
answered 2022-04-04T22:37:56.363+00:00
Martin Kruse 1 Reputation point
2 answers One of the answers was accepted by the question author.

Can we Store JSON data as varbinary in SQL server?

I am only creating a staging table to temporary work with JSON data in memory, therefore avoiding it to store in a column per field manner. Instead I would like to store that variable json values in SQL DB entity. I am stuck how to store it? I am…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,401 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,281 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.
12,775 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,555 questions
asked 2022-04-04T05:34:48.323+00:00
Dev_Fuel07 21 Reputation points
answered 2022-04-04T21:31:13.28+00:00
Erland Sommarskog 101.4K Reputation points MVP