Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 ssrs 2008, urgent please!!

Author  Topic 

sqlserverdeveloper
Posting Yak Master

243 Posts

Posted - 2009-10-01 : 14:39:01
This is in ssrs 2008:
If the user enters http://reports.domain.com then that user needs to head to https://reports.domain.com/reports instead.
By adding the below code to global.asax file, I am able to redirect the page to https://reports.domain.com/reports
but with errors.
Code I used in global.asax file for redirection:

Imports System.Web.SessionState
Public Class Global_asax
Inherits System.Web.HttpApplication
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
' Fires at the beginning of each request
If Request.Url.ToString().StartsWith("http:") Then Response.Redirect(Request.Url.ToString.Replace("http", "https"), True)
End Sub
End Class

Like I said it's getting redirected but with the following errors:
HTTP Error 401.1 - Unauthorized
You do not have permission to view this directory or page using the credentials that you supplied.

I am the admin on the server!! Please let me know how I can resolve this issue.

Thanks.
   

- Advertisement -