After deploying Nintex Reporting you browse the newly created Report Centre and you are presented with multiple "Silverlight Errors" (Error Code 2207).
This small problem causes a major issue when you browse the Nintex Report Center hosted on a web application that has IIS Compression enabled on ".aspx" files you will receive multiple Silverlight Error messages. This can make the report center very frustrating to use and browse.
The cause of this issue is a result of using HTTP Compression. This is a popular feature that improves the performance of page load times over slow connections or VPN connections. In this particular scenario we had enabled IIS Compression on IIS 6 and another potential issue is that IIS 7 has compression enabled by default.
The official workaround is to disable IIS Compression. The problem with this is that IIS Compression has usually been enabled for a reason and disabling IIS Compression will decrease the performance of your SharePoint site. This got me thinking about how we could have the best of both worlds?
The challenge is how do we retain the Global IIS Compression but avoid the Silverlight popup messages. This workaround is only applicable if you have enabled IIS Compression globally on your Web Applications. If you are using a
Note: If you are using a 3rd Party HTTP Compression product then this workaround will not work for you and you should contact your vendor.
To successfully get Nintex Reports to be deployed on a Web Application that utilises IIS Compression you will need to do the following:
Deploy the "Report Center" to the root of a Web Application.
Determine the ID number for the Web Application that is hosting the Report Center. You can do this through the IIS Management console.
In this example the ID for the web application is 1891294119.
Disable Dynamic Compression on the "/_layouts/" folder in the web application.
- CD into "C:\Inetpub\AdminScripts" folder
cscript adsutil.vbs set w3svc/<WebAppID>/root/_layouts/DoDynamicCompression false
If you entered the command correctly you should see this message.
- These changes should take effect immediately, so you can now return to the web application and refresh your web browser. If everything has worked as expected, you should no longer receive the multiple Silverlight error messages.
For Further reading MSDN: Enabling HTTP Compression (IIS 6.0).