All Questions

Tagged with or or
Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

How to compare two Guid List? [duplicate]

I have a Model with a Guid list. public class DetailModel { [Display(ResourceType = typeof(ProductResource), Name = "ProductCode")] public string ProductCode { get; set; } ...
ar.gorgin's user avatar
  • 4,925
-1 votes
0 answers
25 views

Facing error on deploying .Net core site on Google cloud [closed]

Deploying .Net core website on google cloud error facing "Unable to read file" Please suggest.
ND's's user avatar
  • 2,193
0 votes
0 answers
6 views

Responsive Design in WPF c#

I would like to Create a responsive Design in WPF After # a Lot of Searching I havet. find anything can somebody help me. Search everywhere and find nothing. somebody can give some instructions on ...
karim.oria's user avatar
0 votes
1 answer
41 views

I get the Error CS0104 'Assert' is an ambiguous reference between 'NUnit.Framework.Assert' and 'Microsoft.VisualStudio.TestTools.UnitTesting.Assert

I am currently making a simple unit test for my Recipe storage application to test my calorie calculation. However, I keep running into the above issue and am unsure as what I can do to solve it. The ...
TevinChins's user avatar
0 votes
1 answer
44 views

Cloning an image file when pressing a button in a C# form application

I have an image box in the C# form application and I want to clone that image when I press it.I tried this code but I didn't get any results private void pictureBox9_Click(object sender, EventArgs e) {...
Arif Şenel's user avatar
0 votes
0 answers
13 views

Bouncy Castle C# PemWriter.WriteObjects algorithms

is there a list of working algorithm strings for Org.BouncyCastle.OpenSsl.PemWriter in the method public void WriteObject(object obj, string algorithm, char\[\] password, SecureRandom random)type here ...
Alessandro Muscatello's user avatar
0 votes
1 answer
62 views

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed "

Getting an error while calling API from WCF service: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed ...
user24140580's user avatar
0 votes
0 answers
29 views

How to return values from GridView into Checkbox & GridBox in Windows Form C#

How to retrieve values from GridView in Win.Form C#, for RadioBox and CheckBox. The problem is when I click on a row of user in GridView I get the entered value (textBox) values But, the RadioBox &...
user2204349's user avatar
0 votes
0 answers
34 views

Visual Studio C# SerialPort receiving ASCII convert to normal character

Sorry I'm newbie in C# windows app to serial hardware. I'm having a hard time and already tried all of my possible resources. Problem is I'm receiving ASCII response in a machine using serial. This is ...
Pete Bismonte's user avatar
0 votes
0 answers
21 views

The process cannot access the file 'filename' because it is being used by another process solve

The process cannot access the file 'filename' because it is being used by another process [WebMethod(Description = "Work Order Proposal Print", EnableSession = true)] public string ...
SANDHEEP KUMAR 48's user avatar
0 votes
0 answers
46 views

How to translate text in c#?

How can I translate a string in english to spanish in c#? string bio="my name is xyz"; I made a culture to convert the string: string bio = "my name is xyz"; var culture = new ...
magnum S's user avatar
0 votes
0 answers
18 views

How can I get the full content of a Word Document?

I have reviewed several ways to obtain access to the content of a Document in C# but no matter how much I search, I cannot find a way that truly takes all the information within it, so far I can only ...
Harold Marin Salazar's user avatar
0 votes
0 answers
42 views

Serialization and validation of multiple C# attributes (built-in and Custom) in JSON schema

I required a help on JSON schema and JSON validation where We have a requirement to have multiple attributes (built-in and custom) for a property in C# and then serialize them into JSON schema. I am ...
Developer 's user avatar
1 vote
1 answer
24 views

how to optimize the code to improve performance foreach loop in C#?

Below functionality is taking more time iteration, It's required to optimize code to improve the Performance to fetch data . can you help me how to optimize ? private List<ApplicationMenuItemDTO>...
user3683619's user avatar
0 votes
0 answers
37 views

How to move photo path from database to image editor in c#?

On the Web Desktop App I print the personnel information in my database into the datagrid. I can bring the required fields dynamically with focusedrowchange. As I bring the information, I want to ...
guven's user avatar
  • 1
0 votes
1 answer
85 views

can't enter "d" "e" or "f" with sendkeys on Safari 17.3.1

I'm using safaridriver, included with Safari 17.3.1 (19617.2.4.11.12). I'm not having problems with the latest versions of Chrome, Edge or Firefox. I have a web page with just a textarea input. If I ...
user22916347's user avatar
1 vote
1 answer
53 views

Quartz scheduler not calling the Job class

I'm pretty new to C# and I was trying to learn about Quartz scheduler. I have been trying to execute the below code but my doubt is why is the scheduler not entering the HelloJob class. Am I doing ...
Jithin's user avatar
  • 43
0 votes
0 answers
13 views

how to decrepit pdf417 when read from barcode reader c#

I have barcode reader for identity card and passport and 2d code , when read my card return text like this this string It's not understandable compared to real identity data please help me to fix it ...
ayham alnajjar's user avatar
0 votes
1 answer
32 views

Retrieve records of recently modified files among duplicates in same folder

Table col1 col1 col3 filepath1 filename1 modified date1 filepath1 filename1 modified date1 filepath1 filename1 modified date2 <- latest in duplicates in col1 filepath1 ...
Rao Sasipalli's user avatar
0 votes
0 answers
37 views

How to apply effect inside WPF UIElement OnRender method?

I want to apply a blurr effect to a specific geometry, inside WPF UIElement OnRender method. I have code like below. protected override void OnRender(DrawingContext drawingContext) { ...
hseki's user avatar
  • 13
0 votes
1 answer
51 views

NUNIT test case for idbcontexttransaction

I am writing Nunit test case for the below. Here the IDbContextTransaction is from the Microsoft.EntityFrameworkCore.Storage library. Here the argument of DeleteDataAsync transaction is beling passed ...
jubi's user avatar
  • 617
0 votes
0 answers
8 views

Export clustered column charts with epplus and set up data tables, and the data tables switch to row and column display?

enter image description hereenter image description here Export clustered column charts with epplus and set up data tables, and the data tables switch to row and column display? How to do it ...
BoXiang's user avatar
0 votes
2 answers
90 views

How I can get dynamically 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 etc., using for loop in C#

I'm using C# and I Need to generate 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 etc. numbers using for loop. Actual result : how to make output =1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 etc., number. int num1 = ...
Nather's user avatar
  • 3
0 votes
1 answer
52 views

I'm trying to sum the 5 number that entered by the user but it doesn't calculate. in c#

static void Main(string[] args) { int[] numbers = new int[5]; int sum = 0; int i; Console.WriteLine("Input 5 elements in the array :"); for (i= 0; i < numbers....
red's user avatar
  • 3
0 votes
0 answers
47 views

Error HRESULT E_FAIL has been returned from a call to a COM component in Asp.net MVC

I have a problem while creating the Asp.Net MVC project on visual studio 2022. Project is created with an error message. Error HRESULT E_FAIL has been returned from a call to a COM component. ...
Muhammad Ali's user avatar
0 votes
0 answers
59 views

Communication with "Async" Service in Complex System Architecture

In our system, we have around 16 microservices that communicate seamlessly using events through a message broker. These microservices use gRPC as their endpoint communication protocol, with an ...
Ali Mohammadnezhad's user avatar
0 votes
0 answers
58 views

why cast of user code and employee id failed on post action when click submit button?

I work on asp.net MVC web application . i face issue on RequesterIndex action with type Post failed to cast user code to employee id . action Requester index with type post fire when failed cast and ...
ahmed abdelaziz's user avatar
0 votes
0 answers
98 views

Convert PDF to Image file in web application using ASP.NET Core 3.1 app

I do have a web application running in ASP.NET Core 3.1. The use case would be a user will upload a .pdf file and that file will be received as IFormfile. The file will then be converted to an image ...
Bryan Nemes Apilada's user avatar
0 votes
0 answers
9 views

Cell.Style.Fill.BackgroundColor doesn't read all colors

I tried to read Excel sheet cells Background Colors using "Cell.Style.Fill.BackgroundColor". However, I have encountered an issue where i am only able to read a limited number(2 or 3) of ...
naveen krishna's user avatar
0 votes
0 answers
47 views

Monitoring wallet transactions

I am using the Zapper app to track a crypto wallet address, and it seems that the Zapper app provides comprehensive information about transactions for this address across various chains such as BTC, ...
J.Tran's user avatar
  • 135
-1 votes
1 answer
26 views

c# program to remove the given quantity in a collection of objects

I want to subtract the qtyordered (8) from the list of items quantity. I have the given list below and Pen1 5 Pen2 6 Pen3 7 Pen4 8 I am expecting the output: Pen1 0 Pen2 3 Pen3 7 ...
Andi's user avatar
  • 43
3 votes
1 answer
273 views

Blazor Server: Fetch Access Token from ProtectedStorage and Inject into HTTP Request Pipeline

I am encountering difficulties in integrating a JWT token, retrieved from ProtectedSessionStorage in a Blazor Server project (.NET 8), into the HTTP request pipeline for authorization. I've provided ...
kyenry's user avatar
  • 380
0 votes
0 answers
32 views

How can I draw an error bar with +sigma and -sigma?

I have the following function that plots an error bar. public void AddErrorBarsTwoSigma(string curveName, List<double> xValues, List<double> yValues, List<double> yErrors, ...
user366312's user avatar
  • 16.6k
0 votes
0 answers
33 views

Get Image Resource Name of Control

I have a Windows Form containing Toolstrip Buttons each having an image from Program Resource. During run time for some reasons want to find name of each image resource with C# code. Comparision like ...
SoftWar's user avatar
  • 138
0 votes
0 answers
12 views

Image is not sending on gmail in Asp .net Mvc using SmtpMail

I am trying to achieve the image which i am having base64 format, just want to send in gmail using Smtp server. the problem if the user mail is outlook then the expected result is coming but in gmail ...
Abitech's user avatar
0 votes
0 answers
40 views

Problem with reordering items in a bootstrap-select control

I am using bootstrap-select control for multiple item select and reorder item, but it is not working correctly. I drag item1 from position 1 to 2 position, then select item1, but item2 is selected. If ...
Bipin Patel's user avatar
0 votes
0 answers
12 views

Model is null while rendering view

I have a child view name UploadImage and parent view name CROCOnfig, when I access child view by using button in parent view,it works fine, but when I try to render child view in parent view,it throws ...
Musfirah Hamid's user avatar
0 votes
0 answers
75 views

how to maintain scrollview position while updating collectionview in xamarin forms

Good evening fellow Samaritans I need the collaboration of the community, I have a collectionview which I update every 3 seconds, but I need it to maintain the scroll position it had before updating ...
Yoandry Castellanos's user avatar
-1 votes
1 answer
78 views

CANBUS API Development

I would like to develop canbus API development where I can send the FRAME details and others like startbit, stopbits, priority and through C# language development. Can anybody providing the structure ...
user3671429's user avatar
-1 votes
3 answers
79 views

To retrieve Year, Month and Day

How to retrieve year, month and day from the file name like MONTUE-API-202310031200340313.TXT Below is the pattern which will not changed MONTUE-API-{YEAR}{MONTH}{DAY}{TIMESTAMP}.TXT I want to get {...
Earth's user avatar
  • 3,533
0 votes
1 answer
119 views

How to secure and retrieve string data with a consistent length using encryption and decryption in .NET

We aspire to achieve encryption and decryption in a way that ensures the length of the encrypted result aligns with the length of the original data. How can this objective be accomplished in .NET code?...
Praveen Kumar's user avatar
0 votes
0 answers
15 views

How do I get rid of System.InvalidOperationException for entity type 'Font' in Visual Studio 2022 C# .NET application?

Hello I have a problem with my C# application. It's an app for showing all the data in our company (workers, cars etc.). Here I have the workers class and I need to show data from a database. So I ...
Kacper Dudkowski's user avatar
0 votes
0 answers
26 views

MemoryMappedViewAccessor WriteArray<T> and ReadArray<T> UnmanagedMemoryAccessor, Are these suppose to be used in methods marked unsafe?

Both the MemoryMappedViewAccessor WriteArray and ReadArray methods are marked as UnmanagedMemoryAccessor. Does that mean it is best to uses these methods in a method marked unsafe? I tried both these ...
steve's user avatar
  • 27
0 votes
0 answers
58 views

can't get computer name of client user visit and run my web app? [duplicate]

Suppose I work on ASP.NET MVC web application and this application hosted on IIS so I need to get computer name of user visit my web application As example client A have computer-001 he visit web ...
ahmed abdelaziz's user avatar
0 votes
0 answers
48 views

C# Convert hierarchical model to other model

I have a hierarchical data ApiGroup as shown with below properties. This get populated from Api, I want to map this model into UIGroup model with below properties. Please suggest a efficient approach ...
WellnGood's user avatar
0 votes
0 answers
22 views

execute a function in a given time interval in xamarin forms [duplicate]

Good afternoon fellow Samaritans, I need to update a collectionview every 3 seconds, but I have not yet found a way to do it, I am implementing the MVVM pattern, but I have not seen anything clear ...
Yoandry Castellanos's user avatar
0 votes
0 answers
15 views

Password Proctected the DeviceLibrary.zip folder

Only its creating the password protected for child file . But I need the full folder as a Password Protected` string folderToZip = @"C:\HCF"; Guid guid = Guid.NewGuid(); string zipFileName =...
AKASH ARAVINDHAN A 20507149's user avatar
1 vote
1 answer
125 views

Convert string type date input(yyyy-mm-ddthh:mm:ss) to MM/dd/yyyy format

I need to convert a date of string type in MM/dd/yyyy format and return year on some specific condition.My input string type date format can be also like (04/03/2023).But output should be only in MM/...
vicky's user avatar
  • 63
0 votes
1 answer
27 views

Convert xml to json which one variable already having json format value in c#

I have XML like "<root><name>john</name><info>{\"age\":25,\"city\":\"NYC\"}</info></root>" When I used JsonConvert....
ritush love's user avatar
0 votes
1 answer
47 views

Creating SSIS Custom Component - PreExecute method cannot get connection manager

I had trying my hands on creating a SSIS custom component to retrieve data from Salesforce. I having the custom connection manager project working and verified, and the custom source works and ...
Shaggy's user avatar
  • 219

1
2 3 4 5
612