24,043 questions with .NET-related tags

Sort by: Updated
0 answers

Can the Blazor WASM AOT runtime load assemblies at runtime?

In order to extend UIs post-build time it would be super handy to have the ability to load assemblies at runtime. I believe this was possible with Blazor WASM, is it possible with the AOT runtime?

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,401 questions
asked 2021-08-29T02:15:26.087+00:00
Rapzid 1 Reputation point
commented 2022-01-25T21:11:42.05+00:00
Spencer Dahl 1 Reputation point
0 answers

xamarin forms ios: getting Native Crash Reporting

I am getting this using Xamarin Forms and deploying on an iPad Air (4th gen) on iOS 14.8.1. I develop using VS 2019 v 16.11.5. There is no Mac connected. I get this output in this way: I request VS to deploy and run on the iPad. It does some stuff and…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2021-11-09T17:53:36.363+00:00
WillAutioItrax 201 Reputation points
commented 2022-01-25T21:10:54.377+00:00
WillAutioItrax 201 Reputation points
0 answers

BLE Disconnect Winforms application

I have a winforms application that I using to connect/communicate to my BLE device. When I am finished with the object, I dispose of the services and then dispose the ble object. However, it won't connect again unless I close the application completely.…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2022-01-25T19:08:31.693+00:00
Bernstein, Harvey 1 Reputation point
commented 2022-01-25T19:30:17.92+00:00
Viorel 112.5K Reputation points
1 answer

Cannot open log for source '.NET Runtime'. You may not have write access

