简体   繁体   English

嵌入式浏览器在本地计算机上下载,但不在Windows Server c#上下载

[英]Embedded Browser Downloads on Local Machine but not on Windows Server c#

I'm trying to automate some functions on a web page (download an Excel document from QuickBooks online). 我正在尝试自动执行网页上的某些功能(从QuickBooks在线下载Excel文档)。 I've got the script working fabulously on my local development machine (running Windows 8.1), but when I compiled it and ran it on our server (running Windows Server 2012 R2), it runs okay until I need to actually download the file. 我已经在本地开发计算机(运行Windows 8.1)上很好地运行了脚本,但是当我对其进行编译并在我们的服务器上运行(运行Windows Server 2012 R2)时,该脚本运行正常,直到需要实际下载文件为止。 No prompts pop up, and the Navigating handler just freezes on a URL looking like the following: https://qbo.intuit.com/c1/v82.221.1234567890123/1342890533/reports/execute?rptid=1342890533-PANDL-export-1423773529093 没有弹出提示,并且Navigating处理程序仅冻结如下所示的URL: https://qbo.intuit.com/c1/v82.221.1234567890123/1342890533/reports/execute?rptid=1342890533-PANDL-export-1423773529093 : https://qbo.intuit.com/c1/v82.221.1234567890123/1342890533/reports/execute?rptid=1342890533-PANDL-export-1423773529093 1342890533-PANDL-export-1423773529093

This is the type of URL that gets generated when you click on the "Export to Excel" button. 这是单击“导出到Excel”按钮时生成的URL的类型。 Unfortunately, there isn't an easy URL with a ".xls" at the end, or else I'd handle that in the Navigating event. 不幸的是,没有一个以“ .xls”结尾的简单URL,否则我将在Navigating事件中处理它。

I'm running Visual Studio 2013, and I'm using the webBrowser control in a Windows Form application as an embedded browser. 我正在运行Visual Studio 2013,并且在Windows窗体应用程序中将webBrowser控件用作嵌入式浏览器。 I'll attach code if you feel it's necessary. 如果您认为有必要,我会附上代码。

My main question is this: Why does it work on my home computer and not on our server? 我的主要问题是: 为什么它不能在家用计算机上运行,​​而不能在服务器上运行?

Also, I've made sure that my Internet Explorer > Internet Options match for both my home computer and the server. 另外,我确保我的Internet Explorer> Internet选项与家用计算机和服务器都匹配。 I've additionally turned off IE Enhanced Protected Mode on the server. 我还关闭了服务器上的IE增强保护模式。

Is there another setting somewhere that would prevent the save dialog box (see pic attached) from appearing like it does on a normal home computer running Windows 8.1? 是否有其他设置会阻止“保存”对话框(请参见附件)像在运行Windows 8.1的普通家用计算机上那样显示?

Thanks in advance! 提前致谢!

保存对话框

Alright, in case anyone needs this in the future. 好吧,以防将来有人需要。 It ended up being a Group Policy Object that was overriding the Internet Options. 它最终是一个覆盖Internet选项的组策略对象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM