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
12 views

Linux system throws an error on a .NET Core application

I wrote a console application in .NET Core for linux. When I try to run it on my linux vps it throws that error: Could not resolve type with token 01000010 at Lumo.Program.Main (System.String[] ...
0
votes
0answers
4 views

Getting Azure Storage Emulator error when I try to execute a .NET Azure Function

I am attempting to execute a .NET timedTrigger Azure Function through the Azure Portal, and I keep getting the following error: "Microsoft.Azure.WebJobs.Host: Please verify that the Azure Storage ...
0
votes
0answers
7 views

Quickbooks OAuth1.0 to OAuth2.0

Having difficulty following Intuit's guidance to convert QB connect code from OAuth 1.0 to OAuth 2.0 https://developer.intuit.com/app/developer/qbo/docs/develop/sdks-and-samples-collections/net/...
-1
votes
0answers
26 views

Is it possible for C# code to call back into calling native C++ code?

I am basing my question on How to call a C# library from Native C++ (using C++\CLI and IJW), and in particularly to this updated answer, which demonstrates how a native C++ application can interact ...
1
vote
1answer
19 views

How to split the Options Configured in Startup

I have a .Net Core project where I Configured different options. Now it looks more complex, so I need to split each in to different methods. For Example I registered mongo db credentials options and ...
0
votes
0answers
14 views

How to add vary origin to every response on .net core?

I'm using the following code on the startup but the vary origin isn't being added to the header .AddCors(opt => opt.AddPolicy("AllowAllOrigins", b => b.AllowAnyOrigin().AllowAnyMethod()....
-2
votes
1answer
13 views

API is giving Error {{System.Runtime.CompilerServices.AsyncTaskMethodBuilder1+AsyncStateMachineBox1}}

I am creating a API consumption tool where I have a issue in which It is giving following error when I try to call API. Please help me with this. I am trying to get CSV file and converted to TXT ...
2
votes
1answer
17 views

In Visual Studio, is it possible to target a .NET 4.x CLR but a 2.0 class library API?

When you select the target framework of a C# project in Visual Studio, you actually select three different things at once (as far as I understand). Selecting .NET 4.7.2 will select: the language ...
0
votes
0answers
6 views

How to get last error details in WCF Message Inspector BeforeSendReply method

I'd like to know for a WCF service in the BeforeSendReply method of an IDispatchMessageInspector implementation, can I access the error message from any unhandled exceptions. Background Info... I'm ...
0
votes
1answer
27 views

Change Windows keyboard layout using c#

Is it possible to change the Windows OS keyboard layout (from azerty to querty for example) using C# ? (for the entire OS, not just the process of the current application) Do i have to use PInvoke or ...
0
votes
0answers
7 views

Download link missing for Azure SDK for .NET 2.1

I am in the unfortunate situation of having to support some old software that is depending on Azure SDK for .NET version 2.1 for Visual Studio 2010. Unfortunately I can't seem to locate the installer ...
0
votes
0answers
12 views

Application that takes RTSP video and shows it as output (C#?) [on hold]

I got university project which topic is Sport Director that is used for example on hockey matches, football matches on those live screens. Basically the point is to have some input stream (our mentor ...
0
votes
0answers
7 views

Paypal Pro Cardinal (3D Secure): Getting error 2010 in lookup request

We are trying to integrate Cardinal Cruise in .Net solution for 3DS 2.0 implementation. We have limitation of using any third-party JS so can't include Songbird.js After getting Transactional JWT: ...
0
votes
2answers
17 views

Nuget package error in Visual Studio 2017

I'm getting an error in Visual studio 2017 when I build the solution. "The package ComponentAce.Compression.Libs.zlib with version 1.0.4 could not be found in C:\Users\.nuget\packages. Run a NuGet ...
0
votes
0answers
13 views

How to hide items in a ul using a context menu?

I am creating a list from columns in SQL, I have a context menu that has hide and quit. I want to be able to hide a particular item in an ul. I figured the best way would be to add ID to each item. ...
1
vote
2answers
33 views

How can I remove one drawn object from winform?

I have created a winform and a picturebox, you can draw / place icons on the on the picturebox. g2.DrawIcon(SystemIcons.Warning, new Rectangle(screenPositionX, screenPositionY, _levelWidth, ...
0
votes
1answer
23 views

How can we create custom attribute in .net core to check the session activated

I am trying to create custom attribute which will help me to check session. But in .net core I am not able to handle session outside the controller. After researching I get this code on the net, But ...
1
vote
2answers
16 views

Access token validation failure Microsoft Graph API

I am building a console application in C#. I want to make some calls to Microsoft Graph API to access and edit some Excel files in my SharePoint so I can automate some processes in my Organization. ...
0
votes
0answers
10 views

Rewrite and redirect in asp.net rewrite rules

I am really struggling to understand rewrite rules and why mine do not do as id expect. I have 2 rules, and basically what I need to achieve is that it picks up my pretty URL, regardless of sub ...
0
votes
1answer
24 views

Dynamically select part of object properties

Is there a method to select a part of object properties dynamically ? I'm on .net Core 3, in a web api project I need to send to the client a subSet of source properties based on their value ...
0
votes
1answer
22 views

Map a class instance to a list of another class with Automapper

Is it possible to map AddToClientCommand to List<AddToClient> ? public class AddToClientCommand : IRequest<AddToClientResponse> { public List<int> AccountIds { get; set; } ...
0
votes
0answers
10 views

OracleCmd.ExecuteNonQuery() returning -1.but the stored procedure is executing successfuly

The ExecuteNonQuery() method returning -1 values while executing oracle 18c stored procedure. The stored procedure contains insert and update statements.the insertion and update is happening ...
0
votes
0answers
6 views

How to use PDFCreator COM in .net?

I read that once you install pdfcreator, you will get the COM interface to use it for your own applications. I am currently using .net and would like to know how the docx file are converted to pdf ...
-1
votes
0answers
28 views

UserInput data onto chart

I want to lay the users input values onto the scatter chart. I've managed to get it to work using "Sheet1" in the code, however in reality the sheet tabs are going to vary with numbers etc. What can ...
0
votes
0answers
22 views

HttpClient.PatchAsync throws PlatformNotSupportedException on Xamarin.iOS

I'm having a weird behavior with the latest Visual Studio for MAC, and latest XCode 11.1 installed on my machine. My project uses the HttpClient class provided by the System.Net.Http nuget package. ...
0
votes
1answer
27 views

What's the correct flow of injecting Appsettings.json from a main application and how to do it

I have my main .net core application called AppOne. In its appsettings.json I define which api's it should be able to call. For example: "ApiSettings": { "UrlToCall": "http://test", } Then there is ...
-2
votes
0answers
15 views

Is there way to make websockets work on Windows 7 machine

I am trying create websocket client in .NET in order to connect to AWS IOT which supports MQTT protocol. It works on Winwows 8, but it doesn't work on Win 7. I have tried to use System.Net....
1
vote
0answers
21 views

OAuth Url Generation Issue when using Azure Custom Domains

Okay, this is going to be a difficult one to explain and I'm hoping someone out there's solved this before as it's pretty damn niche. Box A is our authentication box (identity server, IS), it is set ...
0
votes
0answers
20 views

Can't establish the connection between SignalR with WPF Client

I have a WEB API application in ASP.NET Core with SignalR (JavaScript Client). please see my startup configuration below public IServiceProvider ConfigureServices(IServiceCollection services) ...
-1
votes
3answers
41 views

How do I add a dollar symbol in front of a TextBox (ASP.NET MVC)

How do I add a dollar sign in front of the TextBox of Rate, based on this code? I want to have the dollar symbol so people don't need to type '$' by themselves. Here is my code: <div class="row" ...
-1
votes
0answers
70 views

Convert AES Encryption function from .net to javascript

I have .net encryption function but i want to convert it to javascript function. public static string Encrypt(string inputText) { string encryptionkey = "My encryption key"; byte[] keybytes = ...
-2
votes
0answers
24 views

How to make userControl like popup if there is no internet connection in C# Xamarin forms

I am trying to make a user control which contains the internet not available message with image and refresh button. please suggest to me, or is there any other way to do this, instead of creating user ...
1
vote
0answers
5 views

Xfinium vertical text in table cell

Is there a possibility in Xfinium to draw text vertically in a table cell like in the example below I see there is the ability to provide rotation on text drawing using Rotation property of ...
0
votes
3answers
58 views

How do you find an data-auto-id

Our Devs are using data-auto-id within the latest project makes my scripting hard and selenium does not recognise it as an ID unfortunately. Can anyone tell me how in my POM i can identify data-auto-...
1
vote
1answer
17 views

Is there any method for checking SFTP directory permission in Renci SSH.NET?

I want to upload files to remote server via SSH.NET. Users login with their SSH credentials. And then I ask users where they're want to upload files. And then I need to check if there there are read/...
2
votes
1answer
27 views

Dotfuscator has suddenly started renaming public members, even with library mode turned on

It says it all in the title really: since updating Dotfuscator Community Edition to "v5.42.0.9514-e0e25f754" my library mode setting is no longer being honored: all public members of classes are being ...
0
votes
0answers
17 views

WPF ListView scroll whole page (seen items) by button click

I've created a listview in WPF. The items in there are changing their backgroundcolor by clicking, in this case i deactivated the listview prop 'Focusable'. For my usecase (on a touchscreen) i want ...
0
votes
0answers
5 views

How to edit Pixelsense application nowadays?

I developed a PixelSense (formerly Surface, before the tablet even exists) application, back in 2014. Now I'm asked to make this evolve. But the only SDK relevant I found is the very same I used when ...
0
votes
1answer
26 views

.NET Core API not accessible using secured link (i.e. https://…). Same API is accessible when accessing it with unsecured link (i.e. http://…)

I've a .NET Core Controller API. When accessing the Web Method(s) through secured link, i.e. https:///api/values, it's not working If I'm accessing it with unsecured link, i.e. http:///api/values, ...
2
votes
1answer
43 views

Unable to find assembly exception,when perform deserialization

My winforms application has a custom control, one of its property "LayoutStream" is byte[] type and it is serializable property. Currently I have ported my application from 4.6 framework to NetCore 3....
0
votes
1answer
23 views

Value to access across the project in console application

I have a console application solution having multiple projects like class library etc. added to this. I have stored my username/password in Azure keyvault and almost all projects under the solution ...
0
votes
0answers
36 views

How to set Uppercase key value in dotnet Core web api

i want to change : name, address, phone, city, province to set Uppercase "status": 1, "message": "OK", "data": [ { "name": "bigboss", "address": "alamanya big boss", "...
0
votes
0answers
12 views

How to Prevent SSRF in .Net

I have a web form application and also an Web Api application hosted in different servers. For all CRUD operations the Web Form application uses the API. To call the API from web form app I have ...
1
vote
0answers
18 views

How do i add new set of images to existing ML.Net trained model ITransformer?

I am new to Machine Learning. I use ML.Net Image Classification on Windows system using InceptionV3 and let say i already have a trained model with the 100 cats and 100 dogs photos and saved trained ...
0
votes
0answers
35 views

Need some advice about my project (.NET, React, React Native, C#, Sql-Server) [on hold]

I want to develop Cloud-based web and mobile app. For web want to use .net-MVC and for mobile app want to use React Native. So How can I make the connection between web and mobile app? thank you ...
1
vote
1answer
19 views

System.PlatformNotSupportedException: 'Windows Principal functionality is not supported on this platform.'

We are invoking a dotnet standard dll that calls GetCurrent on WindowsIdentity. It works fine in a dotnet core application, but as soon as you import it into a dotnet framework (4.7.2) application is ...
2
votes
0answers
21 views

TFS API Get Deletes file - Different behavior after update to new version (from 14xx to 16xx)

I've upgraded the Microsoft.TeamFoundation.VersionControl.Client.dll from version 14 (.98.25331.0) to 16 (.149.28804.2) and noticed a strange behavior. I'm not sure if it's expected or a bug. ...
-2
votes
0answers
20 views

.Net Core API reporting [on hold]

We are providing REST API(.net core 2.2) to government entities. These api are consumed by smartphone and website. Now there is new requirement to generate report based on data fetched from backend ...
0
votes
1answer
11 views

CRMWebAPI - How to work with Entity reference?

I use CRMWebAPI for CRUD operations with CRM. How can I work there with a entity reference? For example when I want to update parent account attribute on the Account entity, where the parent account ...
1
vote
0answers
19 views

ExchangeService FindItems Suddenly Intermittently Not Working

This has been working perfectly for probably a year or more, then suddenly, I think as of Saturday October 12th it started failing (FindResults returns no items); //Tag the sent email so we ...