Category "c++sharp"

unable to send an email after deployment of website using asp.net mvc 5

I am trying to send an email using asp.net MVC 5 I use the number of repositories for email it's working on local but after deployment, it's not working where I

MySql.Data.MySqlClient.MySqlException: 'GetBytes can only be called on binary or guid columns'

I'm developing an app in C# with .NET and MySQL database. I need to be able to insert and retrieve images in and out of the database and I have a column named '

Trying to connect to an FTP server from Azure App service

I am trying to upload/download some files from Azure VM directly through a Azure App service, but the app returns this error: System.Net.WebException: The remo

Apache Ignite C# Client Connection configuration for kubernetes

We are following the below article to establish C# client connection to the Ignite Cluster, both of them deployed in the Kubernetes. https://ignite.apache.org/d

Unrecoverable build error - 0x8007000B in Setup Project

I have some .Net6 WinForm application that supposed to run PowerShell script via System.Management.Automation package Version="7.2.2". This app works fine. For

.net 6 minimal api docker issue: error CS5001: Program does not contain a static 'Main' method suitable for an entry point

I have seen a number of similar questions but none seem to represent exactly the issue I am facing. When I create a folder structure as follows: ./ ./src ./src/

Adding Keepalive option to MySQL connection causes error "Unable to connect to any of the specified MySQL hosts"

I am working on a project where a thread is run and opens a permanent database connection. The reason for this, is potentially as the project grows it could rec

I'm having a problem with the message error CS1022: Type or namespace definition, or end-of-file expected

I don't know why I get this error Error CS1022: Type or namespace definition, or end-of-file expected My code: public class weaponcontroller : MonoBehaviour {

Add a MSBuild targets file to referencing projects

I have a ClassLib1 project that is referenced by many other projects. I want to know if there is a way to include a build targets file for those referencing pro

c# byte[] asspan equivalent?

I have a line of code with an AsSpan method that didn't exist in .NET 4.7.2. This is from a netstandard2.1 project that I neither understand nor can convert to

Xamarin MulticastLock Acquiring doesn't allow multicast

I am using Xamarin to create an Android application. This app must, among other things, receive a multicast stream. The server is sending fine, but my app is no

Why would console display different received string than message box in c#?

This is a follow up to my previous question. But it appears that for a reason I don't understand, the os is interpreting a received string differently than a me

Decorate MediatR IRequestHandler using Microsoft DI

I'm trying to decorate some of my MediatR's IRequestHandlers. To mark handlers I wanted to decorate, I created the interface ICommandHandler that inherits

BackgroundWorker.IsBusy staying true at all times during serial port operations?

I am working on a Data Acquisition and Logging project which has two windows (forms). On the main window, there is a trigger button which opens another form (se

FluentValidation: AddValidatorsFromAssemblyContaining<T> results in IValidator<T> not registered

I'm trying to use FluentValidation to validate based on object.GetType() rather than knowing the type at compile time by injecting IValidator<T>, but I am

Grid not presenting data in colums used in HierarchicalDataTemplate

I used a Grid to present a FileInDirNC type, but the ColumDefinitions doesn't seem to work? I think it has something to do with HorizontalContentAlignment = "St

Application with Gmap control doesn't start

I'm developing a Windows application in C# (Visual Studio Community 2022) I installed Gmap.NET.Windows Nuget packet v.2.0.3 I added the Map control and it works

The framework 'Microsoft.WindowsDesktop.App', version '6.0.0' (x64) was not found in docker image

I have created a webapi project in dot net 6.0, which internally uses some winform code. I want to create a docker image however it is throwing the following er

When and where should I be triggering my high score entry?

I am tackling a Unity course challenge, where we are supposed to implement data persistence between scenes and across sessions. After deciding to go with JSON,

Injecting dependencies into dynamically loaded .dll (.net core)

Similar to How to Inject Dependencies to Dynamically Loaded Assemblies, I want to inject dependencies into classes from dynamically loaded assemblies. Is this p