Category "c++sharp"

Attempting to run C# on cloud9 IDE but receiving errors

I’m new to Cloud9 and I’m facing some issues. I’m attempting to run the C# code on the IDE and am failing to do so, I think I know why but I c

Freeze panes in Excel using C# and EPPlus

I want to freeze first 5 columns and three rows in excel. I have written the following code for that Worksheets.View.FreezePanes(5, 5); but it freezes column

Stop Rigidbody Movement/Rotation instantly after collision

I want my sphere to jump from one position to another but don't want it to translate afterward. I can't figure out how to do that. Here's my code: void Update(

Entity type ‘Business_attrib2object’ has composite primary key defined with data annotations. To set composite primary key, use fluent API

I set composite primary key using fluent API, it is still an error, when I'm trying to create ClassesController (MVC Controller with Views Using Entity Framewor

How to Download log files generated from log4Net

I'm using log4net in a ASP.NET MVC 4 application and I'm trying to download the generated log file from log4Net. I have in mind to download the log file with a

Prevent IDM from downloading automatically in web api

I have a web api method that returns an HttpResponseMessage containing a PDF file. The method looks something like this: HttpResponseMessage response = Request

Azure ARM deployment access a resource from a different subscription when deploying a new resource

I am using an Azure service principal and C# Azure SDK to deploy this ARM template. The publicIPPrefixResourceId I am passing as a parameter is the ARM Id of t

Bot framework Webchat Postback buttons show the text on the chat after I click them

Webchat version: 4.15.1 using CDN, Description: I am using HeroCards with postback buttons but they show the text in the value after I click them, It also happe

Is there a way to get the windows default folder icon using C#?

I have a listView with a list of documents. To each of them I assigned an icon, using the following method: private void SetDocumentIcon(ListViewItem item, Fil

OnHandMeshUpdated() not triggered in Mixed Reality Toolkit

I'm working on a Mixed Reality app in Unity. I'm trying to update my own hand mesh according to: https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-uni

Handling Deadlocks via, RESTFUL API?

Goal is to improve code. The ASP.NET MVC client Application makes the HTTP request to the service Layer. This is a C# REST API, where we are transferring larg

Why does my file sometimes disappear in the process of reading from it or writing to it?

I have an app that reads from text files to determine which reports should be generated. It works as it should most of the time, but once in awhile, the program

C# SSH port forwarding with SSH.net

I'm trying to do the following thing in a C# program with SSH.NET : ssh -NfD 1080 [email protected] Here's the code I produced : using (var client = new Ssh

What are the default Lifetime values for openiddict tokens

Very simple question, i would just like to know what the default values are set in openiddict 3.0+ Tokens are AccessToken AuthorizationToken DeviceCodeToken Ide

EF6:Parent context null inside same child query

My database contains below table in parent child relationships:- Gender->Audit->Request(All are in 1:N Relationships) I want to fetch all Genders with cor

MAPI_E_NO_ACCESS error setting RDOPstStore property

I'm attempting to set (actually clear) the PR_PST_PASSWORD property on a PST file using Redemption thusly: RDOSession session = new RDOSession(); RDOPstStore s

Request redirect to /Account/Login?ReturnUrl=%2f since the installation on server

I'm working with asp.net core 2.1, I launch the app on my local machine without any problem and I can debug it and open it on the browser but when I deploy it t

Unity Scripts edited in Visual studio don't provide autocomplete

When I want to edit C# Unity scripts, they open in Visual Studio. It is supposed to provide auto complete for all Unity related code, but it doesn't work. Here

IResult (from Asp) not found in standard 2.0 project

I created a DLL project targeting .net standard 2.0. With NuGet I added a reference to Microfosft.AspNetCore.Http. (2.2.2) I created this class: using System; u

Is it possible to switch Azure functions standard DI container for another?

Currently I am using DI in azure functions the standard way public class Startup : FunctionsStartup { public override void Configure(IFunctionsHostBuilder b