ASP.NET Articles

ASP.NET: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. on Win2k8 64bit, IIS7, Oracle

This issue started to appear when I migrated my .NET web service to Windows 2008 64-bit using IIS7. System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B). The solution to our issue was pretty simple and this is how I did it.

0 Comments   Posted by retroman80s on Feb 19, 2010   1430 Views  


ASP.NET: ERROR: The name 'Request' does not exist in the current context

This article shows you have to resolve the following error: The name 'Request' does not exist in the current context

0 Comments   Posted by retroman80s on May 29, 2009   1735 Views  


ASP.NET: Error: ora-12154: TNS:could not resolve service name

If your getting the following error in ASP.NET Crystal Report or Tnsping ora-12154: TNS:could not resolve service name Here's a possible solution.

0 Comments   Posted by LazyAssCoder on Nov 26, 2008   2152 Views  


ASP.NET: Error: System.Security.Cryptography.CryptographicException: Keyset does not exist or Access is denied.

This article provides a possible solution to fix the following exception: System.Security.Cryptography.CryptographicException - Keyset does not exist or Access is denied.

1 Comments   Posted by LazyAssCoder on Nov 11, 2008   4569 Views  


ASP.NET: Shortcut: No more hard coding the physical path to your access database in the ConnectionString section of your web.config

If your database is located in the App_Data folder of your web application. Here is a neat little shortcut for your Access Database ConnectionString.

0 Comments   Posted by LazyAssCoder on Jun 16, 2008   579 Views  


ASP.NET: How To: Manually initialize a custom membership provider

In this article, we will describe how to manually initialize a custom membership provider.

0 Comments   Posted by LazyAssCoder on May 08, 2008   1762 Views  


ASP.NET: How To: Check a null value in a column of a DataTable in a DataSet

This article will show some ways of checking for null values in a DataTable.

0 Comments   Posted by LazyAssCoder on Feb 06, 2008   693 Views  


ASP.NET: How To: Create and populate a DataTable manually

This article will demonstrate how to create a DataTable manually and populate it with some random data.

0 Comments   Posted by LazyAssCoder on Jan 29, 2008   1692 Views  


ASP.NET: How To: Easily take your ASP.NET 2.0 web application offline for maintenance updates

This article describe how to easily take your ASP.NET 2.0 web application offline.

0 Comments   Posted by LazyAssCoder on Dec 06, 2007   318 Views  


ASP.NET: How To: Separate your connectionStrings and appSettings configuration settings into external configuration files

In this article, we will describe how to separate your connection strings and appSettings into external files from your web.config or app.config.

0 Comments   Posted by LazyAssCoder on Dec 04, 2007   324 Views  


ASP.NET: How To: Overcome the 32k limitation of the event log

This article will show you one way of overcoming the 32k character limitation of the event log. The sample code in this article can also be easily retrofitted to used the enterprise library.

0 Comments   Posted by LazyAssCoder on Nov 26, 2007   226 Views  


ASP.NET: How To: Configure the Enterprise Library 3.1 Logging Application Block to log the local server time

The Enterprise Library Logging Application Block by default will log the timestamp in UTC time. In the Enterprise Library ver 3.0 and earlier, if you wanted it log the local server time, you can override the FormatToken method and implement you you custom logic. If you use the Enterprise Library 3.1, this is a very easy change which we will describe in this article.

0 Comments   Posted by LazyAssCoder on Nov 21, 2007   2936 Views  


ASP.NET: How To: Configure Simple Mail Transport Protocol (SMTP) settings in web.config

Does your ASP.NET 2.0 application sends email, here is a shortcut to configure the SMTP settings in the web.config.

0 Comments   Posted by LazyAssCoder on Nov 19, 2007   165 Views  


ASP.NET: How To: Remove all HTML tags from a string using regular expressions

This article will show you how to remove all HTML tags from a string using regular expressions.

0 Comments   Posted by LazyAssCoder on Nov 15, 2007   261 Views  


ASP.NET: How To: Add a row count column to a GridView, DataList or Repeater

This article will show you how to add a row count column to a GridView. This technique can also be applied to a DataList or a Repeater.

2 Comments   Posted by LazyAssCoder on Sep 07, 2007   2777 Views  


ASP.NET: Error: Nullable type fields not showing up in GridView

When you have a collection of objects with nullable datatype members, they don't get rendered when binding to a GridView automatically.

0 Comments   Posted by LazyAssCoder on Aug 20, 2007   188 Views  


ASP.NET: Client application does not recieve any soap exceptions when the web service property named "OneWay" is set to true

This article is about the OneWay property effects on a web service method

0 Comments   Posted by LazyAssCoder on Aug 13, 2007   110 Views  


ASP.NET: How To: Implement Microsoft Enterprise Library 3.x Logging

This article will show you how to write to the eventlog using Microsoft Enterprise Library 3.x Logging block.

0 Comments   Posted by LazyAssCoder on Aug 03, 2007   735 Views  


ASP.NET: How To: Maintain the position of the scrollbar on postbacks

Don't you hate when you PostBack on a long form you have to scroll back to the location where you were previously? In this article, it will show you how to maintain the scroll position on a PostBack.

0 Comments   Posted by LazyAssCoder on Aug 01, 2007   138 Views  


ASP.NET: How To: Execute an Oracle Stored Procedure in an Oracle Package and retrieve a ref cursor's results into a DataSet

This article shows you how to execute an Oracle stored procedure in an Oracle Package using the Oracle .NET data provider shipped with the .NET Framework. It will also show you how to retrieve an output ref cursor's results and load it into a DataSet.

0 Comments   Posted by LazyAssCoder on Jul 26, 2007   154 Views  


<< Previous 1 2 3 Next >>