SSRS 2008 R2 - Custom Security Extension does not working
MSSQL build version: 10.50.1734 when i configured reporting service to work with Custom Security (Means: Before accessing Report Server using URL or Web service it will navigate you to Login page where you can give credentials and then redirected to the Redirect url. ) I have applied this custom security using this sample: http://msftrsprodsamples.codeplex.com/wikipage?title=SS2008!Security%20Extension%20Sample Since this example is for 2005, i need to tweak around and apply changes. My custom dll name is : HB.Reporting.dll Which has two login pages: Logon.aspx and UILogon.aspx One folder "Security": which contains all the .cs files AuthenticationExtension.cs,AuthenticationUtilities.cs,Authorization.cs and ReportingService2010.cs All these classes have namespace "HB.Reporting.Security" When i try to access the reports using 1. "http://XXX/ReportServer_HBRS/Pages/ReportViewer.aspx?%2fHB.Reports%2fReport1&rs:Command=Render " I am being redirected to Logon.aspx and there i am getting this exception: webserver!ReportServer_0-7!1efc!03/24/2011-16:34:59:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.UnhandledHttpApplicationException: , Microsoft.ReportingServices.Diagnostics.Utilities.UnhandledHttpApplicationException: The report server encountered an unhandled exception in HttpApplication. ---> System.Web.HttpParseException: Could not load type 'HB.Reporting.Logon'. ---> System.Web.HttpParseException: Could not load type 'HB.Reporting.Logon'. ---> System.Web.HttpException: Could not load type 'HB.Reporting.Logon'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---; 2. When i try to access the Report Manager using Url like: "http://pandyat/Reports_HBRS/UIlogon.aspx?ReturnUrl=%2fReports_HBRS%2fhome.aspx" When i give username and password i do not get anything back. Though it is validating my credential. If i give wrong username or password i get an message 'Invalid Username or password' which is desired. But After validating correct user the does not do any thing. there is no log i could find for it. It suppose to redirected to Home.aspx. Have any one of you have any idea what is going on? Let me know if any one wants more details. Tarang Pandya
March 24th, 2011 11:41pm

Hi Tarang Pandya, This is a silimar thread, you could get some reference from it http://social.technet.microsoft.com/Forums/en-US/sqlreportingservices/thread/b1953334-ba23-49b2-8eea-20ccdd05817d to see Vlad Tsihotskyy's reply. For more information about Custom Security Extension, please see: http://www.devx.com/dotnet/Article/26759 Thanks, Challen FuPlease remember to mark the replies as answers if they help and unmark them if they provide no help.
Free Windows Admin Tool Kit Click here and download it now
March 27th, 2011 9:28am

Now I am facing anothe problem. For Reportmanager After giving credential on UILogon.aspx, page does not do any thing. It should redirect me to the Home.aspx page. I could not find any thing in log file also. Please help.Tarang Pandya
April 20th, 2011 4:40pm

Hi Tarang, This thread is little old, could you please create a new one? Thanks for your understanding.Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Free Windows Admin Tool Kit Click here and download it now
April 20th, 2011 9:17pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics