当我尝试在UWP空白应用程序

时间:2015-10-11 12:37:20

标签: visual-studio-2015 uwp

我刚刚在我的PC上安装了VS2015社区,从Win 8.1升级到windows10,我正在尝试构建我的第一个UWP hello world应用程序。到目前为止,我所做的只是开放的新项目 - >已安装 - >模板 - > Visual C# - > Windows - >通用 - >空白的应用当我尝试打开main.xaml文件时,我得到一个异常System.ObjectDisposedException已关闭安全句柄。我是UWP编程和VS2015的新手。任何帮助都非常感谢。

System.ObjectDisposedException 安全手柄已关闭    在Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath,String clientPort,Uri hostUri,IDictionary environmentVariables,Int32&amp; processId,Object&amp; processData)    在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory,IIsolationBoundary boundary,AppDomainSetup appDomainInfo,IIsolationTarget isolationTarget,String baseDirectory)    在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)    在Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)    在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.Initialize()    在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.CreateInstance [T](类型类型)    在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedObjectFactory.Initialize()    在Microsoft.VisualStudio.DesignTools.DesignerHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget,IObjectCatalog目录)    在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)    在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)    在Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget,CancellationToken cancelToken,DesignerServiceEntry&amp; entry,IServiceProvider serviceOverrides)    在Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)    在Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.InvokeWithCulture [T](CultureInfo culture,Func 2 func, CancellationToken cancelToken) at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.<>c__DisplayClass10_0 1.b__0()    在System.Threading.Tasks.Task`1.InnerInvoke()    在System.Threading.Tasks.Task.Execute()

这就是异常的样子。如果格式不佳,请原谅。这是我的第一篇文章

0 个答案:

没有答案