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.

915 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
31votes
0answers
2kviews

Unit-Test project fails to build after installing .NET 4.5

I have a WPF solution in .NET 4.0 that includes a Unit Test project which tests the different commands used in the ViewModels. Everything was working fine, but then I installed .NET 4.5 and VS2012. ...
user avatar
  • 6,875
11votes
2answers
2kviews

Forcing ASP.NET WebAPI client to send a client certificate even when no CA match

I have a specific application that requires the use of client certificates for mutual authentication of HTTPS requests. The server has a flexible certificate validation policy that allows it to ...
user avatar
10votes
1answer
728views

WPF Richtextbox Bindable in .net 4.5

So I'm trying to use David Veeneman's Bindable WPF RichTextBox here in my .net 4.5 project. After adding the control and the ValueConverter in my code I noticed only the the public object Convert() ...
user avatar
  • 4,769
10votes
0answers
20kviews

.NETFramework,Version=v4.5 framework is a higher version than the currently targeted framework ".NETFramework,Version=v3.5"

I created my first project in Framework 3.5 and i converted to framework 4.5 and its working perfectly. Secondly i tried to add the reference of this project to another project which is created in ...
user avatar
7votes
0answers
2kviews

Breakpoint A breakpoint has been reached. How should I investigate this issue further?

I am currently working on a WPF application that is currently in production and we have a case of two users having a crash at the application start that I still cannot explain. The application shows ...
user avatar
  • 71
7votes
0answers
516views

Integrated Pipeline mode: Uploading file of more than 2GB

Though I have set the limit of contentlength to around 4GB which is max as below <security> <requestFiltering> <requestLimits maxAllowedContentLength="4294967295"> ...
user avatar
  • 2,872
7votes
1answer
231views

SdkUtility.LaunchSignInPage not redirecting to ebay sign in page

.Net 4.5 , MVC 5 , IIS 8 SdkUtility.LaunchSignInPage(apiContext, _sessionID); From my application (in VS 2013) I can easily access to the sign in page. But problem occurs when I published it in IIS. ...
user avatar
  • 3,789
6votes
1answer
277views

See POST Multipart Form Data Request

I'm trying to submit a multipart form through a C# and a VB.NET console application, but how do I see what it actually looks like? I've seen on some forums that you can see what it looks like through ...
user avatar
  • 1,779
6votes
0answers
4kviews

Application exiting with an exit code of -1073740771

I have a WPF application, which sometimes is exiting with an exit code of -1073740771. The issue is not occurring in any pattern and it's varying from system to system. In some system the issue is ...
user avatar
6votes
1answer
866views

Uri ignore special characters

I got a string that represent a url and i want to download the content via c# my url contains right to left mark and left to right mark %E2%80%8F & %E2%80%8E. when i paste the url in the browser ...
user avatar
  • 1,806
6votes
0answers
795views

UnobtrusiveValidationMode set to WebForms forces Postback?

I'm using WebForms Web Application (not MVC). Is there any reason why when I have this appSetting set to "WebForms" that it forces a postback for validation instead of catching the missing required ...
user avatar
  • 7,596
6votes
0answers
6kviews

How to manually install .Net 4.0.x and 4.5 on XP

XP isn't a supported OS for .NET 4.5. This is a known issue. I read a few months back that the reason XP can't install 4.5 is because there are kernel API that 4.5 calls which don't exist on XP. I ...
user avatar
  • 4,421
6votes
1answer
5kviews

Fakes Broken in Visual Studio 2015

I have Visual Studio 2015 Enterprise and discovered that I cannot compile almost any of our existing 2013 projects. Further investigation reveals that Visual Studio 2015 isn't able to generate fakes ...
user avatar
  • 683
6votes
1answer
3kviews

Uri.EscapeDataString weirdness

Why does EscapeDataString behave differently between .NET 4 and 4.5? The outputs are Uri.EscapeDataString("-_.!~*'()") => "-_.!~*'()" Uri.EscapeDataString("-_.!~*'()") => "-_.%21~%2A%27%28%29" ...
user avatar
6votes
1answer
2kviews

Prevent serialization of null members in DataContractSerializer

Let me preface by saying I'm fairly new to WCF, and might be using the wrong terminology throughout here. My project has two components: A DLL containing the classes for Attachment, Extension, ...
user avatar
  • 16.4k
5votes
0answers
2kviews

useLegacyV2RuntimeActivationPolicy="true" does not work with .NET 4.5

The Top answers here: What does 'useLegacyV2RuntimeActivationPolicy' do in the .NET 4 config? and What 'additional configuration' is necessary to reference a .NET 2.0 mixed mode ...
user avatar
5votes
2answers
309views

One-To-Many AND Recursive relation - Force value to be set

