AspNet4YouTop 10sDevelopers WorldForums
ASPNet Books
ASPNet Sites
ASPNet Hosters
View Articles
Search Articles
View Forums
Quick Menus
AspNet4You Forums
Articles Summary
AspNet Books
AspNet Sites
AspNet Hosters
 Top 10 ASP.NET Books 
Professional ASP.NET 1.1
Essential ASP.NET With Examples in C#
ASP.NET Unleashed
Programming Data Driven Web Applications with ASP.NET
Professional ASP.NET Web Services
Beginning ASP.NET 1.1 with Visual C# .NET 2003
Programming Microsoft ASP.NET
Beginning ASP.NET Databases Using VB.NET
ASP.NET Security
Developing Microsoft ASP.NET Server Controls and Components
 Top 10 ASP.NET Hosters 
ISQSolutions, LLC
Active ISP
Aquest Hosting
 Top 10 ASP.NET Sites 
.NET 247
Search Articles
Category:   Search Type:   Match Type:  
This site is hosted by with great satisfaction
Page Size:   Go to Page:  of  10       Next>
Encrypting Web.config and App.config
Author:  Feng, Aaron   Posted:8/25/2008 7:01:00 PM

Recently I got a chance to play around with the Data Protection Application Programming Interface (DPAPI).  With .NET 2.0 installed, you can encrypt your Web.config just by using aspnet_regiis.exe on the command line.

aspnet_regiis.exe -pe "connectionStrings" -app “/YourWebSite” –prov "DataProtectionConfigurationProvider"

You can read the ConnectionStrings section back using ConfigurationManager as if the file is not encrypted.  That is all you have to do, the encryption is transparent to your application.

This encryption works great for Web.config, however, it does not work if you want to encrypt the App.config for non web based applications.  The aspnet_regiis is hardcoded to look for Web.config.

One can programatically encrypt just as easily:

How Many Threads Do You Need?
Author:  Egger, Markus   Posted:6/28/2008 3:35:57 PM

How Many Threads Do You Need?

AspNet4You Author's Comment-- Very interesting article. If you are a lead developer or an application designer, you must read this article. Don't forget to read section- "Multi-Processor Systems".

Multithreading is important. But is it important for you and your applications? Often when I discuss this issue with fellow developers, the answer seems to be driven more by their background and less by their need. Developers with a C or C++ background, for instance, seem more likely to use threading extensively, while developers who come from languages such as Visual Basic 6 or Visual FoxPro tend to dismiss threading as a technique that their business applications dont need.

So how much threading do you really need? The answer might surprise you, but before we can get to the bottom of the issue, let me tell you what multithreading is, how it works, and when it is beneficial (both in todays world as well as in tomorrows scenarios).

Encrypting Connection Strings in web.config file (v2.0)
Author:  Bean, Richard   Posted:6/7/2007 10:02:47 PM

ASP.NET stores all the configuration information in plain text files called web.config and machine.config files. We store all vital information including database connection strings, user names, passwords for the databases. Thus you end up storing all sensitive information in vulnerable plain text files which is nothing but security compromise.

Taking a clue, Microsoft has provided the capability to encrypt sensitive information in configuration files including connection strings in ASP.NET 2.0. With this new capability you can easily encrypt sections of configuration files which makes your application secure.
Deploying Crystal Reports .NET
Author:  Dudley, Richard   Posted:3/6/2007 9:39:40 PM

There's a lot of setup and installation of modules that needs to be done before Crystal Reports .NET will work. These are done for you on your dev machine when you install VS.NET. You have to create an MSI file to do this on a production machine. This resource will help you deploy your CR.NET app.
Crystal Reports and Visual Studio .NET - Application Deployment
Creating Dynamic DataSets for Crystal Reports in ASP.NET 2.0
Author:  Bradley, Chuck   Posted:3/6/2007 9:31:31 PM

This article describes how to use the CrystalReportsViewer and Crystal Report Template components within VS 2005 and how to populate a report from a dynamically generated DataSet at runtime without login errors. This is typically known as the "push" method.
Terms and Conditions