[UWP] VS 2015 xaml设计器的问题
我正在开发的计算机用作Windows 7 Pro,但最近已升级到Windows 10 Pro。我目前安装了Visual Studio 2015 Pro。最近我研究了为Windows 10开发通用Windows应用程序并成功启动Visual C#Universal(空白应用程序)项目
之后(没有任何错误)我无法打开MainPage.xaml的设计器页面(或任何其他视图,如果我添加另一个)。我得到一个"未处理的异常已经发生"错误,包含以下详细信息。
The computer I am developing on use to be Windows 7 Pro, but has since recently been upgraded to Windows 10 Pro. I currently have Visual Studio 2015 Pro installed. Recently I have looked into developing a Universal Windows App for Windows 10 and after successfully starting a Visual C# Universal (Blank App) project (without any errors) I cannot open the MainPage.xaml's designer page (or any other view if I add another). I get a "An Unhandled Exception has occurred" error with the following details.
System.UnauthorizedAccessException
访问被拒绝。
错误0x80070005 :从位置打开文件:AppXManifest.xml失败并显示错误:访问被拒绝。
System.UnauthorizedAccessException
Access is denied.
error 0x80070005: Opening file from location: AppXManifest.xml failed with error: Access is denied.
现在我查看了AppXManifest.xml文件并看到它拥有System user和my的完全权限帐户。我不确定是什么原因引起了这个问题。我可以看到XAML代码,而不是设计师视图。
Now I have looked at the file AppXManifest.xml and seen that it has full permission's for System user and my account. I am not sure what could be causing the issue. I can see the XAML code, just not the designer view.
任何人都对我可以尝试的东西有任何想法吗?
Any body have any thoughts to what I can try?
我有尝试,删除和创建不同目录和不同驱动器号位置的新项目。我已经尝试修复甚至卸载并重新安装Visual Studio但问题仍然存在。
I have tried, deleting and creating a new project in both different directory and different drive letter location. I have tried repairing and even uninstalling and reinstalling Visual Studio but the problem still happens.
谢谢,
Andy
您好,
作为友情提醒,请确保根据
发布指南:主题行标记
As a friendly reminder please make sure to add the appropriate tags to the title of your post as per Guide to posting: subject line tags
请尝试确保您已启用开发者模式如下所示,请转到
Windows 10设置> 更新&安全性
> 对于开发者如下:
Please try to make sure that you have enabled the Developer Mode as following by go to Windows 10 Settings > Update & Security > For Developers as following:
之后您将获得正确的权限。
After that you will get the correct permissions.
最好的问候,
Amy Peng
Best Regards,
Amy Peng