Showing posts with label enabled. Show all posts
Showing posts with label enabled. Show all posts

Wednesday, March 28, 2012

Problem with AuthenticationExtension

Hi,

I got SSRS2005 with FormsAuthentication working for a while now without any problems. I decided to create some kind of 'Account Enabled' functionality and therefore I modified my AuthenticationExtension.cs. But what happened, the new functionality does not work. After adding some logging stuff to this file nothing changed. So it looks as if AuthenticationExtension.css is not being used at all in my security extension. I verified this by removing the file from the project and still...no changes! Other files in my security extension module are being used however. When I make a change to AuthenticationUtilities I can see it in my results.

Does anyone know how this can happen? Why is my extended IAuthenticationExtension not been used?

Thanks,

Hans

I assume you've redeployed the dll to the report server / manager bin directory. Have you tried debugging and stepping into the code?|||...thanks. This brougth me to the solution. I replaced the security dll in my customized application's bin directory but not in the RS-server and RS-manager bin's. After doing this it worked as expected. Obviously only dll's in these bin directories are relevant.|||Hey i have a huge problem, right now my machine has installed SQL 2005 and .NET 2005, but my example for custom security needs SQL 2000.

Could you give the address where you found the FormsSecurity solution, please?
|||Hi, there's in fact no big difference with the extensions you're using with SQL2000. The security extensions should be there when you installed SQL2005. I know that a couple of extra methods came with the Security extension 2005, that you have to override in your own code, but you'll notice soon enough. What error message do you get?sql

Problem with AuthenticationExtension

Hi,

I got SSRS2005 with FormsAuthentication working for a while now without any problems. I decided to create some kind of 'Account Enabled' functionality and therefore I modified my AuthenticationExtension.cs. But what happened, the new functionality does not work. After adding some logging stuff to this file nothing changed. So it looks as if AuthenticationExtension.css is not being used at all in my security extension. I verified this by removing the file from the project and still...no changes! Other files in my security extension module are being used however. When I make a change to AuthenticationUtilities I can see it in my results.

Does anyone know how this can happen? Why is my extended IAuthenticationExtension not been used?

Thanks,

Hans

I assume you've redeployed the dll to the report server / manager bin directory. Have you tried debugging and stepping into the code?|||...thanks. This brougth me to the solution. I replaced the security dll in my customized application's bin directory but not in the RS-server and RS-manager bin's. After doing this it worked as expected. Obviously only dll's in these bin directories are relevant.|||Hey i have a huge problem, right now my machine has installed SQL 2005 and .NET 2005, but my example for custom security needs SQL 2000.

Could you give the address where you found the FormsSecurity solution, please?|||Hi, there's in fact no big difference with the extensions you're using with SQL2000. The security extensions should be there when you installed SQL2005. I know that a couple of extra methods came with the Security extension 2005, that you have to override in your own code, but you'll notice soon enough. What error message do you get?

Problem with AuthenticationExtension

Hi,

I got SSRS2005 with FormsAuthentication working for a while now without any problems. I decided to create some kind of 'Account Enabled' functionality and therefore I modified my AuthenticationExtension.cs. But what happened, the new functionality does not work. After adding some logging stuff to this file nothing changed. So it looks as if AuthenticationExtension.css is not being used at all in my security extension. I verified this by removing the file from the project and still...no changes! Other files in my security extension module are being used however. When I make a change to AuthenticationUtilities I can see it in my results.

Does anyone know how this can happen? Why is my extended IAuthenticationExtension not been used?

Thanks,

Hans

I assume you've redeployed the dll to the report server / manager bin directory. Have you tried debugging and stepping into the code?|||...thanks. This brougth me to the solution. I replaced the security dll in my customized application's bin directory but not in the RS-server and RS-manager bin's. After doing this it worked as expected. Obviously only dll's in these bin directories are relevant.|||Hey i have a huge problem, right now my machine has installed SQL 2005 and .NET 2005, but my example for custom security needs SQL 2000.

Could you give the address where you found the FormsSecurity solution, please?|||Hi, there's in fact no big difference with the extensions you're using with SQL2000. The security extensions should be there when you installed SQL2005. I know that a couple of extra methods came with the Security extension 2005, that you have to override in your own code, but you'll notice soon enough. What error message do you get?

Saturday, February 25, 2012

Problem using Reporting Services forms authentication with SSL

I am using Reporting services 2005 and have enabled forms authentication using the example found in:
'C:\Program Files\Microsoft SQL Server\90\Samples\Reporting Services\Extension Samples\FormsAuthentication Sample'
This works correctly without SSL, but when I enable SSL I get an error when logging in. The symptoms are as follows. I can login to the reporting server (in my case <server>/ReportServer2) directory, but when I login to the report manager (in my case at <server>/Reports2) I get the following error:
'The underlying connection was closed: An unexpected error occurred on a send.'
Can anyone suggest why I might be getting this error?

Thank you,
Graham

Please check your RSWebApplication.config for the Entry ReportServerUrl. This should contain the correct reportserver url in this format

<UI>
<ReportServerUrl>https://<certificatename>/reportserver2</ReportServerUrl>
<ReportServerVirtualDirectory></ReportServerVirtualDirectory>