在我们的应用程序中,下载PDF文件时“失败 - 网络错误”。相同的功能在IE和FF中运行良好 [英] In our application, while downloading PDF file getting “failed - network error”. The same functionality is working fine in IE and FF

查看:959
本文介绍了在我们的应用程序中,下载PDF文件时“失败 - 网络错误”。相同的功能在IE和FF中运行良好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的应用程序中,下载PDF文件时出现失败 - 网络错误。相同的功能在IE和FF中运行良好。



Chrome版本:62.0.3202.75



运营系统:Windows 10,64位



附加屏幕截图 [ ^ ]



在附图中你可以看到左下方附件失败 - 网络错误显示。



我尝试了什么:



用Google搜索但没有找到太多帮助。有人在谈论增加内容标题长度,即使已经尝试过,但即使应用程序停止工作也没有发生任何事情。

In our application, while downloading PDF file getting "Failed - Network Error". The same functionality is working fine in IE and FF.

Chrome version: 62.0.3202.75

Operating system: Windows 10, 64 bit

Screen shot attached[^]

In the attached picture you can see in the bottom left side under the attachment "Failed - network Error" is showing.

What I have tried:

Googled about it but didn't find much help. Someone was talking about increasing content header length, even that is tried but nothing happened even application stopped working.

推荐答案

找到解决方案,在添加转移后的最新版Chrome中-Encoding标题开始工作。



Response.AddHeader(转移编码,身份);
Found solution, in latest versions of Chrome after adding "Transfer-Encoding" header it starts working.

Response.AddHeader("Transfer-Encoding", "identity");


这篇关于在我们的应用程序中,下载PDF文件时“失败 - 网络错误”。相同的功能在IE和FF中运行良好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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