1,136 questions with .NET Runtime tags

Sort by: Updated
1 answer

error CS0117: 'Marshal' does not contain a definition for 'SecureStringToGlobalAllocUnicode'

Hello, Just want to check if Marshal.SecureStringToGlobalAllocUnicode(SecureString); is supported in .NET 4.5 . I keep getting the above error that Marshall doesnt contain a definition for SecureStringToGlobalAllocUnicode . …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,574 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,136 questions
asked 2020-12-19T08:03:49.44+00:00
Krishna Yalavarthi 1 Reputation point Microsoft Employee
commented 2020-12-19T08:24:31.047+00:00
Viorel 114.2K Reputation points
3 answers

Migrating Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal override to .net 5

Hello, I'm migrating my code from .net core 3.1 to .net 5.0 All works well except for one thing. On my columns in my Entities I have created a custom Annotation like this [CustomAnnotiation("Some key", "Interval in ms")] …

.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,136 questions
asked 2020-12-11T11:51:55.837+00:00
Bart K 1 Reputation point
commented 2020-12-18T10:00:44.307+00:00
Jerry Cai-MSFT 986 Reputation points
0 answers

.NET Framework 4.8 crashed during GC if the profiling API is used

OS: Windows 10 Pro x64 (Build 19042) .NET Framework: 4.8.4084 x64 We have the our customer dump file, but we can check if user allows to share it. Profiling API flags: …

.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,136 questions
asked 2020-12-15T10:47:07.807+00:00
ww898 16 Reputation points
commented 2020-12-17T11:41:53.347+00:00
ww898 16 Reputation points
2 answers

How to find Class/Entity complete namespace where it is used in solution/source code with their line number

Hi folks, I hope you are doing well. I want to write a program in C# that extract Class/Entity complete namespace where it is used in solution/source code with their line number I do research from internet I have found some references but it can't…

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,580 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,136 questions
asked 2020-11-27T06:33:32.153+00:00
Saifullah 1 Reputation point
commented 2020-12-17T04:59:09.5+00:00
YASER SHADMEHR 781 Reputation points
1 answer

Can't find .NETFramework

.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,136 questions
asked 2020-12-16T23:55:48.87+00:00
answered 2020-12-17T02:13:46.213+00:00
Jerry Cai-MSFT 986 Reputation points
1 answer One of the answers was accepted by the question author.

How can I write an XmlElement to an XmlTextWriter, where the element may have children

Hi all; Is there an easy (single call) way in .NET to write an XmlElement to a XmlTextWriter where that element is written out in full to the output? Where the XmlElement may have many child elements and they have children, etc. And where it…

.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,136 questions
asked 2020-12-13T20:27:24.357+00:00
David Thielen 2,526 Reputation points
commented 2020-12-16T14:32:04.9+00:00
David Thielen 2,526 Reputation points
1 answer One of the answers was accepted by the question author.

Apply lazy Loading in Your Project

