Questions tagged [.net-4.5]

Version 4.5 of the Microsoft .NET Framework. Use for questions specifically related to .NET Framework 4.5. For questions on .NET Framework generally, use the .net tag.

.net-4.5
Filter by
Sorted by
Tagged with
-2 votes
2 answers
541 views

WinForm is shrinking on different users computers

I have a windows form program that I have started to release on the internet to people. Some users are having an issue with the form not displaying at the correct size, but instead much smaller. an ...
therimmer96's user avatar
-2 votes
2 answers
131 views

I want to bring a .ascx file into VS2012 and view it

I have an ascx file that I want to view as the end user will see it. While it was written in notepad, I have VS 2012 and figure I could view it there or launch it to a browser from there. How would ...
Jerry D's user avatar
-2 votes
1 answer
227 views

.NET 4.5 Async programming with report service

I have a web application (Web Forms, 4.5, C#) in which I have a reports menu. Traditionally, I have selection screens and have the user run the report and wait for it to return (i.e file or web HTML ...
user2957885's user avatar
-3 votes
9 answers
332 views

How can I generate the list of number adding 5 to starting number?

This is the simple question but want to make sure that I do it right way! I want to generate the list of numbers where I start with number 3 and add 5 to every next number. Result should be like ...
updev's user avatar
  • 633
-3 votes
3 answers
122 views

For each string.IndexOf(char) bug?

var str = "GB29NWBK60161331926819" foreach (var item in str.ToCharArray()) { Debug.WriteLine(str.IndexOf(item)); } Gives the output 0 1 2 3 4 5 1 7 8 9 10 8 10 13 ...
MrBliz's user avatar
  • 5,870
-3 votes
1 answer
277 views

Why Task<bool> is faster then Task

I have function which archives files, so I tried to create async version of it. But for some reason if I change return type of the function from Task to Task < bool > it works much faster. Below ...
Farukh's user avatar
  • 2,183
-3 votes
3 answers
302 views

Delphi COM vs DLL in .NET [closed]

Need to create a Delphi DLL that can be called from Delphi and .NET. What does .NET like more, COM or dll? Or does it matter? I just remember hearing that COM can be annoying because of ...
O.O's user avatar
  • 11.2k
-3 votes
2 answers
530 views

C# LINQ divide by zero error when using multiple integers to make a capture rate

Do you have any idea how I can fix this LINQ issue with a divide by zero. I have a list of objects that gives the various reasons why a quote did not complete and tries to sort by the capture rate. ...
user1075718's user avatar
-3 votes
1 answer
304 views

Regular expression in to return list of float in C#

I am really new to regular expression. Can you please tell me what will be regular expression to finde Amazon fees in following string. so it give me list of float. private static List<float> ...
SOF User's user avatar
  • 7,730
-3 votes
4 answers
79 views

How to add a new item to this array?

I have a class - public class PropertyModel { public string Name { get; set; } public string Value { get; set; } } And this is the array which is part of my request model public ...
GilliVilla's user avatar
  • 5,018
-3 votes
1 answer
855 views

Is it possible to set timeout for tasks in a List<Task> and cancell only the long runing tasks?

Im new with c# (and with english language too), i try do some work in background parallel. I have a list with "MyClass" objects. Each has a "DoWork()" function, i put this functions in a List then i'...
htkg's user avatar
  • 1
-3 votes
2 answers
298 views

java disruptor library c# analog

I'm writing HFT software. Disruptor claims to be a "high performance inter-thread messaging library", and apparently offers substantial performance improvements. Is there something with comparable ...
Oleg Vazhnev's user avatar
  • 23.6k
-3 votes
1 answer
382 views

Where can i find using System.Web.Helpers and System.Web.Script.Serialization both not exist?

I added in the top of my new class: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Web.Helpers; ...
Daniel van wolf's user avatar
-3 votes
1 answer
57 views

Usage of LINQ or not for the price match algorithm

I have a JSON input with structure like this "Levels": [ { "Name": "3 - 50 Points", "UnitPrice": 855, "...
GilliVilla's user avatar
  • 5,018
-3 votes
2 answers
425 views

Azure SSO login with ApplicationId and Tenant Id not returning successful claim output

public partial class Startup { public void ConfigureAuth(IAppBuilder app) { app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); app....
Dharminder Singh's user avatar
-3 votes
1 answer
134 views

List view method not working

I am using a lisview and binding data with the help of ItemDataBound. Problem : when I click on a label it show data related to it but when I click on other data it shows data related to 1st and 2nd ...
Jay Patel's user avatar
-3 votes
3 answers
172 views

my program doesn't work on an special system [closed]

I wrote an application and it worked on my system fine and there was no problem. I wrote it via visual studio 2012, .net 4.5, C#, and also it uses office 2010. I installed it on several systems and ...
nazila's user avatar
  • 5
-4 votes
1 answer
21 views

WebAPI don't deserialize JSON but same payload works in Swagger

I have a WebAPI that has been in use for the last 7 years (.NET 4.7), it's been working without a hitch since the first release. Since March 10th, all of a sudden, it simply refuses to deserialize the ...
JaggenSWE's user avatar
  • 2,004
-4 votes
1 answer
280 views

How do I create a Windows desktop app from UWP code

I have an existing project for Windows 10 (UWP). It creates an app that can go into Windows Store and be sideloaded, and that works fine. ... but now I would like to create a desktop-version (an exe-...
hotlipsdk's user avatar
-4 votes
2 answers
3k views

What is the stable and latest version of .Net Framework we can use in WPF Application? [closed]

I want to upgrade my live WPF Application's .Net Framework. Which is the stable and latest version in .Net Framework ? Thanks in advance!!!
Ashish Bhojani's user avatar
-5 votes
1 answer
167 views

return boolean based on boolean property of an object

So I have this Boolean method that returns it's result based on boolean properties of two objects. I pass in two objects which represent the state of a business branch. One state is the state of the ...
SkyeBoniwell's user avatar
  • 6,774
-5 votes
3 answers
94 views

C# compiler creates ref class

I was digging through some code, when suddenly a wild bug appeared... Ok let's start. I created this code to represent a position in a script while parsing. /// <summary> /// Represents a ...
bash0r's user avatar
  • 605
-5 votes
2 answers
3k views

c# File.Exists cannot find file [closed]

How to correctly define if file exist or not? string FilePath = Path.Combine(dir, "www", "index.html"); if (!File.Exists(FilePath)) { // get here anyway } string dir { get { ...
shmnff's user avatar
  • 714
-5 votes
1 answer
65 views

Best practice for to count text line

I would to know how I can read, for example, line from 10 to 12, in a log file, starting from upper of file, without having the message that the process cannot access the file because it is being used ...
Gianni Giordano's user avatar
-6 votes
1 answer
198 views

Issue with reproducing the results of a cURL command in code

I am trying to do the following using .NET What would the C# code look like using HttpClient, if my username is test and password is password? HTTP Method: GET URL: http://webapi.ebayclassifieds.com/...
Zoinky's user avatar
  • 4,679

1
75 76 77 78
79