Can't drag-drop ValidationSummary to Silverlight project

I’ve made a SL 5 project with VS 2013 and Oxygene 7.1.73.1515 which I just downloaded. After rebooting to avoid initial project creation errors, I was able to create the project. But when I added ValidationSummary to the Toolbox and tried to drag and drop it on the designer, I get an error message saying that it added the necessary assembly to the project.

But it DIDN’T add it to the project and the ValidationSummary couldn’t be dropped there until I manually added the assembly that the message said IT added. Sounds like something isn’t working right.

The message was:

A reference to “System.Windows.Controls.Data.Input, Version 5.0.5.0,Culture=neutral, PublicKeyToken=31bf3856ad354e35” has been added to the project. In order to use types from the new reference, press OK to restart the XAML Designer. After the XAML Designer restarts, re-created the control on the artboard.

Only trouble is that after pressing OK and adding again, one just gets the same error message and the project doesn’t show that that assembly is in the project References.

Hello? Can anybody verify they have this problem too, and if not, what can I do to make mine work?

Hello,

I just tried to reproduce the situation with newly created silverlight project and couldn’t. When adding the ValidationSummary to the project it simply added the needed referense and no dialog window was shown.

Best regards.

Were you using the SAME Oxygene version and did you drop it on the Designer window? If so, I wonder why mine doesn’t work. And it didn’t work on Win7 with an older Silverlight version and an older VS with an older Oxygene.

At least now, I get a message. Before it added the references, then deleted them. Automatically. :frowning:

So what is the next step. I can’t make this work. Any clues or ideas to try?

… time passes …

I just tried again with a Silverlight Web Application project and I tried dragging the ValidationSummary into the Grid in the Xaml. Now I get:

Error	1	The name "ValidationSummary" does not exist in the namespace "http://schemas.microsoft.com/client/2007".	C:\Users\Mark\Documents\Visual Studio 2013\Projects\crap\SilverlightApplication31\SilverlightApplication31\Page.xaml	11	1	SilverlightApplication31

and

Error	2	The type 'ValidationSummary' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.	C:\Users\Mark\Documents\Visual Studio 2013\Projects\crap\SilverlightApplication31\SilverlightApplication31\Page.xaml	11	2	SilverlightApplication31

Drag and dropping it in the Designer still gets the same error as before.

Luckily I can get around this by manually adding the references, and the namespace, and then typing the xaml in the editor, but it would be nice to be able to use drag and drop again. I haven’t been able to use it on two boxes with two versions of VS and two versions of Oxygene. Well, I’m not sure it ever worked right for me if the control came from an assembly not in the references.

FWIW, I tried the same sort of thing in WPF. I added an item that required it to add a namespace to the xaml and add a reference. All worked fine and dandy.

I wonder if you were using SL 5? No idea what the difference might be because I think this eliminates VS 2013 as the issue.

… time passes …

I just noticed that, after I added the ValidationSummary object to the toolbox, its icon is red and there is an exclamation mark on it. That sounds like some sort of problem which might be why the drag and drop is failing. Or is it as I originally thought, just reflecting the kind of red that the ValidationSummary presents in the UI?

… time passes …

I was able to successfully add an AccordionButton that required another assembly and all. Looked normal in the toolbox and added everything just fine. Maybe there is something specific about the ValidationSummary that causes the problem on my box.

DescriptionViewer presents the same problem and its icon is not red.

One difference between the DescriptionViewer and the ValidationSummary is that the ValidationSummary namespace is xmlns:sdk=“http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk” which it put in for me IF I put the required assembly in the references manually ahead of time.

I wonder if it is some problem with that “sdk” thingee that is really a collection of assemblies, as I understand it.

Hello,

Sorry for the delay. Do you still have the same problem using latest Oxygene version? If so could you please provide us with next information: does this happen with newly created SL5 project (or a specific project)?

Best regards.

Sorry for the delay, but yes, the same problem exists even with standard components. So I made a new post to that effect.