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

Testing if I have full read/write access to a file in VB .NET 4.5 before processing it

I'm writing a windows service which runs as the local system account. I'm trying to make sure if I have full read/write access to a file beginning to process it any further. Here is my code: Dim FullPath As String FullPath =…
rnkjnk
  • 45
  • 1
  • 6
2
votes
0 answers

"Signature of the body and declaration in a method implementation do not match"

UPDATE: I think I've eliminated Unity from the equation. See below for more details. UPDATE 2: I think I may have eliminated Entity Framework fro the equation. See below for more details. I have some code that is building a unity container, but it…
gilbert
  • 308
  • 5
  • 16
2
votes
3 answers

Possible to await XamlReader.LoadAsync()?

I have a program where the user can view various 3Dmodels which are saved in XAML and then manipulate the Viewport3D using a TrackballDecorator. Included in these XAML files are transforms which I was applying to the TrackballDecorator using the…
Kyjibo
  • 71
  • 2
  • 7
2
votes
2 answers

ListViewItem doesn't show actual text on columns

I have a ListView with three columns which I want to add strings to each This is the code ListViewItem tempLV = new ListViewItem("first"); tempLV.SubItems.Add("second"); tempLV.SubItems.Add("third"); lv.Items.Add(tempLV); and the output As you can…
2
votes
4 answers

How to invoke a interface method in this context?

This is a surprise to me! When I was seeing a code of someone, I just noted this line (shortened version!) interface IPrint { void PrintDateTimeNow(); } class DatePrint : IPrint { void IPrint.PrintDateTimeNow() { throw new…
2
votes
2 answers

SqlGeometry / DbGeometry Isvalid exception when hosting on Azure Web Role

I'm trying to create a DbGeometry type polygon. it works fine on my local machine but I am getting an error on the return statement when hosting my website on an Azure Web Role. Code: string polygon = “POLYGON ((-30.3637216 30.7124139,-30.3632216…
2
votes
1 answer

"The following sections have been defined but have not been rendered for the layout page" after deployment

I think i have already read all the related questions here, but sadly i couldn't find an answer yet. My problem is, locally everything runs fine without errors but when i deploy my website to my server, i'm getting there the following error: The…
Taublatt
  • 23
  • 1
  • 3
2
votes
0 answers

.NET 4.5 Databinding to Singleton using ObjectDataProvider (used to work in .NET 4.0)

First, I have to say that all this already worked flawlessly on .NET 4.0! Now switching to .NET 4.5 (or even .NET 4.0 with installed .NET 4.5), at ListBox.DataContext I get an XamlParseException.InnerException: System.InvalidOperationException…
Seven
  • 4,353
  • 2
  • 27
  • 30
2
votes
1 answer

IO operations with Task.Run

I'm using MonoGame, but this is related more to winrt async and IO, so please don't redirect to gamedev. I want to load game content asynchronously so that I can update the progress of a loading screen. I placed each ContentManager.Load call inside…
RecursiveCall
  • 482
  • 3
  • 13
2
votes
1 answer

ReactiveAsyncCommand missing in ReactiveUI 5.0.2

I just start learn ReactiveUI from https://github.com/reactiveui/ReactiveUI.Samples/blob/master/ReactiveUI_4Only.Samples.sln. I download lastest version via nuget but I cant find class ReactiveAsyncCommand in ReactiveUI.Xaml.
Kopernik
  • 81
  • 1
  • 9
2
votes
1 answer

ReactiveUI - this.RaiseAndSetIfChanged

I download latest ReactiveUI (5.0.2) via nuget to my project based on .NET 4.5. I created simple view model class with one property: using System; using System.Threading; using System.Windows; using ReactiveUI.Xaml; namespace…
Kopernik
  • 81
  • 1
  • 9
2
votes
0 answers

Issue with Internet Explorer 8 and 9 and MVC4 Web Site running on IIS 7.5 on Windows Server 2008 R2

We recently upgraded an MVC3 application to MVC4 and .Net 4.5. The upgrade was done by creating a new MVC4 site and adding all the controllers etc back in, manually. The site was deployed internally to a win2008 R2 64 bit server, on which we…
2
votes
2 answers

Can I depend on event handlers being invoked in order of registration?

In the current version of the .NET framework, and under normal circumstances (i.e. without intentionally modifying the invocation list), are handlers for an event always invoked in the order in which they are registered? This would be consistent…
HappyNomad
  • 4,458
  • 4
  • 36
  • 55
2
votes
1 answer

async ( with non-async) function control flow clarification?

( I've read a lot about async and I wonder what happens if there is a mix of async function call and non-async) and im talking about THREAD pov . ( I know that mix should not be done , but im asking in order to understand the flow better) suppose I…
Royi Namir
  • 144,742
  • 138
  • 468
  • 792
2
votes
3 answers

How to save image using JpegBitmapEncoder

According to the image encoding example here I should be able to use JpegBitmapEncoder to encode an image for saving as a jpeg file but get this compile error: error CS1503: Argument 1: cannot convert from 'System.Windows.Controls.Image' to…
jacknad
  • 13,483
  • 40
  • 124
  • 194