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.
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 =…
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…
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…
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…
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…
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…
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…
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…
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…
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.
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…
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…
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…
( 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…
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…