How To > Debug a Security Provider |
Once you have created a custom security provider, you may need to debug it. The following steps walk you through how to do this using the sample custom security provider project installed with ActiveReports 8 Server. By default, this sample is in the following folder.
C:\ActiveReports 8 Server\SDK\ActiveTunes.SecurityProvider
To deploy the custom security provider for debugging
Important: If you need to update the DLL at any point, you must first change this value back to Default (builtin). You can change it back after you finish updating the DLL. |
Connection string |
Copy Code
|
---|---|
Data Source=C:\ActiveReports 8 Server\SDK\ActiveTunes.SecurityProvider\ActiveTunes.sqlite |
To debug the custom security provider
In order to perform the following steps, you must run Visual Studio as Administrator.
Caution: There may be multiple w3wp.exe processes, so be sure to attach the one on the server machine running the ActiveReports services. |
Login | Password |
---|---|
andrew@chinookcorp.com | 1 |
nancy@chinookcorp.com | 2 |
jane@chinookcorp.com | 3 |
margaret@chinookcorp.com | 4 |
steve@chinookcorp.com | 5 |
michael@chinookcorp.com | 6 |
robert@chinookcorp.com | 7 |
laura@chinookcorp.com | 8 |
To debug your custom security provider with Visual Studio on the server
Here is another way to debug your security provider if you have Visual Studio installed on the server and have direct access to the server machine.
Caution: Ensure that you remove this code before you go live with your deployment. |
C# code. Paste inside the method to debug. |
Copy Code
|
---|---|
System.Diagnostics.Debugger.Break(); |
Important: If you need to update the DLL at any point, you must first change this value back to Default (builtin). You can change it back after you finish updating the DLL. |