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.
All I have a utility method that is defined as
public static Dictionary CountOccurences(IEnumerable items) { ... }
I have some legacy code that unfortunately uses ArrayLists instead of List. Now, I need to cast the ArrayList to…
From a Winforms application using the same connection code, RavenDB works fine. I'm able to store and retrieve documents with abandon.
When I try to do the same thing in a Nancy application the result is completely unexpected.
Nancy is listening on…
I'm running into a situation where my HttpGet action in my Web API controller has multiple ways to be called based on parameters specified in the query string.
I need to be able to handle the following GET requests:
~/businesses/{businessId}
…
I'm working on a relatively small shooter game project in C# that has to send over map data in chunks of voxels, together with player movement data, combat data and probably other stuff in the future. I already decided on using protobuf-net for…
I have a problem with setting the expiration time of an e-mail.
I use System.Net.Mail.MailMessage and I didn't find any property that will handle this. I've seen in Outlook that it is possible. I've done some search on StackOverflow, MSDN and Google…
When I try to run the code below, perform synchronous operations. Why?
I get the following warning ...
Warning 1 This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API…
I have a problem... nobody else can help so I wonder if anybody here can?
I have a web service project (originally in .NET 2.0 but upgraded to .NET 4.5) which was working perfectly this morning. I also have a Winforms project which connects to the…
I had a type-o in my windows-8 app store code. I got a strange result, so I went back to look and realized I missed a value, but it still compiled and ran without errors. Thinking this was strange, I went and tried it in a windows 8 console…
I have developed an application to run on a Samsung Series 7 tablet. This application was developed using WPF, .NET 4.5, and C#.
My problem is that sometimes a button does not receive input the first time it is tapped. For example, Window1 has a…
I've read and done the steps in this, this and this post!
Still can not use the Asp.net Bundles!
In Global.asax.cs
BundleConfig.RegisterBundles(BundleTable.Bundles, Server);
and ...
public static void RegisterBundles(BundleCollection bundles,…
Currently, all of our web applications (and the WCF services they interact with) are run internally. Nothing is exposed to the web. We want to open up our web applications to the Internet and will need to secure access to the services.
We have…
I was a bit able to understand Factory Pattern and came up with this implementation.
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter the fruit name to get the Fruit!");
string fruit =…
I´m working on a distributed transaction issue that occurs using NET Framework 4.5. If I try to execute the app on a machine (and Dev Server also) using Framework 4.0 the components work fine.
The problem started when I installed the fwk4.5…
In case I have a collection of objects that each object's process takes lots of time,
what is the difference between EnumerablePartitionerOptions.NoBuffering and not using Partitioner at…
Can VS2012 build a proxy in a PCL project to consume a WCF service for SP2010? We add a reference (old school works everywhere else) but once we make calls, for instance GetListsCollectionAsync(), we get all sorts of errors. When we build the proxy,…