Questions tagged [.net]

Do NOT use for questions about .NET Core - use [.net-core] instead. The .NET framework is a software framework designed mainly for the Microsoft Windows operating system. It includes an implementation of the Base Class Library, Common Language Runtime (commonly referred to as CLR), Common Type System (commonly referred to as CTS) and Dynamic Language Runtime. It supports many programming languages, including C#, VB.NET, F# and C++/CLI.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

IValidationAttributeAdapterProvider.GetAttributeAdapter never called

Im using dotnet core 3.1.403. Here, seems to be working: ASP.NET Core custom validation attribute localization http://blogs.msdn.microsoft.com/mvpawardprogram/2017/01/03/asp-net-core-mvc/ My Adapter ...
0
votes
0answers
28 views

Json nested List<T> not deserializing correctly

I have the following JSON scene description: { "$type": "SceneHandler.SceneDescription, SceneHandler", "Camera": { "$type": "RenderDataStructures....
-1
votes
0answers
14 views

.Net Scrolling window programmatically

I am working on .net WinForms application where I cannot set the AutoScroll property to true, but must serve scrolling programmatically. But when serving OnSCroll event one thing works wrong. ...
0
votes
0answers
3 views

.Net Disable a form or disable mouse click until it is completely loaded

VB.Net I know this has been asked but I am still confused as how to implement it. The user selects an option by double clicking on a grid or by pressing an Accept button. Inevitably, they triple ...
0
votes
0answers
8 views

Read Configuration of string mapping to List of strings [duplicate]

Suppose in my Startup.cs file, I have something like this: "Websites": { "http://www.google.com/": [ "Search", "Email", ], "http://facebook....
0
votes
0answers
10 views

Is there anything that would prevent referencing a .net standard library from a .net core application?

Is there anything that would prevent referencing (and using) a .net standard library from a .net core application? For example, if I have a library that targets .net standard, it internally uses ...
-1
votes
1answer
27 views

How do I deserialize JSON in C# with Newtonsoft

I have a snippet of a code written in python which I have to rewrite to C# with the help of Newtonsoft JSON def getconfig(): with open("config.json") as f: return json.loads(f....
1
vote
1answer
41 views

How to extract first character and numbers after that until find a character (a-z) in a string - C# 2.0

How to extract numbers from a second index of a string until find a character (a-z) in a string? I am using C# version 2.0 (can't upgrade for some reasons). Here are some examples; M000067TGFD45F = ...
0
votes
0answers
4 views

Accessing SharePoint sites using Graph API

I am trying to upload file to SharePoint site using background service, so far I can't even succeed with listing sites. I believe there is an issue with permissions/access on my side, below is core ...
1
vote
2answers
41 views

.NET regex match and replace

My task is to verify a string with regex, than perform replacement if it match succeed or throw Exception if string don't match. Obviously, I could check Regex.IsMatch and then call Regex.Replace or ...
0
votes
0answers
14 views

Error when trying to implement Keras model in TensorFlow.NET

I am new to TensorFlow, and I am trying to implement the following TensorFlow Keras model in C# using TensorFlow.NET. It was originally written in Python: model = tf.keras.Sequential() model.add(tf....
0
votes
0answers
9 views

Is it possible to bind a popup's horizontal offset according to its own width?

I'm looking to alter the orientation of a ComboBox popup, and I figure the only way is adjusting the horizontal offset. The default ComboBox popup orientation will 'extend' to the left like this: ...
0
votes
1answer
15 views

CsvHelper parsing fails for tab delimitted record

I have a Tab delimited file and using CsvHelper to parse it in .Net c# Somehow its failing at 1 record and throws BadData, nothing seems wrong in record, i tried pasting in excel and used text to ...
0
votes
1answer
25 views

How to check of object exists in Google Cloud Storage using C#?

Does anyone know how to check if an object exists inside a Google Cloud Storage bucket via C#?
0
votes
0answers
37 views

What Is the Syntax for Including the Service Name in a Connection String?

I have a C# ASP.Net MVC web application. I am trying to successfully connect to an Oracle database. I am getting a "ORA-12514: TNS:listener does not currently know of service requested in connect ...

15 30 50 per page
1
2 3 4 5
20172