将Silverlight 3转换为4 [英] Problem converting Silverlight 3 to 4

查看:125
本文介绍了将Silverlight 3转换为4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试将Silverlight 3应用程序转换为Silverlight 4,并且遇到问题。一切编译正确,但当我运行它,我收到一个错误,大约70%的加载。我很困惑,因为它的一个javascript错误我很确定。

I am currently trying to convert a Silverlight 3 application to Silverlight 4 and I am running into a problem. Everything compiles correctly but when I run it I get an error at about 70% loading. Im confused because its a javascript error I'm pretty sure.

抛出新错误(


Silverlight应用程序集中未处理的错误
属性
'System.Windows.FrameworkElement.Style'
抛出异常[行:46位置:53]

"Unhandled Error in Silverlight Application Set property 'System.Windows.FrameworkElement.Style' threw an exception. [Line: 46 Position: 53]

at
System.Windows.Application.LoadComponent(Object
component,Uri resourceLocator)

at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

at
Project.Page.InitializeComponent()

at Project.Page.InitializeComponent()

在Project.Page..ctor()
at
Project.App.Application_Startup(Object
sender,StartupEventArgs e)

at Project.Page..ctor() at Project.App.Application_Startup(Object sender, StartupEventArgs e)

at
MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32
typeIndex,Delegate handlerDelegate,
Object sender,Object args)

at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)

at
MS.Internal.JoltHelper.FireEvent(IntPtr
unmanagedObj,IntPtr unmanagedObjArgs,
Int32 argsTypeIndex,Int32
actualArgsTypeIndex,String
eventName)

at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)"

);

对于什么会导致这个以及我将如何修复它的想法?

Any idea on what would be causing this and how where I would look to fix it?

推荐答案

检查你的app.xaml文件线:46位置:53) - 可能一种风格与新版本不兼容?你可以在app.xaml的一行发布片段吗?

Check your app.xaml file (Line: 46 Position: 53) - probably a style is not compatible with the new version? Can you post a fragment from app.xaml around that line?

这篇关于将Silverlight 3转换为4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