We are working on an ASP.NET application at work that uses the just-in-time collection server code with PivotViewer. Everything works fine using plain http. However, the ASP.NET application requires users to login which means that it would be better if we use httpS ( SSL).
We needed to install Microsoft URL Rewrite Module http://www.iis.net/download/URLRewrite on the Server that hosts our application. We also added the following in our web.config to make the automatic 80 -> 443 redirection work
After the section, and this can not go anywhere else, the following code is added:
<rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> We have No web service, No WCF service, No ASMX Service.
However, when we deploy the application with httpS (SSL), the just-in-time collection server code with PivotViewer fails to show anything. There is No error. It just Fails to show anything.
Also, one of our Server Infrastructure technicians used fiddler to see if they can get more insight into the problem.
The following dzc url is requested twice in http, pictures load.
http://something.com/PivotResources-7fd9630b252c4ae794204f6b50b7ae06.dzc
But only once in https, pictures don't load.
https://something.com/PivotResources-70143ce2bf6149ff99656b21c9296eee.dzc
May I please know if anyone has had problems like this with just-in-time collection server code with PivotViewer using httpS (SSL)? If so, could you please suggest how I would go about resolving this issue?
Answer: 1
Hi, Did you mean you want to change the protocol of your ASP.NET application from http to https?
For building secure ASP.NET application, please refer to: http://msdn.microsoft.com/en-us/library/ff649211.aspx
For URL rewrite, please refer to: http://msdn.microsoft.com/en-us/library/ms972974.aspx http://weblogs.asp.net/jalpeshpvadgama/archive/2011/12/11/easy-url-rewriting-in-asp-net-4-0-web-forms.aspx
Hope this will help you!
Answer: 2
mmjj:
Thank you for responding to my posting. We have already changed our protocol from http to https.
We already installed Microsoft URL Rewrite Module http://www.iis.net/download/URLRewrite on the Server that hosts our application.
All the ASP.NET components work fine under httpS (SSL). However, our just-in-time collection server code with PivotViewer which is our Silverlight/PivotViewer component fails under httpS (SSL).
Everything works well under plain http. However, we want to have security and move everything over to httpS (SSL).
We have No web service, No WCF service, No ASMX Service.
Why is the just-in-time collection server code with PivotViewer which is our Silverlight/PivotViewer component failing over httpS (SSL)?
Answer: 3
As you mentioned, the just-in-time collection server code with PivotViewer can work, there is no error, just fails to show anything. So you can debug your application to tell if the just-in-time collection is empty or the PivotViewer control can't display it?
http://msdn.microsoft.com/en-us/library/5hs4b7a6(v=vs.100).aspx
You said everything works fine under plain http, so I think you must received an empty just-in-time collection.
So what I am thinking is that you need configurate your Silverlight project.
Thanks for for reading.
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog