使用 .config 扩展名的 SharePoint 文档库问题

发布于 2024-09-08 12:37:16 字数 388 浏览 1 评论 0原文

如果我将扩展名为 .config 的文件上传到 SharePoint 文档库,从浏览器中单击它们会显示消息:

XML 解析错误:未找到元素 位置: https://www...........一些文件.config 第 1 行,第 1 列:

此外,如果我使用“使用 Windows 资源管理器打开”查看文档库,我将无法查看或复制任何 .config 文件。我始终收到“找不到文件”类型的错误。 请注意,如果我将 .txt 文件添加到此文档库,它就可以正常工作。我为 .config 定义了 MIME 类型,现在收到 404 错误。

有什么想法吗?

If I upload files with the .config extension to a SharePoint document library, clicking on them from a browser gives me the message:

XML Parsing Error: no element found
Location: https://www...........somefile.config
Line Number 1, Column 1:

Also, if I view the document library using "Open with Windows Explorer" I am unable to view or copy any of the .config files. I consistently get a "file not found" type error.
Note that if I add a .txt file to this document library, it works fine. I defined the MIME type for .config, and now I get 404 errors.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

荒芜了季节 2024-09-15 12:37:16

文件扩展名是配置文件扩展名。 IIS 阻止下载具有此扩展名的文件以防止安全漏洞

The file extension is a configuration file extension. IIS prevents downloading files with this extension to prevent security breaches

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文