在设计器中加载XAML时出现System.IO.FileNotFoundException [英] System.IO.FileNotFoundException when loading xaml in designer

查看:109
本文介绍了在设计器中加载XAML时出现System.IO.FileNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我最近一直在尝试启动Express for Windows 8并使其运行.但是,在将xaml加载到设计器中时,我始终会遇到System.IO.FileNotFoundException(在Blend中也是如此).我尝试过多次重新安装,并且也进行了搜索 解决问题,但找不到任何东西.有人可以帮忙,我很高兴为这个新平台进行开发,但是步履维艰.

I've recently been trying to get Express for Windows 8 up and running. However I keep getting System.IO.FileNotFoundException when loading an xaml into the designer (also same result in Blend). I've tried reinstalling multiple times and have also searched for a solution to the problem but couldn't find anything. Could someone please help, I'm interesting in developing for this new platform however can't get going.

顺便说一句,我有用于桌面的VS Express,它的工作正常.

BTW I have VS Express for desktop , its working fine.

我尝试过的事情

  • 重新安装
  • 启动不同类型的新项目(结果相同)
  • 不同的项目目录

完全错误

System.IO.FileNotFoundException
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

System.IO.FileNotFoundException
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

Server stack trace: 
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

System.IO.FileNotFoundException
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
   at Windows.Foundation.IAsyncOperation`1.GetResults()
   at Microsoft.Expression.WindowsXamlPlatform.Host.RuntimeResourceManager.GetStorageFileForPath(String indexPath)
   at Microsoft.Expression.WindowsXamlPlatform.Host.RuntimeResourceManager.ProcessIndexUpdates()
   at Microsoft.Expression.WindowsXamlPlatform.Host.RuntimeResourceManager.OnNewIndex(String newFileName, String newResourceMapName)
   at Microsoft.Expression.WindowsXamlPlatform.Host.XamlUIPresenterHostServices.OnResourceIndexUpdated(HostResourceIndexUpdatedEventArgs args)
   at Microsoft.Expression.WindowsXamlPlatform.Host.WindowsUIXamlResourceIndexProvider.OnResourceIndexUpdated(EventArgs args)
   at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func)
   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()
   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

推荐答案

嗨BennyJohnson33,

Hi BennyJohnson33,

感谢您的信息.

该异常表明系统找不到指定的文件.听起来您的VS已损坏.

The exception says system cannot find file specified. It sounds your VS is corrupt.

您可以先尝试从控制面板修复它吗?

Can you try repair it from control panel first?

如果错误仍然存​​在,您可以尝试以下解决方法:

If the error persists, can you try the following for me to troubleshoot:

请使用 http://aka.ms/vscollect 收集安装日志.使用它之后,您将在%temp%文件夹中找到vslogs.cab.请将文件上传到 https://skydrive.live.com/ 并与我们分享链接.

Please use http://aka.ms/vscollect   to gather the installation logs. After using it, you will find vslogs.cab from %temp% folder. Please upload the file to https://skydrive.live.com/  and share the link with us.

此致


这篇关于在设计器中加载XAML时出现System.IO.FileNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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