Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAML Designer System.Runtime.Remoting.RemotingException

  • I'm encountering the following System.Runtime.Remoting.RemotingException error when I create a blank Windows 10 Universal Application...

    Error on Visual Studio

    Following are event viewer screens... Event Viewer

    Event Viewer

    I have checked online for other solutions and have already done the following...

    • Uninstall/Repair Visual Studio 2015 Update 1
    • Reset my Windows 10 PC 1511 update
    • Cleared the Designer/ShadowCache folder
    • Target environment has been set to x86/x64
    • Target framework set to 10240
    • Developer mode enabled
    • Updated graphic drivers
    • Have cleaned and rebuilt solution
    • Updated to VS15 Update 2

Please let me know if you have been able to find a solution to the above

like image 564
Amit Philips Avatar asked Dec 31 '15 09:12

Amit Philips


2 Answers

UWP applications fail to launch from Visual Studio if project location and Windows Store apps installation path are on a non-default drive. Also, the XAML Designer will crash if you install Visual Studio and Windows Store apps to a non-default drive

Windows 10 allows users to change the default storage location of Windows Store applications. If you select a non-default drive for your apps, and if you install Visual Studio 2015 onto this drive, the XAML designer will not start and Windows Store app projects built on this drive cannot be run from Visual Studio.

Note: the workaround below will make any Store apps installed to the secondary drive inaccessible until next restart.

The file system driver can be temporarily disabled by running the following command from an admin command prompt:

fltmc detach filecrypt :

This will enable both running apps from this drive as well as usage of the XAML designer until the machine is restarted.

For a longer term fix, move your app or Visual Studio install to your system drive, or a secondary drive that has never been the storage location for Windows Store apps.

like image 67
peterfaraday MSFT Avatar answered Oct 23 '22 00:10

peterfaraday MSFT


I had the same problem. I started visual studio as an administrator and the designer came back.

like image 28
Daniel Avatar answered Oct 23 '22 00:10

Daniel