错误信息:
Managed native not presently supported这是什么错误?

解决方案 »

  1.   

    没有,在使用typeof报错,google搜不到类似的结果
    是不是类加载出了问题?
      

  2.   

    IIS里面选错.Net平台时会出现类似的错误,但是忘了。来点详细信息。
      

  3.   

    编译的时候选择Target Framework是.Net framework 4
    这个我也检查了
      

  4.   

    try ... catch 捕获异常打log 吧。
      

  5.   

    看看客户的环境,是不是缺少相关的DLL ,导致不认识相应的类型
      

  6.   

    这个是异常信息堆栈2011-11-18 12:56:24
    Managed native not presently supported.
       at Inspeed.Restaurant.Presentation.CookRoomClient.ViewModel.LoginWindowViewModel.View_Login(Object args)
       at Sinnel.Mvvm.Command.RelayCommand.Execute(Object parameter)
       at System.Windows.Interactivity.InvokeCommandAction.Invoke(Object parameter)
       at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
       at System.Windows.Interactivity.EventTriggerBase.OnEvent(EventArgs eventArgs)
       at System.Windows.Interactivity.EventTriggerBase.OnEventImpl(Object sender, EventArgs eventArgs)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       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.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       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)
    DLL也核对不少,关键是这种问题是运行一段时间后出现的,不是一开始就有
      

  7.   

    会不会dll被杀毒软件删除了。你让客户重新安装 framework 试下
      

  8.   

    应该不是framework 的问题,因为问题程序我带回来了 在我这里也报错 是不是中毒了?exe被篡改了?
      

  9.   

    果然是其中一个DLL出了问题,可能是拷贝不完全,但是怎么运行一段时间后出问题?搞不懂.
    微软的错误报的也很莫名其妙...
    算了,替换之,结贴