Html IE9 res://ieframe.dll 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11430904/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IE9 res://ieframe.dll Error
提问by Alon Adler
I have a website that allows users to post images to Facebook pages. Im using a form and posting it to a hidden IFRAME, to prevent the user from being redirected after the images was posted.
我有一个网站,允许用户将图像发布到 Facebook 页面。我使用表单并将其发布到隐藏的 IFRAME,以防止用户在发布图像后被重定向。
The form definition:
表格定义:
<form name="myform" id="myform" enctype="multipart/form-data" action="" method="POST" onsubmit="getAction(this);" target="uploader">
//....form code....//
The Iframe:
内嵌框架:
<iframe name="uploader" width=2px height=2px style="visibility: hidden"></iframe>
My problem is, that in My OwnInternet Explorer 9, When I'm trying to upload an image, Im getting these errors:
我的问题是,在我自己的Internet Explorer 9 中,当我尝试上传图像时,出现以下错误:
SEC7111: HTTPS security is compromised by res://ieframe.dll/dnserrordiagoff.htm
SEC7111: HTTPS security is compromised by res://ieframe.dll/ErrorPageTemplate.css
SEC7111: HTTPS security is compromised by res://ieframe.dll/errorPageStrings.js
SEC7111: HTTPS security is compromised by res://ieframe.dll/httpErrorPagesScripts.js
SEC7111: HTTPS security is compromised by res://ieframe.dll/noConnect.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/down.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/favcenter.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/favcenter.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/background_gradient.jpg
And it gets even weirder, as in my friend's computer, which has the same IE9 version, and is connected to the same network, the post is working just fine (It is also working on another computer in my house, and another one in my brother's computer). I could have said that it is only a local problem, but as this site addresses many clients, I cant afford not understanding this error, if it happened on my own OS, it can happen on other machines.
更奇怪的是,在我朋友的电脑上,它有相同的 IE9 版本,并连接到同一个网络,帖子运行得很好(它也在我家的另一台电脑上运行,我的另一台电脑也运行)兄弟的电脑)。我可以说这只是一个本地问题,但是由于该站点针对许多客户端,我无法理解这个错误,如果它发生在我自己的操作系统上,它可能会发生在其他机器上。
I will also note that this is working on Chrome and FireFox with no problem.
我还会注意到,这在 Chrome 和 FireFox 上没有问题。
I'm not sure that it is a code related issue, I've tried to google it and found both Microsoft Articleand This article. But I removed any third party IE addons, We and my friends are connected to the same router (So it is not a router issue) and I've installed the latest Windows Updates.
我不确定这是一个与代码相关的问题,我试着用谷歌搜索它并找到了Microsoft 文章和这篇文章。但是我删除了任何第三方 IE 插件,我们和我的朋友连接到同一个路由器(所以这不是路由器问题)并且我已经安装了最新的 Windows 更新。
I'm currently have no idea about solving the problem, So I wanted to ask if any of you have experienced similar/same errors ? and maybe has some ideas about solutions...
我目前不知道解决这个问题,所以我想问你们中是否有人遇到过类似/相同的错误?也许对解决方案有一些想法......
I will be happy to provide more code if requested, but I didn't want to fill the question with code from the first place, as in most scenarios it works fine.
如果需要,我很乐意提供更多代码,但我不想从一开始就用代码填充问题,因为在大多数情况下它都可以正常工作。
Thanks.
谢谢。
采纳答案by CBroe
If it is working in your friend's IE 9, but not in your's – then compare your security settings.
如果它可以在您朋友的 IE 9 中运行,但不能在您的 IE 9 中运行,那么请比较您的安全设置。
Especially the one named “Launching programs and files in an IFRAME”could be the deal breaker, I'd suspect.
我怀疑,尤其是名为“在 IFRAME 中启动程序和文件”的那个可能是交易破坏者。
If that one is not it, then try to set every security option offering this from “Disable” to “Prompt”, and see if you get any messages in your IE.
如果不是,则尝试将提供此功能的每个安全选项从“禁用”设置为“提示”,然后查看是否在 IE 中收到任何消息。
回答by George
It is best to fix this problem at serverlevel rather than clientside, since we can't expect all other site visitors to change their IE settings just so they can use your website.
最好在服务器级别而不是客户端解决此问题,因为我们不能期望所有其他站点访问者更改他们的 IE 设置,以便他们可以使用您的网站。
As you mentioned, it is indeed caused by your iframe in httpsenvironment. IE9is particular strict on this, so you will need to define it in your x-frame-options:
正如您所提到的,它确实是由您在https环境中的 iframe 引起的。IE9对此特别严格,因此您需要在 x-frame-options 中定义它:
For Apache, HTTP Server
对于 Apache、HTTP 服务器
Add/Change following line in Apache Web Server's httpd.conf file
在 Apache Web Server 的 httpd.conf 文件中添加/更改以下行
Header always append X-Frame-Options SAMEORIGIN
Make sure it is not set to DENY
.
Restart web server
确保它没有设置为DENY
。重启网络服务器
Let me know if that helps
让我知道这是否有帮助
回答by gabore
We had these exact errors in the IE11 console yesterday. For us, setting the Request Header in IIS for the iframed content (the page that will be the src of the iframe) to P3P=NOI helped. We got there by checking on Request Headers based on Georges answer above.
昨天我们在 IE11 控制台中遇到了这些确切的错误。对我们来说,在 IIS 中将 iframe 内容(将成为 iframe 的 src 的页面)的请求头设置为 P3P=NOI 有帮助。我们根据上面的 Georges 回答检查请求标头到达那里。
The scenario was different in the way that we were passing an number generated by the portal to the iframed content by query parameter. Both the portal and the iframed site run https.
该场景的不同之处在于我们将门户生成的数字通过查询参数传递给 iframe 内容。门户和 iframe 站点都运行 https。
回答by Giles Roberts
For me this was caused by the site I was connecting to not having a valid HTTPS certificate. I'd created one for development that Windows did not recognise as being a trusted certificate.
对我来说,这是由于我连接的站点没有有效的 HTTPS 证书造成的。我为开发创建了一个 Windows 无法识别为受信任证书的开发。
回答by Zet
Solution for 'res://ieframe.dll/dnserrordiagoff.htm#':
1. Open Control Panel-Internet Options
2. Privacy tab
3. Set Low
4. Apply and OK.
“res://ieframe.dll/dnserrordiagoff.htm#”的解决方案:
1. 打开控制面板-Internet 选项
2. 隐私选项卡
3. 设置低
4. 应用并确定。