Xaml designer throws exception when the project code runs behindCan't create xmlns reference to other project in XAMLCould not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly PresentationFrameworkwpf theme changed my aligmnentenable ribbon controlClr namespace mapping to default xaml namespacesWhere to find XAML namespace d=“http://schemas.microsoft.com/expression/blend/2008” mapping library?How do I make the Extended WPF Toolkit ColorPicker work?WPF to powershell errorsApp.xaml can not found namespace IocContainter MVVMNew to XAML. What does the x: and :x mean?

Whats the difference between <processors> and <pipelines> in Sitecore configuration?

How many years before enough atoms of your body are replaced to survive the sudden disappearance of the original body’s atoms?

How important is it to have a spot meter on the light meter?

Does a 4 bladed prop have almost twice the thrust of a 2 bladed prop?

Why do dragons like shiny stuff?

Can chords be inferred from melody alone?

Can attackers change the public key of certificate during the SSL handshake

Is "safes" an acceptable alternative to "makes safe"

Did Captain America make out with his niece?

What could prevent players from leaving an island?

Why am I not getting stuck in the loop

Can I enter a rental property without giving notice if I'm afraid a tenant may be hurt?

Probably terminated or laid off soon; confront or not?

Pronouns when writing from the point of view of a robot

Why private jets such as GulfStream ones fly higher than other civil jets?

Can a Hogwarts student refuse the Sorting Hat's decision?

Why is Chromosome 1 called Chromosome 1?

Generate a random point outside a given rectangle within a map

Non-small objects in categories

Will a research paper be retracted if the code (which was made publicly available) is shown to have a flaw in the logic?

Can I enter Switzerland with only my London Driver's License?

Changing Row Keys into Normal Rows

Why do proponents of guns oppose gun competency tests?

Does a humanoid possessed by a ghost register as undead to a paladin's Divine Sense?



Xaml designer throws exception when the project code runs behind


Can't create xmlns reference to other project in XAMLCould not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly PresentationFrameworkwpf theme changed my aligmnentenable ribbon controlClr namespace mapping to default xaml namespacesWhere to find XAML namespace d=“http://schemas.microsoft.com/expression/blend/2008” mapping library?How do I make the Extended WPF Toolkit ColorPicker work?WPF to powershell errorsApp.xaml can not found namespace IocContainter MVVMNew to XAML. What does the x: and :x mean?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















When i try to load the view i.e., MainWindow.xaml, unhandled exception occurs. This happens only if the project code is running behind. Otherwise it works fine. Please help.Below are the exception details.



Screenshot here: Screenshot



System.ArgumentNullException
Value cannot be null.
Parameter name: remoteValues
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalNotifyingEnumerable2..ctor(IRemoteNotifyingEnumerable1 remoteValues, Func`2 converter)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerView.Microsoft.VisualStudio.DesignTools.DesignerContract.IDesignerView.get_RelatedDocumentPaths()
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)



I tried clicking on 'click here to disable the project code and reload the designer' . It works when i do this. But when i enable the project code, the same exception comes.



Mainwindow.xaml:



<Window x:Class="QCFilterSaver.View.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Style="DynamicResource MetroStyle"
xmlns:view="clr-namespace:QCFilterSaver.View"
mc:Ignorable="d"
Title="QC Filter Saver" Height="520" Width="1200" WindowStartupLocation="CenterScreen">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Themes/ExpressionDark.xaml"/>
<ResourceDictionary Source="/Themes/MetroDark.MSControls.Core.Implicit.xaml"/>
<ResourceDictionary Source="/Themes/MetroDark.MSControls.Toolkit.Implicit.xaml"/>
<ResourceDictionary Source="/ControlsDataGridStyleDictionary.xaml"/>
<ResourceDictionary Source="/MainDataTemplates.xaml"/>
<ResourceDictionary Source="/Controls/Styles/LoadingArcsRing.xaml"/>
<ResourceDictionary Source="/Controls/Styles/LoadingThreeDots.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>

<Grid>
<view:FSView x:Name="FSView" HorizontalContentAlignment="Stretch"/>
</Grid>
</Window>


FSView.xaml:

<UserControl x:Class="QCFilterSaver.View.FSView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:QCFilterSaver.ViewModels"
mc:Ignorable="d"
d:DesignHeight="520" d:DesignWidth="1200">

<UserControl.DataContext>
<local:FSViewModel/>
</UserControl.DataContext>
<UserControl.Resources>
<Style TargetType="x:Type TextBox">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="#a70711"></Setter>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid>
<!--my properties and bindings here-->
</Grid>
</UserControl>


The designer should load automatically without exception but it just does not.










share|improve this question



















  • 1





    According this thread it should be fixed in visual studio 2017 15.0

    – Pavel Anikhouski
    Mar 27 at 8:05











  • Bug is still there in latest VS Version

    – Manoj Kumar N
    Mar 28 at 9:30

















1















When i try to load the view i.e., MainWindow.xaml, unhandled exception occurs. This happens only if the project code is running behind. Otherwise it works fine. Please help.Below are the exception details.



Screenshot here: Screenshot



System.ArgumentNullException
Value cannot be null.
Parameter name: remoteValues
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalNotifyingEnumerable2..ctor(IRemoteNotifyingEnumerable1 remoteValues, Func`2 converter)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerView.Microsoft.VisualStudio.DesignTools.DesignerContract.IDesignerView.get_RelatedDocumentPaths()
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)



