使用3DTools时WPF用户控件FileNotFoundException [英] WPF Usercontrol FileNotFoundException when using 3DTools
问题描述
我正在尝试制作一个UserControl,其中包括ViewPort3d,可用于查看和操作我创建的3d图表. ViewPort3d可以正常工作,我可以制作3d图像并四处移动相机以更改视图. 当我尝试放置一个 但是,UserControl中的ViewPort3d会返回错误. 这是:
I'm trying to make a UserControl that includes as ViewPort3d that can be used to view and manipulate a 3d Chart that I've created. The ViewPort3d works and I can make a 3d image and move a camera around to change the view. When I try to put a ViewPort3d in the UserControl, however, it returns an error. Here it is:
FileNotFoundException:无法加载文件或程序集"3DTools,版本= 1.0.2538.26322,Culture = neutral,PublicKeyToken = null"或其依赖项之一.系统找不到指定的文件.
at Proposalator_Raw.Three_D_Charts.test(Comp_Type Comp_Type)
at Proposalator_Raw.Three_D_Charts.Master_In()
at Proposalator_Raw.Three_D_Charts.Me_Load(对象发送方,RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(对象目标,RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(对象源,RoutedEventArgs参数,布尔值重新引发)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender,RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root,RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(对象根)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(委托回调,对象args,Int32 numArgs)
在MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(对象源,委托方法,对象args,Int32 numArgs,委托catchHandler
at Proposalator_Raw.Three_D_Charts.test(Comp_Type Comp_Type)
at Proposalator_Raw.Three_D_Charts.Master_In()
at Proposalator_Raw.Three_D_Charts.Me_Load(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler
InnerException:无
我引用了3dTools,它可以在其他位置使用.我不知道这里要什么. 有什么想法吗?
I have the 3dTools referenced and it works in other locations. I don't know what its asking for here. Any thoughts?
谢谢
推荐答案
您是否尝试将引用的 Copy Local 设置为 是吗?
Have you tried setting the reference's Copy Local to True?
这篇关于使用3DTools时WPF用户控件FileNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!