Long SSRS URL 适用于 IE 和 Edge,但不适用于 Chrome(报表服务器在 HttpApplication 中遇到未处理的异常。)

Long SSRS URL Works in IE and Edge, but not Chrome (The report server encountered an unhandled exception in HttpApplication.)

编辑:想通了。

  1. 转到安装SSRS的服务器。

  2. 找到 SSRS 的安装目录(C:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\ReportServer 在我的例子中)

  3. 编辑 web.config 文件的 httpRunTime 属性 以包含行 maxQueryStringLength="5120"(或大于我尝试的字符串长度的某个数字)通过)

  4. 保存

  5. 停止和启动 SQL Server Reporting Services 服务。

下面的原始问题

我的客户通过 Tableau public 使用了一些 Tableau 仪表板。这无法确保安全,因此我们正在根据用户所做的过滤器选择构建 SSRS 报告 URLs 并转到 SSRS。 Chrome 中似乎存在某种字符限制问题。我不确定它是什么,但是当传递一个很长的 URL(4000+ 个字符)时,Chrome 会出错,但 IE 或 Edge 不会出错。

编辑:似乎删掉了 2114 个字符。在 2115 个字符处,错误显示。

EDIT2:这是 SSRS 日志的内容:System.Web.HttpException:此请求的查询字符串的长度超过了配置的 maxQueryStringLength 值。

报表服务器在 HttpApplication 中遇到未处理的异常。

有人知道为什么会这样吗?

下面是URL

http://oirtest.host.ualr.edu/ReportServer/Pages/ReportViewer.aspx?/Development/Blane%20Dev/tableau_integration_test_2&pParamCSV=2018||Arts%2C%20Letters%2C%20and%20Sciences~Business~Clinton%20School%20of%20Public%20Services~Donaghey%20Engr%20%26%20Info%20Tech~Education%20%26%20%20Health%20Professions~Interdisciplinary%20Studies~Law~Social%20Sciences%20%26%20Communications||Accounting~Applied%20Communication~Applied%20Science~Art%20and%20Design~Audiology%20and%20Speech%20Pathology~Biology~Business%20Administration~Business%20Information%20Systems~Chemistry~Clinton%20School%20of%20Public%20Service~College%20of%20Social%20Sciences%20and%20Communication~Computer%20Science~Construction%20Management%20and%20Civil%20and%20Construction%20Engineering~Counseling%2C%20Human%20Performance%20and%20Rehabilitation~Criminal%20Justice~Earth%20Sciences~Economics%20and%20Finance~Education~Engineering%20Technology~English~History~Information%20Science~Interdisciplinary%20Studies~Law~Management~Marketing%20and%20Advertising~Mass%20Communications~Mathematics%20and%20Statistics~Music~Nursing~Philosophy%20%26%20Interdisciplinary%20Studies%20Department~Physics%20and%20Astronomy~Psychology~Public%20Affairs~Rhetoric%20and%20Writing~Social%20Work~Sociology%20and%20Anthropology~Systems%20Engineering~Theatre%20Arts%20and%20Dance~World%20Languages||Accounting~Adult%20and%20Professional%20Learning~American%20Sign%20Language%20Studies~Anthropology~Applied%20Communication%20Studies~Applied%20Psychology~Applied%20Science~Applied%20Sciences~Applied%20Statistics~Art~Bioinformatics~Biology~Building%20Level%20Administration~Business~Business%20Administration~Business%20Analytics~Business%20Information%20Systems~Certificate%20in%20Accounting~Chemistry~Civil%20%26%20Construction%20Engineering~Communication%20Sciences%20%26%20Disorders~Computer%20and%20Information%20Sciences~Computer%20Programming~Computer%20Science~Conflict%20Mediation~Construction%20Management~Construction%20Science~Counselor%20Education~Crime%20Scene%20Investigation~Criminal%20Justice~Curriculum%20%26%20Instruction~Curriculum%2FProgram%20Administration%20%26%20Supervision~Dance%20Performance~Data%20Science~Dyslexia%20Therapist~E-Commerce~Early%20Childhood%20Education~Economics~Education~Educational%20Administration~Electrical%20and%20Computer%20Systems%20Engineering~Electronics%20%26%20Computer%20Engineering%20Technology~Elementary%20Education~Engineering%20Science%20%26%20Systems~Engineering%20Technology%20(Mechanical)~English~Environmental%20Health%20Sciences~Finance~General%20Education~Geology~Gerontology~Gifted%20Education~Gifted%2C%20Creative%2C%20and%20Talented%20Education~Health%20Education%2FPromotion~Health%2C%20Human%20Performance%20%26%20Sport%20Management~Higher%20Education~History~Human%20Resources%20and%20Organizational%20Psychology~Information%20Quality~Information%20Science~Interdisciplinary%20Studies~International%20Business~International%20Studies~Interpretation%3A%20%20American%20Sign%20Language%2FEnglish~K-12%20Health%20and%20Physical%20Education~Law~Law%20Enforcement~Learning%20Systems%20Technology~Literacy%20Intervention%20Specialist~Management~Marketing~Mass%20Communication~Master%20of%20Public%20Administration%20(4%2B1)%20Program~Mathematical%20Sciences~Mathematics~Mechanical%20Engineering%20Technology~Mechanical%20Systems%20Engineering~Middle%20Childhood%20Education~Music~Music%20Education~Nonprofit%20Management~Nursing~Nursing%20Completion%20Program~Online%20Writing%20Instruction~Orientation%20%26%20Mobility%20of%20the%20Blind~Performance~Philosophy~Physics~Political%20Science~Professional%20%26%20Technical%20Writing~Professional%20Sales~Psychology~Public%20History~Public%20Service~Reading~Reading%2FLiteracy%20Coach~Rehabilitation%20Counseling~Rehabilitation%20of%20the%20Blind~Rural%20and%20Urban%20School%20Leadership~Social%20Work~Sociology~Special%20Education~Special%20Education%20K-12~Sport%20Management~Superintendency~Systems%20Engineering~Technology%20Innovation~Theatre%20Arts~User%20Experience%20Design%20%26%20Web%2FMobile%20Development~Web%20Design%20%26%20Development~Workplace%20Spanish~World%20Languages

  1. 转到安装SSRS的服务器。

  2. 找到 SSRS 的安装目录(C:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\ReportServer 在我的例子中)

  3. 编辑 web.config 文件的 httpRunTime 属性 以包含行 maxQueryStringLength="5120"(或大于我尝试的字符串长度的某个数字)通过)

  4. 保存

  5. 停止和启动 SQL Server Reporting Services 服务。