Hi
I have an http:// SharePoint web application. I have also hosted webparts and created IIS folder to launch application such as http://myCompany.portal.com/empDashboard and It loads every employee current login and display dashboard all employee activities and projects. I also have an adminview and if I pass parameter like http://myCompany.portal.com/empDashboard/?adminview=<empCode>, I can load the application for others(this is secured and only for me to support). All functionalities are working just fine. I was asked to upgrade the SP farm web application to https:// and hence I configured the certificate. I am able to run entire web application and also updated the redirect <rewrite></rewrite> in IIS. All working just fine except the impersination(admin view) part.
when I access http://myCompany.portal.com/empDashboard its automatically redirect to https://myCompany.portal.com/empDashboard however when I impersinate other employee, http://myCompany.portal.com/empDashboard/?adminview=<empCode> it changes as https://myCompany.portal.com/empDashboard/?adminview=<empCode> and then throws error stating cannot be null. It is very strange that if I directly access https://myCompany.portal.com/empDashboard/?adminview=<empCode> works just fine. It looks like IIS redirect is executed after this "SPContext.Current.Web.Url" causing value cannot found or address doesnt exist error. How can I ensure that redirect url executes first and then SPContent read the url?
Please advise. Appreicate any help.
Shri