IIS不提供XFDF文件.解决办法是什么? [英] XFDF file not being served by IIS. What is the fix?

查看:86
本文介绍了IIS不提供XFDF文件.解决办法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将网站重新定位到新服务器的过程仍在继续,而我又遇到了另一个挫败感.我正在生成一个XML格式的数据文件(XFDF),它将Web用户提供的数据与Adobe文档合并并提供结果.这在旧站点上工作正常,但是IIS 7在新站点上返回404错误.该文件已存在,并且已正确格式化:我可以在新站点上生成该文件,将其复制到旧站点后可以正常工作,也可以在提供该文件的旧站点上生成该文件,然后将其复制到新站点上.得到同样的错误.我可以将URL复制到PDF,并且在两个站点上都可以使用.

问题似乎是IIS正在查找文件,但未处理请求.我看不到旧系统(IIS 6)上明确允许使用XFDF文件的任何地方:没有HTTP筛选器,没有MIME类型的显式声明,什么都没有.

关于如何解决此问题的任何建议?

解决方案

IIS配置
服务器属性/网站属性中的HTTP标头
哑剧类型

IIS仅提供带有在Mime类型列表中注册的扩展名的文件
因此,为具有合适的mime类型的XFDF文件添加一个条目.

我刚刚检查了IISv6的安装,看不到XFDF文件的条目(确保您同时检查了单个网站的服务器属性和HTTP标头属性)-如果没有条目,我如果IIS为文件提供服务,会有些惊讶-除非还有一个ISAPI筛选器可以获取ASP.NET或其他东西来处理它并生成响应(可能值得检查!).


The relocating of our web site to a new server continues apace, and I''ve run into yet another frustration. I am generating a XML Formatted Data File (XFDF) which merges data provided by a web user with an Adobe document and serves up the result. This works just fine on the old site, but IIS 7 returns a 404 error on the new site. The file exists, and it is formatted properly: I can generate the file on the new site and it works fine when copied to the old, and I can generate the file on the old site where it gets served, copy it to the new and get the same error. I can copy the URL to the PDF and that works on both sites.

The problem seems to be that IIS is finding the file but not serving the request. I cannot see any place on the old system (IIS 6) that explicitly allows XFDF files to be delievered: there are no HTTP filters, no explicit declarations of MIME type, nothing.

Any suggestions on how I can get this fixed?

解决方案

IIS configuration
Server properties / HTTP Headers in web site properties
Mime Types

IIS only serves files with extensions registered in the Mime types list
So add an entry for XFDF files with a suitable mime type.

I''ve just checked my IISv6 installation and can''t see an entry for XFDF files (make sure you check BOTH the server properties AND HTTP Header properties for individual web sites) - if there''s no entry I''m slightly surprised if IIS serves the files - unless there''s also an ISAPI filter that gets ASP.NET or something else to handle it and generate a response (might be worth checking!).


这篇关于IIS不提供XFDF文件.解决办法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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