Environment Framework 4.5 Entity Framework 6 (code First) Model MainEntity One to many ChildEntity relationship ChildEntity One to many recursive ChildEntity relationship Model in code Snippet ...
user avatar
5votes
0answers
3kviews

Could not load file or assembly 'myApp.XmlSerializers' or one of its dependencies

MyApp uses a class that is derived from an ActiveX control. Everything works fine on the dev box, but on the test box I get this when I call CreateControl() on an instance of the class. Could not ...
user avatar
  • 957
5votes
1answer
2kviews

Replacement of Self-tracking entities in Entity Framework 6

I am sure most of .NET developers must be facing this issue one way or the other. The problem is simple, I am upgrading my project from .NET 4 to .NET 4.5.1. So far so good the upgrade went neatly. ...
user avatar
5votes
0answers
3kviews

Does SmtpClient support international email addresses (IDN/Intl email) in .Net 4.0?

In .Net 4.5 SmtpClient have public property DeliveryFormat which accepts values of the System.Net.Mail.SmtpDeliveryFormat type. So I can assign DeliveryFormat value SmtpDeliveryFormat.International ...
user avatar
5votes
0answers
2kviews

Turn off Webcam flash light metro app C#

Apologize if I'm wrong, I'm developing metro app using C# and XAML for Windows 8,My app has capability to capture a QR Code image, Save it in picture library, decode QR image(I'm using XZing.Net ...
user avatar
  • 726
5votes
1answer
3kviews

MissingMethodException from Async serialisation operation

I have written a small Async library wrapper to Json.Net v5.06 from NuGet and after updating a number of Telerik packages my UnitTests started to fail with a MissingMethodException. I have created a ...
user avatar
  • 6,182
5votes
1answer
4kviews

Much memory fragmentation with System.Threading.OverlappedData (async await)

I'm constantly running slowly out of memory. I've used WinDbg to have a look at the memory dump and this it what it looks like: 000007f975ee0630 557377 41027736 System.Object[] 000007f975f004d0 ...
user avatar
  • 1,051
5votes
1answer
2kviews

Why is Automapper using so much memory?

I am using the latest version of Automapper (v3.0.0.0-ci1036) and when it converts an object with binary data, it uses crazy amounts of memory. (200MB for a 10MB file). Here is an example of such a "...
user avatar
  • 40.3k
5votes
1answer
2kviews

Entity Framework DB First: Convert Associative Table to Navigation Properties

I am using Entity Framework Database First, but I would like to replicate the following behavior from the Code First paradigm: In Entity Framework Code First, you can do something along these lines: ...
user avatar
  • 1,495
5votes
0answers
194views

Does WPF still leak on Custom ICommand implementations?

Before .Net 4.5, WPF controls used to leak on custom ICommand implementations that did not use a weak event pattern because they did not unsubscribe from the CanExecuteChanged event of the interface. ...
user avatar
  • 1,788
5votes
1answer
666views

RichTextBox input is very laggy

I've got a RichTextBox, with a very small amount of text in (less than 100 characters including line endings). I have one event (TextChanged with an empty body), no styles, and the window is pretty ...
user avatar
  • 141k
4votes
0answers
2kviews

How to await Tasks kicked off in Dispose

I have a general question about how to keep track of an asynchronous task that is started when an object is disposed in .Net. I have a class designed around Stephen Cleary's Dispose means cancel ...
user avatar
4votes
0answers
275views

WebService call under Xamarin.Forms returning incomplete result

Namespace.References is a PCL Profile 78 project containing a reference to a webservice (asmx). Since the profile doesn't support the entire service model stack, only asynchronous methods are ...
user avatar
4votes
1answer
218views

Handle leak when exception is thrown inside task

I'm trying to understand a very strange handle leak that is occurring in an application. I've managed to isolate the problem in the following code: using System; using System.Collections.Generic; ...
user avatar
4votes
0answers
3kviews

Visual Studio 2015, Microsoft Fakes and System.Security.Claims.Claim

I have an interface in a .NET 4.5 (not 4.6) class library, public interface IBrokenFakeInterface { Claim WhyWontItGenerateFakeOfThisInterface(); } In my unit test project (MSTest) when I have ...
user avatar
  • 970
4votes
1answer
2kviews

Multi-level Combo Box in Windows Forms

I would like to use Combo Box in my WinForms application to select only one option out of many. This choice affects the whole application and is pretty important, so I don't want to use Menu Strip for ...
user avatar
  • 576
4votes
1answer
261views

Why does .Net 4.0 build of client DataContracts cause MethodAccessException in .Net 4.5 application?

I have a class library named WebAccounts.dll that calls some (of my own) WCF web services. I have the web services project automatically build a client version of its data contracts for consumption by ...
user avatar
  • 11.6k
4votes
2answers
831views

