Tuesday, April 12, 2011

RadBinaryImage MapPageRoute not working

Under ASP.NET 4.0, when using System.Web.Routing (URL Routing) with telerik controls I received broken images.

void RegisterRoutes(System.Web.Routing.RouteCollection routes)
{
//make sure this is first
routes.Add(new System.Web.Routing.Route("{resource}.axd/{*pathInfo}", new System.Web.Routing.StopRoutingHandler()));

//...other routes here
}


found the answer here:

Deploying ASP.NET 4 Web Forms Application Using Routing on IIS 6

In IIS 6, opened the properties dialog of the virtual directory, went to the "Directory" tab, click the "Configuration" button, and added a Wildcard application map to the aspnet_isapi.dll (c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll) and unchecked the "Verify that file exists" checkbox. This made it work.

Thursday, December 3, 2009

SQL Server Reporting Services

I had a chart that needed to show negative values. I changed the Y-axis Scale minimum to 'auto' and it worked.

Tuesday, March 31, 2009

Wednesday, March 4, 2009

Activate Reporting Services 2000 on Windows 2000

I installed SQL Server Reporting Services on Windows 2000. At the end it said I had to manually activate Reporting Services.

This is what I did:

C:\WINNT\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis.exe –i

Then this….

C:\WINNT\Microsoft.NET\Framework\v1.1.4322>rsactivate -c"C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\RSReportServer.config"

------------

If you had to restore a database that crashed, you'll need to restore the RSReportServer.config and then do a -r like this:

C:\WINNT\Microsoft.NET\Framework\v1.1.4322>rsactivate -c"C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\RSReportServer.config" -r

Found the answer here:
http://sqlforums.windowsitpro.com/web/forum/messageview.aspx?catid=92&threadid=27885&enterthread=y

Thursday, November 13, 2008

C# find last months date range

DateTime firstDay = new DateTime(DateTime.Now.AddMonths(-1).Year, DateTime.Now.AddMonths(-1).Month, 1);

int DaysinMonth = DateTime.DaysInMonth(DateTime.Now.AddMonths(-1).Year, DateTime.Now.AddMonths(-1).Month);

DateTime lastDay = firstDay.AddMonths(1).AddTicks(-1);

used code found here:
http://anuraj.wordpress.com/2007/12/03/last-day-and-first-day-of-the-month-using-c/