Category Archives: ASP .Net

.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… Read More »

Bitmap.Save() Invalid Parameter Used

In my previous post of 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… Read More » A generic error occurred in GDI+

Try the following code Dim oBitmap As Bitmap oBitmap = New Bitmap("c:\\example.jpg") Dim oGraphic As Graphics oGraphic = Graphics.FromImage(oBitmap) Dim oBrush As New SolidBrush(Color.Black) Dim ofont As New Font("Arial", 8 ) oGraphic.DrawString("Some text to write", ofont, oBrush, 10, 10) oBitmap.Save("c:\\example.jpg",ImageFormat.Jpeg) oBitmap.Dispose() oGraphic.Dispose() You will get the above mentioned error:A generic error occurred in GDI+. This… Read More »

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\\framework\v1.1.4322\Config\machine.config Line: 198 Assembly Load Trace:… Read More »

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… Read More »