I tried clicking on 'click here to disable the project code and reload the designer' . It works when i do this. But when i enable the project code, the same exception comes.



Mainwindow.xaml:



<Window x:Class="QCFilterSaver.View.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Style="DynamicResource MetroStyle"
xmlns:view="clr-namespace:QCFilterSaver.View"
mc:Ignorable="d"
Title="QC Filter Saver" Height="520" Width="1200" WindowStartupLocation="CenterScreen">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Themes/ExpressionDark.xaml"/>
<ResourceDictionary Source="/Themes/MetroDark.MSControls.Core.Implicit.xaml"/>
<ResourceDictionary Source="/Themes/MetroDark.MSControls.Toolkit.Implicit.xaml"/>
<ResourceDictionary Source="/ControlsDataGridStyleDictionary.xaml"/>
<ResourceDictionary Source="/MainDataTemplates.xaml"/>
<ResourceDictionary Source="/Controls/Styles/LoadingArcsRing.xaml"/>
<ResourceDictionary Source="/Controls/Styles/LoadingThreeDots.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>

<Grid>
<view:FSView x:Name="FSView" HorizontalContentAlignment="Stretch"/>
</Grid>
</Window>


FSView.xaml:

<UserControl x:Class="QCFilterSaver.View.FSView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:QCFilterSaver.ViewModels"
mc:Ignorable="d"
d:DesignHeight="520" d:DesignWidth="1200">

<UserControl.DataContext>
<local:FSViewModel/>
</UserControl.DataContext>
<UserControl.Resources>
<Style TargetType="x:Type TextBox">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="#a70711"></Setter>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid>
<!--my properties and bindings here-->
</Grid>
</UserControl>


The designer should load automatically without exception but it just does not.










share|improve this question



















  • 1





    According this thread it should be fixed in visual studio 2017 15.0

    – Pavel Anikhouski
    Mar 27 at 8:05











  • Bug is still there in latest VS Version

    – Manoj Kumar N
    Mar 28 at 9:30













1












1








1








When i try to load the view i.e., MainWindow.xaml, unhandled exception occurs. This happens only if the project code is running behind. Otherwise it works fine. Please help.Below are the exception details.



Screenshot here: Screenshot