Get property and class name in DisplayNameAttribute derived class

I have a class with some properties with DisplayNameEx attribute, which is derived from DisplayNameAttibute: public class Settings { [DisplayNameEx("User")] public UserData User { get; set; } ...
user avatar
  • 79
4votes
0answers
380views

Unable to remove DotNetConfig.xsd schema reference when targeting 4.5.1

I have a configuration file that has element errors throughout and intellisense does not work. The main problem is a "The global element 'configuration' has already been declared." warning. I ...
user avatar
  • 269
4votes
1answer
711views

TextBox with non editable words (tags)

I'm trying to build template editing module for my email sending application. Right now it looks like this: On right I have list of available variables that are replaced to correct values when I send ...
user avatar
  • 4,448
4votes
0answers
2kviews

Unable to attach debugger to a process running as different user Visual Studio 2012/2013

I have a Windows Service running as a low privileged domain account. My account is a local administrator. When I try to attach the debugger to the service when the project/solution is open in Visual ...
user avatar
  • 356
4votes
2answers
6kviews

MVC 5, WIF (System.IdentityModel) & ADFS not actually authenticating, errors on federated signout

I'm wading through the creation of a claims-based MVC site in Visual Studio 2013. Some things I learned so far: System.Identity is in, Microsoft.Identity is out Many of the tutorials, including ...
user avatar
  • 18.9k
4votes
1answer
86views

Rude tab keeps coming to the front

I have a TabControl that uses the following XAML. <TabControl x:Class="MyApp.Tab.TabContainer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://...
user avatar
  • 957
4votes
0answers
2kviews

How do I cast a number to BouncyCastle.BigInteger <--> System.Numerics.BigInteger

The slowest part of my code is that I use Bouncy Castle's "BigInteger.Multiply()" method. To try and speed things up I'm attempting to insert the code below to see if there is any improvement. I ...
user avatar
4votes
1answer
626views

How to handle Compressed Request in WCF REST service

We have a WCF REST service hosted on IIS 7 with .NET Framework 4.5. The client is sending data in GZip compressed format with request headers: Content-Encoding:gzip Content-Type: application/xml ...
user avatar
  • 5,792
4votes
0answers
162views

CompareAttribute ValidationResult has an empty MemberNames

Code: public class RegistrationViewModel { [Required] [StringLength(50, MinimumLength = 5)] public String Password { get; set; } [Required] [Compare("Password")] public ...
user avatar
  • 10.9k
4votes
0answers
163views

BindingFlags.OptionalParameterBinding varying behaviour in different frameworks. Bug in .NET?

I've tried to force Activator.CreateInstance to use a constructor with default parameters. I've found this suggestion, repeated few times on SO (first comment) http://connect.microsoft.com/...
user avatar
4votes
2answers
6kviews

How do I install the .NET Framework 4.5 reference libraries on Windows Server 2008 R1?

I have an application whose deploy process builds the source code on the server I'm deploying to. My production server is Windows 2k8 (not 2k8 R2). My app is not compiling as the reference ...
user avatar
  • 25.9k
4votes
0answers
767views

Get certificate and user information in WCF service

I have a WCF service hosted in IIS. Clients communicating with the service must have one of our company's client certificates. The service uses the certificate to identify the client and handle access....
user avatar
4votes
0answers
3kviews

WCF serviceAuthenticationManager and TransportSecurity

I have WCF web service (.Net 4.5 RTM). I want to provide custom IPrincipal and IIdentity inplementations, so I decided to provide custom ServiceAuthenticationManager. Strange thing is that ...
user avatar
  • 1,358
4votes
1answer
3kviews

Visual Studio 2012 command line built

We use msbuild to build the solution on servers and were using the command prompt provided by sdk 7.1 to build for .net 4 for both 32 and 64 bit builds. SETENV provided in sdk was perfect for this. ...
user avatar
  • 41
4votes
0answers
249views

Listen for EDMX conversion?

When re-targeting a project from .NET 4.0 to .NET 4.5 in VS2012 any EDMX in the project is automatically converted to EF 5, i.e., the namespaces are updated to match the target framework. Is there a ...
user avatar
  • 1,229
4votes
3answers
4kviews

How to use System.IdentityModel.Tokens.Jwt 5.2.1 in .NET 3.5?

I have project where i want to validate the token from the request. My project's .NETFramework version is 3.5. I am trying to use the below code in my project and these piece of code, i have used in ...
user avatar
3votes
0answers
251views

Dotnet 'new' command not working with Framework 4.5?

I'm trying to create a 4.5 framework Class Library project with dotnet new command as following: dotnet new classlib -lang C# -f net45 -o TestProject Error: Invalid Parameters: -f net45 "net45&...
user avatar
  • 1,556

15 30 50 per page
1
2 3 4 5
19