24,010 questions with .NET-related tags

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

Xamarin Forms Access every child element's Property

First of all, I am a beginner. I want to access every child element of different types inside a Stack Layout. I tried but could not find any solution. I am using Microsoft Visual Studio Community 2019 Version 16.11.9. MainPage.xaml <?xml…

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,286 questions
asked 2022-01-25T09:34:07.62+00:00
aquabind 21 Reputation points
accepted 2022-01-26T08:13:18.587+00:00
aquabind 21 Reputation points
1 answer

XML serializer error thrown

I am using an xml deserializer to read the contents of an xml file. This is using a resume parsing service. It has been working great for the past year or so but today threw an error pointing to the line FullAddress = EmployerCity + ",…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,277 questions
asked 2022-01-17T23:47:35.893+00:00
M J 661 Reputation points
commented 2022-01-26T06:17:40.663+00:00
Lan Huang-MSFT 25,866 Reputation points Microsoft Vendor
1 answer

WPF project - Could Not initialized shadow calls: Could not load type System.Web.SessionState from assembly System.Web

This is a WPF project in .Net6. Program runs fine on my development machine. When running program from a different machine I get the message - Could Not initialized shadow calls: Could not load type System.Web.SessionState from assembly System.Web. I…

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,678 questions
asked 2022-01-25T11:05:51.877+00:00
cshermak 1 Reputation point
commented 2022-01-26T05:17:52.983+00:00
Hui Liu-MSFT 40,271 Reputation points Microsoft Vendor
3 answers

inserting repeating form elements

I have a form where there are repeated input elements. In the form, there is text box for entering patient name and the repeating elements are inside div. Repeating elements are for inserting pharmacy records. <div class="form-group"> …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,277 questions
asked 2022-01-25T16:15:31.377+00:00
arsar 121 Reputation points
answered 2022-01-26T02:34:06.837+00:00
Yijing Sun-MSFT 7,071 Reputation points
0 answers

Visual Studio android xml design

When I open xml desing I olny see dark screen. How can I fix it?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-24T14:25:25.693+00:00
Fuad Talybov 1 Reputation point
commented 2022-01-26T02:11:10.637+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,661 Reputation points Microsoft Vendor
0 answers

Problem with cameraview after calling cameraView.Shutter();

Something weird here happening and it worked before. cs code void OnRecord(object sender, EventArgs e) { //mediaView.Stop(); Send.Text = "Test Send"; if (mediaView.CurrentState == MediaElementState.Stopped || …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-18T01:04:13.863+00:00
rick ruhl 61 Reputation points
commented 2022-01-26T01:57:07.353+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,451 Reputation points Microsoft Vendor
1 answer

Xamarin.Forms - Screen getting blanked out

I am working on an app that has a browsing, back and delete function :- (App.Xaml.cs) public partial class App : Application { async void Browsing(object sender) { Browser.Children.Clear(); FocusedItem =…

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,286 questions
asked 2022-01-16T14:05:01.253+00:00
gagrim808 26 Reputation points
commented 2022-01-26T01:13:57.083+00:00
JarvanZhang 23,951 Reputation points
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,398 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,836 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,398 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,136 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,194 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,136 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,399 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,277 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,836 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,427 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,286 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,399 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,678 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,826 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,399 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,277 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,116 Reputation points
commented 2022-01-25T08:17:45.527+00:00
JarvanZhang 23,951 Reputation points