Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Power BI Report Server 404 Not Found after removing HTTP URL Reservation

Hi,
I have been asked to remove possibility to access report via HTTP on Report Server.

I have removed reservations for address REPORTServerURL.COMPANY.COM and just leave REPORTServerURL.COMPANY.COM on HTTPS Section.

But after that whenever I try to access Power BI Reports on report server (open it or try to Manage it) i am getting generic Error on Browser.

Inside the LOG file i can find :

2021-06-11 12:59:13.4679|ERROR|6|OData exception occurred: System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.ReportingServices.Portal.ODataWebApi.Utils.PbixReportHelper.ShouldReShred(PowerBIReport entity, Uri basePortalUrl, ILogger logger, IPrincipal userPrincipal, String reportServerHostName)
at Microsoft.ReportingServices.Portal.ODataWebApi.Common.CatalogItemControllerHelper`1.GetItem(String key)
at Microsoft.ReportingServices.Portal.ODataWebApi.V2.Controllers.CatalogItemsController.GetEntity(String key, String castName)
at Microsoft.ReportingServices.Portal.ODataWebApi.Controllers.Reflection.EntitySetReflectionODataController`1.GetRoot(ODataPath oDataPath, Int32& index)
at Microsoft.ReportingServices.Portal.ODataWebApi.Controllers.Reflection.ReflectionODataController`1.Get(ODataPath oDataPath)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c_DisplayClass6_2.<GetExecutor>b2(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d
1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d
6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d
6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d
5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d
5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d
_6.MoveNext().| RequestID = s_b51b9bce-3f3e-46aa-8c9b-d184f31c865d

5 Replies

  • Hi Anonymous !

     

    Please provid eus some background why you were advised to remove those entries. For now you can add back these entries from Report Configuration Manager if you are able to access it.

     

    Regards,

    Hasham

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi HashamNiaz ,
      Yes I Have enabled back HTTP URL and everything works.

      The reason why I want to remove it is that, Company want enforce users to use report server only via HTTPS (Security Team requiremnts), so i thought I can remove HTTP URLs from URL Reservation and job will be done.
      Note: Most people use HTTPS as this is standard how links are being distributed but there is clear requiremnt that users can't be allowed to access reports via HTTP.

      I have read that alternatively I can create URL Redirection Script but I am not so familiar with such solution.

      Today I found that there is parameter in RS Config file "SecureConnectionLevel" and I can switch it to value grater that 0. Do you think that it will work? 
       

      • HashamNiaz's avatar
        HashamNiaz
        Solution Sage

        Hi Anonymous !

        Please follow the MS documentation on how to add security certificate to your Server which will allow you to configure https;

         

        Configure Report Server 

         

        Regards,

        Hasham