System.ArgumentNullException
Value cannot be null.
Parameter name: remoteValues
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalNotifyingEnumerable2..ctor(IRemoteNotifyingEnumerable1 remoteValues, Func`2 converter)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerView.Microsoft.VisualStudio.DesignTools.DesignerContract.IDesignerView.get_RelatedDocumentPaths()
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)



I tried clicking on 'click here to disable the project code and reload the designer' . It works when i do this. But when i enable the project code, the same exception comes.



Mainwindow.xaml:



<Window x:Class="QCFilterSaver.View.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Style="DynamicResource MetroStyle"
xmlns:view="clr-namespace:QCFilterSaver.View"
mc:Ignorable="d"
Title="QC Filter Saver" Height="520" Width="1200" WindowStartupLocation="CenterScreen">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Themes/ExpressionDark.xaml"/>
<ResourceDictionary Source="/Themes/MetroDark.MSControls.Core.Implicit.xaml"/>
<ResourceDictionary Source="/Themes/MetroDark.MSControls.Toolkit.Implicit.xaml"/>
<ResourceDictionary Source="/ControlsDataGridStyleDictionary.xaml"/>
<ResourceDictionary Source="/MainDataTemplates.xaml"/>
<ResourceDictionary Source="/Controls/Styles/LoadingArcsRing.xaml"/>
<ResourceDictionary Source="/Controls/Styles/LoadingThreeDots.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>

<Grid>
<view:FSView x:Name="FSView" HorizontalContentAlignment="Stretch"/>
</Grid>
</Window>


FSView.xaml:

<UserControl x:Class="QCFilterSaver.View.FSView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:QCFilterSaver.ViewModels"
mc:Ignorable="d"
d:DesignHeight="520" d:DesignWidth="1200">

<UserControl.DataContext>
<local:FSViewModel/>
</UserControl.DataContext>
<UserControl.Resources>
<Style TargetType="x:Type TextBox">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="#a70711"></Setter>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid>
<!--my properties and bindings here-->
</Grid>
</UserControl>


The designer should load automatically without exception but it just does not.










share|improve this question














When i try to load the view i.e., MainWindow.xaml, unhandled exception occurs. This happens only if the project code is running behind. Otherwise it works fine. Please help.Below are the exception details.



Screenshot here: Screenshot



System.ArgumentNullException
Value cannot be null.
Parameter name: remoteValues
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalNotifyingEnumerable2..ctor(IRemoteNotifyingEnumerable1 remoteValues, Func`2 converter)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerView.Microsoft.VisualStudio.DesignTools.DesignerContract.IDesignerView.get_RelatedDocumentPaths()
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)



I tried clicking on 'click here to disable the project code and reload the designer' . It works when i do this. But when i enable the project code, the same exception comes.



Mainwindow.xaml:



<Window x:Class="QCFilterSaver.View.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Style="DynamicResource MetroStyle"
xmlns:view="clr-namespace:QCFilterSaver.View"
mc:Ignorable="d"
Title="QC Filter Saver" Height="520" Width="1200" WindowStartupLocation="CenterScreen">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Themes/ExpressionDark.xaml"/>
<ResourceDictionary Source="/Themes/MetroDark.MSControls.Core.Implicit.xaml"/>
<ResourceDictionary Source="/Themes/MetroDark.MSControls.Toolkit.Implicit.xaml"/>
<ResourceDictionary Source="/ControlsDataGridStyleDictionary.xaml"/>
<ResourceDictionary Source="/MainDataTemplates.xaml"/>
<ResourceDictionary Source="/Controls/Styles/LoadingArcsRing.xaml"/>
<ResourceDictionary Source="/Controls/Styles/LoadingThreeDots.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>

<Grid>
<view:FSView x:Name="FSView" HorizontalContentAlignment="Stretch"/>
</Grid>
</Window>


FSView.xaml:

<UserControl x:Class="QCFilterSaver.View.FSView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:QCFilterSaver.ViewModels"
mc:Ignorable="d"
d:DesignHeight="520" d:DesignWidth="1200">

<UserControl.DataContext>
<local:FSViewModel/>
</UserControl.DataContext>
<UserControl.Resources>
<Style TargetType="x:Type TextBox">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="#a70711"></Setter>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid>
<!--my properties and bindings here-->
</Grid>
</UserControl>


The designer should load automatically without exception but it just does not.







wpf xaml






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 27 at 4:04









Manoj Kumar NManoj Kumar N

114 bronze badges




114 bronze badges










  • 1





    According this thread it should be fixed in visual studio 2017 15.0

    – Pavel Anikhouski
    Mar 27 at 8:05











  • Bug is still there in latest VS Version

    – Manoj Kumar N
    Mar 28 at 9:30












  • 1





    According this thread it should be fixed in visual studio 2017 15.0

    – Pavel Anikhouski
    Mar 27 at 8:05











  • Bug is still there in latest VS Version

    – Manoj Kumar N
    Mar 28 at 9:30







1




1





According this thread it should be fixed in visual studio 2017 15.0

– Pavel Anikhouski
Mar 27 at 8:05





According this thread it should be fixed in visual studio 2017 15.0

– Pavel Anikhouski
Mar 27 at 8:05













Bug is still there in latest VS Version

– Manoj Kumar N
Mar 28 at 9:30





Bug is still there in latest VS Version

– Manoj Kumar N
Mar 28 at 9:30












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55369632%2fxaml-designer-throws-exception-when-the-project-code-runs-behind%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55369632%2fxaml-designer-throws-exception-when-the-project-code-runs-behind%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript