Skip to main content

Microsoft Silverlight

Answered Question Referenced customcontrol assembly not found in XAMLRSS Feed

(0)

Patman666
Patman666

Member

Member

0 points

3 Posts

Referenced customcontrol assembly not found in XAML

I have referenced a silverlight class library in a silverlight application. If I include the xmlns attribute
(xmlns:vslider="clr-namespace:VideoSliderControl;assembly=VideoSliderControl") and add the customcontrol (VideoSlider in VideoSliderControl namespace) to my Page.xaml, Visual Studio underlines xmlns:... and vslider:VideoSlider with a blue line and displays the error:

Assembly 'VideoSliderControl' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built.
and
The type 'vslider:VideoSlider' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

Also the designer doesn't display the page. If I open the project in Blend everthing displays fine. I can build the project just fine and it runs ok.

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Re: Referenced customcontrol assembly not found in XAML

Hi,

You have to add reference of that assembly in your project...

 

Mark as answer if this post answered your question.

Harsh Bardhan

Patman666
Patman666

Member

Member

0 points

3 Posts

Re: Referenced customcontrol assembly not found in XAML

Yes, I added the reference to my project...
I tested the project on another PC and it works correctly on that PC.

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Answered Question

Re: Referenced customcontrol assembly not found in XAML

hI,

oK I GOT.

i was under different impression first time...

Actually Visual Studio Designer is having many limitations Presently and this i think one of those.Due to limitation of that Designer only we are not able to see that Control.


 

Mark as answer if this post answered your question.

Harsh Bardhan

Patman666
Patman666

Member

Member

0 points

3 Posts

Re: Re: Referenced customcontrol assembly not found in XAML

I get this error in XAML view...
And it is working (designer and XAML view) on another PC with Visual Studio 2008 installed.

Yi-Lun Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Answered Question

Re: Referenced customcontrol assembly not found in XAML

Hello, sometimes Visual Studio's Designer does report fake alerts. As long as your application runs fine, you can just ignore them.

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities