משיב מוביל
בעיה בפיתוח אפליקציית סילברלייט ב Visual Studio 2010

שאלה
-
אני פותחת את Visual Web Developer 2010 Express כדי לפתח אפליקציית סילברלייט פשוטה.
הבעיה היא שהוא לא נותן לי לראות את הזאמל שאני יוצרת, ולא להוסיף לו פקדים מה Tools, אלא רק ע"י קוד.
מצ"ב צילום מסך שמראה איך סביבת הפיתוח נראית, וזו השגיאה שהוא נותן: (מעתיקה לכאן כי לא מצליחים לראות בצילום מסך)
System.NullReferenceException Object reference not set to an instance of an object. at Microsoft.Windows.Design.Platform.SilverlightMetadataContext.SilverlightXamlExtensionImplementations.<GetXmlNamespaceCompatibilityMappings>d__8.MoveNext() at MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption() at MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(Identifier identifier) at MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope parentScope, IParseContext context) at MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider) at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors) at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem() at Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem() at Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState() at MS.Internal.Host.PersistenceSubsystem.Load() at MS.Internal.Host.Designer.Load() at MS.Internal.Designer.VSDesigner.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.Load() at MS.Internal.Designer.DesignerPane.LoadDesignerView()
במקרה שלי, אני רוצה להוסיף Image ולא מצליחה לראות בהרצה, לעומת TextBlock שכן רואה.
זה הקוד שלי:
<UserControl x:Class="WebServiceConcurrencyTest.MainPage" 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" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <Grid x:Name="LayoutRoot" Background="White"> <TextBlock Text="Hello" Height="40" Width="80"/> <Image Source="C:\Users\Rotem\Desktop\null.jpg" Visibility="Visible" Height="40" Width="80" Margin="0"/> </Grid> </UserControl>
תודה רבה!
יום שני 10 ספטמבר 2012 17:55
תשובות
-
ניסית לדבאג את ה desiner?
אני לא בטוח שתצליחי בכל מקרה זה נראה שחסר לו DLL בזמן desing
- סומן כתשובה על-ידי Eran Sharvit יום רביעי 26 ספטמבר 2012 13:18
יום שני 24 ספטמבר 2012 13:18
כל התגובות
-
-
זה קורה בכל פרוייקט סילברלייט? או רק בפרוייקט הזה?יום שני 24 ספטמבר 2012 07:42
-
שלום
זה נראה שחסר reference
או קשור ל build configuration
יום שני 24 ספטמבר 2012 12:05 -
זה קורה בכל פרויקט סילברלייט.
כרגע נראה לי שהפתרון היחיד זה להסיר את Visual Web Developer 2010 Express ולהתקין מחדש..
אשמח אם יהיה לך רעיון אחר.
תודה:)
יום שני 24 ספטמבר 2012 12:35 -
תוכל לפרט? תודה:)יום שני 24 ספטמבר 2012 12:36
-
ניסית לדבאג את ה desiner?
אני לא בטוח שתצליחי בכל מקרה זה נראה שחסר לו DLL בזמן desing
- סומן כתשובה על-ידי Eran Sharvit יום רביעי 26 ספטמבר 2012 13:18
יום שני 24 ספטמבר 2012 13:18