使用 .config 扩展名的 SharePoint 文档库问题
如果我将扩展名为 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文件扩展名是配置文件扩展名。 IIS 阻止下载具有此扩展名的文件以防止安全漏洞
The file extension is a configuration file extension. IIS prevents downloading files with this extension to prevent security breaches