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.

Reference

3775 questions
2
votes
3 answers

HttpContext does not work in global.asax.cs

I have this code in the global.asax.cs protected void Application_Start(object sender, EventArgs e) { string logFile = HttpContext.Current.Request.PhysicalApplicationPath + "log4net.config"; } It works fine in .NET 4.0, but throws the following…
bach dang
  • 185
  • 5
  • 20
2
votes
2 answers

Clarification on tasks in .net

I'm trying to understand tasks in .net from what I understand is that they are better than threads because they represent work that needs to get done and when there is a idle thread it just gets picked up and worked on allowing the full cpu to be…
dbarnes
  • 1,803
  • 3
  • 17
  • 31
2
votes
1 answer

HttpListener from .NET 4.5 doesn't recognize socket as WebSocket

From the .NET 4.5 FW there is builtin support for WebSockets handling. http://msdn.microsoft.com/en-us/library/system.net.websockets.websocket(v=vs.110).aspx The definition for creating WebSocket() instance in JS is simple as a crystal. Also... the…
user2402179
2
votes
1 answer

Create Delegate throws a binding error due to signature or security transparency

I am using C#4.0 and .NET 4.5. I have this class which is the point of entry in the current context: public static class HttpConfigurationImporter { public static readonly string ConfigurationMethodName = "Register"; …
2
votes
2 answers

XmlDictionaryReader reading fixed-size zeroed Stream

Can someone give me good explanation why this has to fail? const int bufferSize = 2 * 1024, testValue = 123456; var buffer = new byte[bufferSize]; var serializer = new DataContractSerializer(typeof(int)); //Serialize value using (var memStream =…
2
votes
1 answer

Debugging with Dump File in VS2012

I have an application that works fine on all machine bar a single client. I went on site and took a dump file... I have read the documentation and correctly created a .DMP using the 'Kernel Memory Dump' option. This has created a ~300MB file and I…
MoonKnight
  • 23,214
  • 40
  • 145
  • 277
2
votes
1 answer

How do GCLatencyMode and gcConcurrent interact in .Net 4.5.1 (using gcserver)

I can set the GCLatencyMode to Batch, Interactive or SustainedLowLatency. Does varying the value of the element (link) give me any additional options on top of the latency mode? It's not immediately obvious how these things interact…
Rob
  • 4,327
  • 6
  • 29
  • 55
2
votes
1 answer

Is 4.5.1 also in-place upgrade of 4.0 and 4.5?

Now we have .NET framework 4.5.1. Just curious to know whether the 4.5.1 is also an "in place upgrade" for 4.0 and 4.5?
Imran Qadir Baksh - Baloch
  • 32,612
  • 68
  • 179
  • 322
2
votes
0 answers

Retrieve Facebook Data using ASP.Net 4.5 Web Forms

I am trying to use Facebook Authentication on my website which I have built using Visual Studio 2013 .Net framework 4.5 Web Forms (Note: I am not using MVC). Now, I am able to authenticate users via Facebook but after successful login, I want more…
Ankit Vora
  • 702
  • 1
  • 5
  • 16
2
votes
0 answers

1 Error "ResolveManifestFiles" System.ArgumentException: Value does not fall within the expected range. WPF C# Desktop app

Im tray to compile a Visual Studio Solution and get this error. Error 1 Error inesperado en la tarea "ResolveManifestFiles". System.ArgumentException: Value does not fall within the expected range. at…
pedrozopayares
  • 2,856
  • 1
  • 13
  • 14
2
votes
2 answers

How to sort IEnumerable with limited result count? (another implementation of .OrderBy.Take)

I have a binary file which contains more than 100 millions of objects and I read the file using BinaryReader and return (Yield) the object (File reader and IEnumerable implementation is here: Performance comparison of IEnumerable and raising event…
Amir Pournasserian
  • 1,600
  • 5
  • 22
  • 46
2
votes
1 answer

DataGridRow error indicator not working with INotifyDataErrorInfo

I'm attempting to update my ViewModel to use INotifyDataErrorInfo instead of IDataErrorInfo and am running into the following problem: Validation for the currently editing field appears to work correctly, but the row-level error indicator doesn't…
Daniel Crowe
  • 321
  • 3
  • 9
2
votes
2 answers

Get name of GeometryModel3D

The FrameworkElement.FindName(string name) method returns an object from the XAML namescope. As a reverse to this, is there a way to get the name of the object as a string by passing the object? Example: The following ViewPort3D contains a red cone…
Vanlalhriata
  • 559
  • 5
  • 19
2
votes
1 answer

No events from custom .Net 4.5 EventSource ETW provider in PerfView

I created an EventSource (WebApiEventSource) in my ASP.NET WebApi application (to is as ITraceWriter-implementation): [EventSource(Name = "WebApi")] public class WebApiEventSource : EventSource { public static readonly WebApiEventSource Log =…
Shrike
  • 9,218
  • 7
  • 68
  • 105
2
votes
1 answer

How to create an async method that can return the non-void value?

I try to write a class with method that uses some awaitable operations. This condition makes me define this method as async. But I can't return non-void value from this method. BitmapImage in my case. Here's the code public sealed class…
splash27
  • 2,057
  • 6
  • 26
  • 49