“未授权区域"是什么意思使用 Visual Studio 2010 浏览 xsd 文件是什么意思? [英] What does "Unauthorized zone" mean when browsing xsd files with Visual Studio 2010?

查看:36
本文介绍了“未授权区域"是什么意思使用 Visual Studio 2010 浏览 xsd 文件是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开包含其他 xsd 文件的 xsd 文件时,所有包含的文件都会添加到名为未授权区域"的部分.Visual Studio 突出显示 xs:include 元素,并在尝试解析 schemaLocation 属性时出现以下错误:

When I open up an xsd file that includes other xsd files, all of the included files are added to a section called "Unauthorized zone". Visual Studio highlights the xs:include element and gives the following error when trying to resolve the schemaLocation attribute:

请求类型为System.Security.Permissions.FileIOPermission、mscorlib、Version=4.0.0.0、Culture=neutral、PublicKeyToken=b77a5c561934e089"的权限失败.

Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

我已阅读以下内容 博文,但我对 xsd 还不够熟悉,还没有完全理解它.

I've read the following blog post, but I'm not familiar enough with xsd yet to fully understand it.

任何人都可以解释为什么会发生这种情况或向我指出可以提供帮助的好资源吗?

Can anyone explain why this is happening or point me to a good resource that can help?

要包含的所有 xsd 文件都在 Visual Studio 项目中.

All of the xsd files that are to be included are in the Visual Studio project.

推荐答案

对我来说,在转到 XSD 文件的属性并单击取消阻止后,它起作用了.我从 如何修改我的设置以允许 VS2010 从未授权区域"加载 3rd 方 XSD 文件?

For me it worked after going to the properties of the XSD file and clicking on Unblock. i got this answer from How do I modify my settings to allow VS2010 to load 3rd party XSD files from the "Unauthorized Zone"?

这篇关于“未授权区域"是什么意思使用 Visual Studio 2010 浏览 xsd 文件是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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