当前位置:编程学习 > C#/ASP.NET >>

两个错误???

<UserControl x:Class="SilverlightMonster.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Cursor="None"
    Width="1366" Height="768" MouseMove="Ghost_MouseMove"  xmlns:SilverlightMonster="clr-namespace:SilverlightMonster">
    <Canvas x:Name="cnvMovementTest" Width="1366" Height="768" Background="Bisque">
        <SilverlightMonster:Ghost Canvas.Left="10" Canvas.Top="10" x:Name="ghost"/>
错误一:Error 2 The type 'SilverlightMonster:Ghost' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. C:\Users\Administrator\Desktop\SL_VS\SilverlightMonster\SilverlightMonster\MainPage.xaml 7 10 SilverlightMonster
但是“Ghost.XAML文件”是存在的啊?
    
     </Canvas>
</UserControl>

错误二:
Error 1 Unable to load the metadata for assembly 'SilverlightMonster'. This assembly may have been downloaded from the web.  See http://go.microsoft.com/fwlink/?LinkId=179545.  The following error was encountered during load: Could not load file or assembly 'SilverlightMonster' or one of its dependencies. 系统找不到指定的文件。 C:\Users\Administrator\Desktop\SL_VS\SilverlightMonster\SilverlightMonster\MainPage.xaml 1 1 SilverlightMonster
怎么会找不到文件?
--------------------编程问答-------------------- SilverlightMonster所在项目是否引用 --------------------编程问答--------------------
引用 1 楼 wuyq11 的回复:
SilverlightMonster所在项目是否引用


好像缺少引用,但是要引用那个呢? --------------------编程问答--------------------
引用 2 楼 sssolweb_002 的回复:
引用 1 楼 wuyq11 的回复:
SilverlightMonster所在项目是否引用


好像缺少引用,但是要引用那个呢?
--------------------编程问答-------------------- 缺少对SilverlightMonster所在的Assembly的引用。 --------------------编程问答-------------------- C:\Users\Administrator\Desktop\SL_VS\SilverlightMonster\SilverlightMonster\MainPage.xaml 有吗 --------------------编程问答--------------------
引用 5 楼 teng_s2000 的回复:
C:\Users\Administrator\Desktop\SL_VS\SilverlightMonster\SilverlightMonster\MainPage.xaml 有吗


有啊。。。 --------------------编程问答--------------------
引用 5 楼 teng_s2000 的回复:
C:\Users\Administrator\Desktop\SL_VS\SilverlightMonster\SilverlightMonster\MainPage.xaml 有吗
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,