Hello, 1. What context have you used lazy loading in your hobby project or real based project from your work experience? (https://weblogs.asp.net/morteza/Why_and_how_to_use_lazy_initialization_in_Csharp_using_LazyT_API) 2. Do you have applied…

.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,136 questions
asked 2020-12-13T11:54:49.33+00:00
JJ TT 141 Reputation points
accepted 2020-12-15T16:32:52.043+00:00
JJ TT 141 Reputation points
1 answer

Blocking .NET 5 installation

Hello Microsoft , Looking forward to working with .NET 5.0 but we also need to know how to block the installation on those application servers where its not supported. Is the registry key to block it, “BlockNetFrameWork50” and set the value to “1” ? …

.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,136 questions
asked 2020-12-10T03:41:09.663+00:00
SamT 6 Reputation points
commented 2020-12-15T06:32:44.427+00:00
Jerry Cai-MSFT 986 Reputation points
0 answers

.NET ComException (0x800706BE) on Windows Server 2012R2 startup when querying Win32_Service

Hello, when starting a service automatically on a Windows 2012R2 Server, during the startup of the server the service crashes with the following exception: Stacktrace: Exception: System.Runtime.InteropServices.COMException; at…

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,564 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,136 questions
asked 2020-12-14T09:10:05.39+00:00
Bernhard Führicht 1 Reputation point
commented 2020-12-14T11:03:06.017+00:00
RLWA32 42,551 Reputation points
2 answers One of the answers was accepted by the question author.

UserControl Event Not Firing

I am trying to create a small dot that the user can move around a map. I use a UserControl for the dot: <UserControl .... MouseDown="MeMouseDown" MouseUp="MeMouseUp" MouseMove="MeMouseMove" <Ellipse …

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,706 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,136 questions
asked 2020-11-29T02:28:24.357+00:00
RogerSchlueter-7899 1,236 Reputation points
accepted 2020-12-11T22:51:52.367+00:00
RogerSchlueter-7899 1,236 Reputation points
2 answers

Has Microsoft updated Windows and Office software with .NET-type dll assemblies?

In Visual Studio, Reference Manager includes COM objects for references. Does Windows and Office still use their original dll files? I've read that .NET .dll assemblies have advantages over older kinds of dll files (COM, Win32?). How are…

.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,136 questions
asked 2020-12-04T21:22:40.663+00:00
George Seese 1 Reputation point
commented 2020-12-11T15:23:52.857+00:00
George Seese 1 Reputation point
1 answer One of the answers was accepted by the question author.

.net 5.0 seems to be wrong in detecting zero-terminzted string

The following code: class Program { static void Main(string[] args) { const string s = "abc"; const string sz = "abc\0"; void Report(string str) =>…

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,580 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,136 questions
asked 2020-12-09T17:09:31.873+00:00
Anatoli Koutsevol 21 Reputation points
accepted 2020-12-09T22:58:43.48+00:00
Anatoli Koutsevol 21 Reputation points
3 answers One of the answers was accepted by the question author.

Accessing on-premise Dynamics v8 via OData using RestSharp/System.Net.Http

Hi there! I'm trying to access data from our on-premise Dynamics (v8) via OData WebService using RestSharp / System.Net.Http but in this case i'm kind of stuck. I fiddled around a couple of days now and the problem seems to be somewhere around the…

.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,136 questions
asked 2020-12-08T14:20:34.863+00:00
grinsehinze 96 Reputation points
accepted 2020-12-09T11:15:37.787+00:00
grinsehinze 96 Reputation points
0 answers

How to set Cipherspec preferences for .NET Core applications on Linux

On Windows we can edit Windows Group Policy to set the cipherspec preferences. But how do we achieve the same on Linux for .NET Core applications

.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,136 questions
asked 2020-12-09T09:52:25.11+00:00
Ram Ch 1 Reputation point
1 answer

HttpWebRequest.ProtocolVersion - how do I set it to try 1.0, then 1.1 (or vice versa)?

We have a commercial library and some of our customers need HttpWebRequest.ProtocolVersion=HttpVersion.Version10 and some need HttpWebRequest.ProtocolVersion=HttpVersion.Version10 Is there a way to tell it to try both? Or do I need to add a…

.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,136 questions
asked 2020-12-06T23:33:10.243+00:00
David Thielen 2,526 Reputation points
commented 2020-12-08T10:41:45.417+00:00
Cheong00 3,471 Reputation points
2 answers

Using Volatile

Hello, From you experience using syntax code volatile, what concrete example have you used volatile in your application and why? (https://video2.skills-academy.com/en-us/dotnet/csharp/language-reference/keywords/volatile) Thank you!

.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,136 questions
asked 2020-12-07T14:58:02.367+00:00
JJ TT 141 Reputation points
answered 2020-12-08T07:24:36.767+00:00
Xingyu Zhao-MSFT 5,356 Reputation points
1 answer

.Net 5 Window

How can I create a .Net 5 window without Xaml? Please, no legacy frameworks like Winforms or WPF. I would use UWP, except it has a couple of significant issues ... not easily distributable and not distributable generally. cannot disable Windows…

.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,136 questions
asked 2020-12-06T05:57:20.197+00:00
Gavin Williams 761 Reputation points
commented 2020-12-07T09:35:10.85+00:00
Jerry Cai-MSFT 986 Reputation points
0 answers

Why does AudioPlaybackConnection keep disconnecting from Bluetooth devices in non-UWP applications?

I've created a test method in C# to connect to Bluetooth devices through the newly introduced AudioPlaybackConnection class in the WinRT API. I see that AudioPlaybackConnection is marked with the DualApiPartition attribute, so it should work in desktop…

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,580 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,136 questions
asked 2020-12-07T03:54:33.293+00:00
Brian Mak 1 Reputation point
2 answers

Non-microsoft languages commentary

I develop radar applications on Linux and I have been watching .NET for 20 years. I was excited to see the goals for .NET 5.0 and I thought it might be the time to move to .NET. But, I was disappointed to see that the goal was just…

.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,136 questions
asked 2020-11-27T01:21:27.767+00:00
Forren, Eddie 1 Reputation point
answered 2020-12-04T23:30:12.697+00:00
Forren, Eddie 1 Reputation point
3 answers One of the answers was accepted by the question author.

Linq to sql class error: must add reference to assembly Syste.data.linq

I created .Net Framework web form app in VS 2019 community. I added linq tosql class (dmbl) using table from AdventureWorks CountryRegions table. The class was created successfully . However I get error in my Business class (Bal): Error says: CS0012…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,397 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,136 questions
asked 2020-12-04T01:00:17.24+00:00
kobosh 176 Reputation points
accepted 2020-12-04T16:37:01.973+00:00
kobosh 176 Reputation points