Friday, December 18, 2009

Debug a dump of an ASP.NET Web Site - Visual Studio 2010

I have seen video from Scott Hanselmanon Channel 9, about debugging feature in Visual Studio 2010,


Presented technique can be very helpful for solving problems with ASP.NET on the productive web server


http://channel9.msdn.com/posts/Glucose/Hanselminutes-on-9-Debugging-Crash-Dumps-with-Tess-Ferrandez-and-VS2010/

Thursday, December 10, 2009

I just bought Resharper 4.5

I used trial of Resharper 4.5 for Visual Studio 2008.
Now it is my must have tool for .NET development. I just bought a profesional licence for this product including update to the Resharper 5.0 :)

Why do I like this tool so much?

Because it helps keep my code clean and support code refactoring much better the Visual Studio.

I hope new version for Visual Studio 2010 will be even better.

Tuesday, December 1, 2009

Generate PDF from Reporting Services - cache problem

I develop reports with Reporting Services server and WCF as data sources
Reports are generated in PDF format.

I could not see changes in my reports after updating data.
I found the solution on Peter's Gekko blog.

I added  following  to my report url:

&rs:ClearSession=true

Here is my code:

var reportUrl = ConfigurationManager.AppSettings["ReportURL"];


var reportParameters = @"&rs:Command=Render&rc:toolbar=false&rs:Format=PDf&rc:OmitFormulas=true&rs:ClearSession=true&id=";


System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(string.Concat(reportUrl, reportParameters, myId)), "_blank");