I have created on Blazor server app with default template in VS2022 and added one new API controller class with single get method to return some data from PGSQL. Its throwing error as An error occurred while writing to logger(s). (Cannot open log for…

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,401 questions
asked 2022-01-25T17:34:30.037+00:00
Ajmot Sk 1 Reputation point
commented 2022-01-25T19:18:06.837+00:00
AgaveJoe 26,141 Reputation points
0 answers

Bringing data from DAL to UI

I'm doing a simple task, but thinking about what would be the best approach. Assuming I have 2 tables: Product Code, Name, Manufacturer, Year, Stock ProductSpecs Color, Weight, Height, Width, Value, Commission So in my frontend I want to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,201 questions
asked 2022-01-25T16:53:14.203+00:00
ANB 181 Reputation points
commented 2022-01-25T19:10:37.94+00:00
AgaveJoe 26,141 Reputation points
2 answers One of the answers was accepted by the question author.

design issues for my project for entity model and view

I am trying to describe the requirements of my project. Hope you will be able to understood it. In my project there are three primary data models, User table, address table and relationship table. One user will have only one address so it is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,406 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,284 questions
asked 2022-01-23T08:15:51.237+00:00
arsar 121 Reputation points
accepted 2022-01-25T16:08:27.873+00:00
arsar 121 Reputation points
1 answer One of the answers was accepted by the question author.

NativeAnimation on StackLayout

Hi to all, xct declared as xmlns:xct="http://xamarin.com/schemas/2020/toolkit" I want to add NativeAnimation to a stacklayout with a TapGestureRecognizer but I have this problem: If I add …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-21T11:15:22.15+00:00
vanKraster 181 Reputation points
accepted 2022-01-25T15:48:06.473+00:00
vanKraster 181 Reputation points
1 answer One of the answers was accepted by the question author.

Change windows lock screen image - Microsoft.Windows.SDK.Contracts

I'm trying to change lock screen images in the windows form application by using Microsoft.Windows.SDK.Contracts. First time I have tried this code that was written for the UWP app and working fine there: StorageFolder tempFolder =…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,428 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,294 questions
asked 2022-01-24T13:11:24.073+00:00
Saud Khan 26 Reputation points
accepted 2022-01-25T15:39:30.56+00:00
Saud Khan 26 Reputation points
1 answer

Is there a alternative for Microsoft.Jet.OLEDB.4.0 for 64bit Linux OS?

I have one application writtern in .NetCore 3.1 where it reads flatfile and convert it in .mdb file using Microsoft.Jet.OLEDB.4.0. Now I am trying to deploy this application in 64 bit Linux container and my application is throwing error…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,406 questions
asked 2021-02-18T04:29:15.943+00:00
Sandesh Mainali 1 Reputation point
answered 2022-01-25T15:13:46.333+00:00
jeanie77 1 Reputation point
1 answer

Updating UI in WinUI3 app

I am trying to update a UI from a UI thread as below in a WINUI3 app. I am getting an error like below: System.InvalidOperationException: 'A method was called at an unexpected time. Below is the code: public async void UpdateUI() { await…

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,679 questions
asked 2022-01-21T19:04:14.17+00:00
sct 1 Reputation point
answered 2022-01-25T10:37:34.55+00:00
Castorix31 81,831 Reputation points
0 answers

Entity FrameWork 6.x is intalled in 2019 Community edition.Installed Microsoft.AspNet.EntityDataSource package also but Giving Error with compatibility.

This version of the Entity Data Source wizard is only compatible with Entity Framework 5. If you're not using Entity Framework 5 you can configure the control by editing the markup on the page. The page editor has IntelliSense support for ASP.NET…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,406 questions
asked 2022-01-24T11:00:34.16+00:00
pras 1 Reputation point
commented 2022-01-25T09:28:00.373+00:00
Jack J Jun 24,296 Reputation points Microsoft Vendor
5 answers

Change the values of dropdown when the values of other dropdown changes

Hi, I have two drop downs "TestTypes" and "VersionNumber". I am filling the values of these drop downs in Controller from list : ViewData["TestTypes"] = allowedTestTypes.Distinct().ToList(); …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,284 questions
asked 2022-01-24T12:35:27.86+00:00
Santosh Umarani 81 Reputation points
commented 2022-01-25T09:24:13.487+00:00
Yijing Sun-MSFT 7,071 Reputation points
0 answers

Surface Duo Reports Wrong Value For GetWindowVisibleDisplayFrame

I have an app in which I need to know the height of the visible usable area. To do this, I use the following code: Rect visiblebounds = new Rect(); this.dlRoot.GetWindowVisibleDisplayFrame(visiblebounds); I debugged my app on the following: …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-20T20:20:30.173+00:00
Nathan Sokalski 4,121 Reputation points
commented 2022-01-25T08:17:45.527+00:00
JarvanZhang 23,951 Reputation points
1 answer One of the answers was accepted by the question author.

dotnet core 5 hosted in IIS using inprocess (Serilog ???)

Until recently, don't remember if it was under dotnet core 3 or 2, our web application was hosted under IIS using InProcess and was working fine. Lately we upgraded to dotnet core 5 and since, it only works OutOfProcess. That's not entirely truth...…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,201 questions
asked 2021-05-10T15:09:11.05+00:00
Olivier Voutat 96 Reputation points
commented 2022-01-25T07:14:08.853+00:00
Olivier Voutat 96 Reputation points
1 answer

How can I 'read' all user input from text boxes and radio buttons etc. after user has completed a form, and save to a text file?

I have created a windows form with text boxes, radio boxes, check boxes etc., and upon clicking the 'submit' button, i need this write all user input to text file? I've spent hours looking for a solution and the internet is failing me in this one so…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2022-01-15T08:33:56.487+00:00
nadinedavison 1 Reputation point
commented 2022-01-25T07:09:47.107+00:00
Jack J Jun 24,296 Reputation points Microsoft Vendor
1 answer

ASP.Net Core Razor global styles documentation

Where is the ASP.Net Core Razor documentation explaining how to reset a global CSS style to the HTML default style? Razor uses Bootstrap for CSS and I might can find documentation (or at least articles) explaining how to reset a global CSS style to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,201 questions
asked 2022-01-20T22:26:23.337+00:00
Sam of Simple Samples 5,516 Reputation points
commented 2022-01-25T06:58:48.457+00:00
Sam of Simple Samples 5,516 Reputation points
2 answers

How to store a dynamic value outside the .netcore app

Hi, I have a variable in my .netcore app. This changes dynamically and I want it to save value even when the app restarts. What are the options to save it outside the app. I believe SQL Server would be an option, but I guess it is a bit too much to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,201 questions
asked 2022-01-24T15:59:17.837+00:00
Newbie Dev 151 Reputation points
answered 2022-01-25T05:30:46.633+00:00
Zhi Lv - MSFT 32,016 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Visual Studio Hot Reload for code changes not working

Hi I have started using VS 2022. I am having an issue with Hot Reload not working with C# code changes with Android project, even though it is enabled for debugging: When doing code changes and clicking on the Hot Reload, I get the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-19T15:38:45.747+00:00
Riffy 276 Reputation points
commented 2022-01-25T05:28:55.583+00:00
JarvanZhang 23,951 Reputation points
1 answer

Why does my Xamarin.Forms.DataGrid not displaying any data?

Hi everyone, My datagrid is not displaying any data in my datagrid I belief it is a binding issue which I'm overlooking. Here is my xaml code: <ContentView> <ScrollView Orientation="Horizontal"> …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 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,294 questions
asked 2022-01-20T09:02:37.847+00:00
Fourie Laing 1 Reputation point
commented 2022-01-25T05:24:15.473+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,661 Reputation points Microsoft Vendor
2 answers

JSON passing different Model

Can someone tell me how to do this? I have a view with 2 models. I am trying to post 1 of the models back to the controller. But I am not sure how to do that. I have tried to use data: JSON.stringify(LOsBorrower) but this does not even hit the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,201 questions
asked 2022-01-19T20:07:59.007+00:00
EB 1 Reputation point
answered 2022-01-25T02:40:28.057+00:00
Igor Daflon do Couto 1 Reputation point