Category Archives: ASP .Net

RollingFileAppender bufferSize is not working? Here is an alternative

If you have used log4net for your logging need, you may have come across the bufferSize property of the appender which will allow you to buffer x number of log entries and then it will flush. It is good for logging performance. Now you want to use RollingFileAppender and bufferSize is not working at all […]


Extension less URLs for all Web form pages using 4 lines of code

If you have an existing asp .net Web form application and trying to use routing to convert existing URLs to extension less friendly URLs for SEO, you would find lots of samples with MVC, but none of them will give you a way to convert existing Web form pages into extension less URLs . If […]



.Net Application: How to use tokens

Have you come across an application or library which accepts the %token{format} input and based on token and format, the application calculates the value and uses it. You might wonder how easy it is to accept the token and format for your custom application? Here is the ready made code which helps your application define […]



Bitmap.Save() Invalid Parameter Used

In my previous post of Bitmap.save(): A generic error occurred in GDI+. I explained about the lock which the Bitmap object creates on the file. Now if by mistake we dispose the object before saving the image, there is no image to be saved and the error “Invalid Parameter Used” will be encountered. You can […]


Bitmap.Save(): A Generic Error Occurred in GDI+

If you are trying to modify Bitmap, you may encounter the following GDI error which is very generic and does not provide any details. Why this Generic GDI Error Occurred? When you initializing a Bitmap object from an image stored on hard disk, it creates a lock on the underlying image file. Due to the […]


ASP .Net Datagrid Itemcommand Event is not fired

Check it out for event handler. It is quite possible that if you cut and paste the datagrid from one place to another, it will loose all the event handlers which were previously defined.If you think that event handler is defined correctly, check out how the datasource is bound to the datagrid. Your code should […]


Parser Error Message: Access is denied: ‘Ajax’

Description: An error occurred during the processing of a configuration file required to service this request.Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Access is denied: ‘Ajax’. Source Error: Line 196:Line 197:Line 198: Line 199: Line 200: Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 198 Assembly Load Trace: The following […]


ASP .NET 1.x 2.0 application switcher

I recently installed Microsoft Visual Studio Express Edition. It also installed .NET framework 2.0 in my machine. When I wanted to switch to the different version, I used “ASP .NET” tab in the IIS MMC > Default Website > Properties. After few days suddenly the tab “ASP .NET” disappeared. Now there was no way I […]