RSS

Tag Archives: VS2012

XAML Designer NotSupportedException

Today I got following exception when I tried to display a XAML Control in the XAML-Designer offered from Visual Studio 2012.

An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

The exception message intended to say that you have at least one referencing assembly that you have downloaded from the internet. By default, such assemblies are blocked by the Operating System. If you open the file’s preferences, you see following string at the bottom of the window:

This file came from another computer and might be blocked to help protect this computer:


Exactly about this fact Visual Studio warns you. If you trust the creator of that assembly, you can avoid this problem by clicking Unblock.

After that, you should clean your solutions Debug and Release folder in order to ensure that the right unblocked assemblies are copied in the solutions output directory.

Then Visual Studio should continue showing the XAML designer.

 
Leave a comment

Posted by on September 13, 2012 in Visual Studio, WPF

 

Tags: ,

Visual Studio 2012: Framework does not meet the minimum required version

Today I tried to upgrade my Visual Studio 2012 RC to the RTM version. But I got an error saying that i do not have installed the required .NET Framework.

The .Net Framework installed on this machine does not meet the minimum required version: 4.5.50709.

So I thought that maybe the problem is that in order to install the RTM of Visual Studio I have to install the RTM version of the .NET Framework. Therefore I thought that if will I download the .Net Framework 4.5 and install it I can proceed the Visual Studio installation process. I was wrong.
But after starting the setup file of the .NET Framework it shows me following error:

Microsoft .NET Framework 4.5 is already a part of this operating system.  You do not need to install the .NET Framework 4.5 redistributable.

Well that’s strange. Never mind. I could not install the RTM version of 4.5 and therefore I cannot install the RTM of Visual Studio.

After some web researches I got the answer that in order to install the final version of Visual Studio 2012 I have to have the final version of Windows 8.
Everybody that runs a Windows 8 Release Preview (or lower) needs to wait until they gets a full copy or they can download the 90 days trial version of Windows 8.

 
Leave a comment

Posted by on September 5, 2012 in Visual Studio, Windows 8

 

Tags: , ,