“未授权区域"是什么意思使用 Visual Studio 2010 浏览 xsd 文件是什么意思?

编程入门 行业动态 更新时间:2024-10-11 15:18:46
本文介绍了“未授权区域"是什么意思使用 Visual Studio 2010 浏览 xsd 文件是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

当我打开包含其他 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 11:44:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1154796.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:区域   文件   quot   Studio   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!