.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> DataBase >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Debugging custom assemblies in Report server project

Posted By:Deco       Posted Date: October 26, 2010    Points: 50    Category: DataBase    URL: http://www.dotnetspark.com  

This article will give you step by step guide in debugging the custom assembly.
 

The recommended way to design, develop, and test custom assemblies is to create a solution that contains both your test reports and your custom assembly. This is the way

Step 1.

   In the Solution Explorer Right click on the Solution and Select

Configuration Manager.

Step 2.

   Select DebugLocal as the Active Solution Configuration

Step 3.

   Make sure that the report project in your solution is set to DebugLocal

and that deploy is unchecked.

Step 4.

   Right click on the project containing your reports

Step 5.

   Set the Report project as the startup project.

Step 6.

   Right click again and select Project Dependencies.

Step 7.

   In the Project Dependencies dialog select the project you want to add as the

dependent project.

Step 8.

   Click OK to save the changes, and close the Property Pages dialog.

Step 9.

   Right click again and select Project Properties.

Step 10.

   Select StartItem and set it to the report you want to debug.

Step 11.

   In Solution Explorer, select the Employee custom assembly project.

Step 12.

   Right click and select Properties.

Step 13.

   Expand Configuration Properties, and click Build.

Step 14.

   On the Build page, enter the path to the Report Designer folder (by

default, C:\Program Files\Microsoft SQL Server\80\Tools\Report

Designer) in the Output Path text box.

Step 15.

   Now set breakpoints in your custom assembly code.

Step 16.

   Make sure to set the Report as the startup project and then press F5 to

start the solution in debug mode. When the report uses the custom code

in our expression, the debugger will stop at any breakpoints that you

have set when they are executed. Now you can use the all the powerful

debugging features of Visual Studio.NET to debug your code.

 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend