Friday, December 29, 2006

Recently I have been reading some really great tutorials on the Validation Application Block by David Hayden on his blog. For those that do not already know David Hayden is one of the few great bloggers out there that actually create well crafted blog posts that actually help us out. He certainly makes me look bad that is for sure, I have to work much harder to get to his level. Perhaps that is osmething I can work on next year? Perhaps, my friends.

This is what he has written about so far.

Validation Application Block in Enterprise Library 3.0 - Using Validation Facade Class - Part I

Validation Application Block in Enterprise Library 3.0 - ValidationFactory Class - Part II

Validation Application Block Ruleset in Enterprise Library 3.0 - Enterprise Library 3.0 Tutorials - Part III

Validation Application Block - Rules in External XML Configuration File - App.Config Web.Config - Enterprise Library 3.0 - Part IV

Validation Application Block - Business Layer and Data Access Layer Integration - Part V

If it were not for David Hayden's efforts I am sure many would be blind as to how to proceed in utilizing this tool that Microsoft has provided. Good work as always David!

12/29/2006 12:26 PM Eastern Standard Time  #    Disclaimer  |   | 
 Thursday, October 19, 2006

Well I guess many of have heard already that Internet Explorer version 7 is soon to be available as a priority download to all Windows XP users. Is this a good thing or a bad thing? Personally I believe that this is a very good thing as Internet Explorer 7 is supposed to drastically increase the level of secrurity and usability for all. Also the level of compliance to standards is known to be improved on this release IE7 and the level of CSS compliance is quite similiar to the ever so popular Firefox and Mozilla browsers.

One of the best new features of this browser is the integrated RSS capabilities of this browser. Now I am a huge fan of the RSS Bandit aggregator but I would like to try something new. Also the tabs feature is quite nice, especially if you have been used to using Firefox as the functionality is quite similiar.

I believe that this browser will help improve Microsoft's reputation by delievering a high quality, high secure application. Now go update your computer with this new version. I think you may be very pleased.

10/19/2006 12:44 PM Eastern Daylight Time  #    Disclaimer  |   | 
 Monday, August 14, 2006

Just as a friendly reminder to all those here in Sarasota that we have an upcoming Sarasotadev meeting sponsored by INETA. I recently received a reminder from Stan Schultes reminding the group that Tim Huckaby is coming to give a presentation on Architecting and Building Workflow Solutions and Smart Client Development. It should be an interesting event.

The details I received were the following:

August 2006 SarasotaDev meeting:
Architecting and Building Workflow Solutions and Smart Client Development
 - by Tim Huckaby

This meeting will be on Thursday, August 17, 2006 at 6pm. Location: Sarasota Community Foundation, located at 2635 Fruitville Rd., Sarasota, FL 34237 (just west of Tuttle on the north side of Fruitville).

This two hour session will overview Windows Workflow Foundation (WF), and then Tim shows off his bag of tricks for developing smart client apps. This is a must-see session - Tim is immensely entertaining and knows his stuff like no other...

Architecting and Building Workflow Solutions with InfoPath, WF and SPS V3
In this session you will learn how to build custom workflow solutions with Visual Studio 2005.  You’ll learn how to integrate those workflows into SharePoint, and how to interact with workflows using InfoPath.  This session focuses on the power and developer productivity of workflow solutions built on WF.  WF is a powerful technology and this session will delve into the tips and tricks, positives and negatives when designing and building workflow solutions with WF.

Windows Workflow Foundation (WF), a platform component and part of the Windows plumbing included with the WinFx runtime, has an extensible programming model and runtime components to make powerful workflow solutions.  Couple WF with the latest version of SharePoint Portal Server (v3.0) Infrastructure and InfoPath Forms backed by managed code and you have quite a powerful set of tools, plumbing and infrastructure to build powerful and scalable workflow solutions with ease. 

This combination of technologies addresses one of the biggest challenges that .NET solution developers face today – workflow.

Smart Client Development

In the second hour, Tim will highlight smart client development by showing a bunch of demos from his developer bag of tricks.

Tim Huckaby is a Microsoft Regional Director and well-known international speaker.


On Tuesday, September 12, 2006 we've got a visit lined up by Microsoft's David McNamee of Tampa, who will talk about the upcoming Microsoft Office 2007 Server System (MOSS).


On Wed, October 11, 2006, we've got another superstar lined up in Miguel Castro, an author, speaker, and independent consultant in the NY/NJ metro area who specializes in building web server controls and .NET applications.

 

 

8/14/2006 10:27 AM Eastern Daylight Time  #    Disclaimer  |   | 
 Thursday, July 13, 2006

Perhaps you may have noticed that none of my posts actually ever contain any code. The reason is simple I have never found a nice way of posting code on my blog without it looking like crap. However I believe there may be a solution to my problem. You see there is this guy named Noah Coad who developed a way for all of us to create well formated code in our blog posts.

Basically what Noah did was create a Word Macro that will automatically format code pasted into the clipboard that you then want to place into Word and then from Word you place into whatever blog engine you desire. Now I have to admit I have not actually tried these macros out but I can assure you that his code on his blog looks pretty darn good to me so I am willing to try it.

Find out more details on how Noah Coad places well formated code on his blog by going here.

http://blogs.msdn.com/noahc/archive/2006/07/06/658458.aspx

Later on I will attempt to have more in depth postings using this template. Hope this helps someone out there.

7/13/2006 12:21 PM Eastern Daylight Time  #    Disclaimer  |   | 

I recently came across Matt Hester's blog. Turns out he has some really great performance tips for improving Virtual PC. Some of these tips I would have never thought of had he not blogged about it.

The tips come in a three part series with the first part here.

http://blogs.technet.com/matthewms/archive/2005/09/09/410546.aspx

The second part of the three part series is here.

http://blogs.technet.com/matthewms/archive/2005/09/23/411478.aspx

The third part of the three part series is here.

http://blogs.technet.com/matthewms/archive/2005/10/07/412159.aspx

With those blog posts you should have Virtual PC running quite smoothly and fully optimized so as to not hang during a crucial presentation or developing the next big thing. Hope this helps.

7/13/2006 10:37 AM Eastern Daylight Time  #    Disclaimer  |   | 
 Wednesday, July 12, 2006

I am sure many of you who read my blog are already aware of Microsoft releasing Virtual PC for free today. This is great news as it will allow me to beta test products I have been very wary to do so because I did not to ruin my production machine. However, I have also found out that VMWare has also released their VMWare Server for free today as well. This is beginning to look a lot like the browser wars of the mid 90's.

You can download the Microsoft Virtual PC here.

http://www.microsoft.com/downloads/details.aspx?FamilyId=6D58729D-DFA8-40BF-AFAF-20BCB7F01CD1&displaylang=en

You can find out more information about the VMWare Server release here.

http://www.vmware.com/news/releases/server.html

You can download VMWare server here.

http://www.vmware.com/products/server/

What does this mean to you and me? A whole lot as the cost of hardware is relatively cheap and now you can fully use all your resources of each server. I know of several very large companies that run their production web servers on VMWare servers, I am not going to tell you who as that could be a potential security breach for them. However though this does tell you the robustness of these products.

 

 

7/12/2006 7:47 PM Eastern Daylight Time  #    Disclaimer  |   | 
 Sunday, June 11, 2006

Have you ever wondered how to integrate the LLBGenPro with ASP.Net 2.0? Do you need an easy to use walkthrough that demonstrates how to do just that? Well you are now in luck as Frank Bouma, the inventor of LLBGen Pro, has done exactly that.

You can find details here.

Now what would be cool is the Atlas functionality can be integrated into these examples so as to really demonstrate a powerful web application example. Just a thought. I am sure someone is working on such a thing right now.

6/11/2006 4:15 PM Eastern Daylight Time  #    Disclaimer  |   | 

Even though the Atlas toolkit is still in CTP, that is beta for the rest of us, there is a Automation Test Harness released to make testing your web applications just that much easier.

You can download the Atlas Toolkit here.

You can out how to test the toolkit thorugh Shawn Burke's Blog here.

And finally you can visit the Codeplex Atlas Control Toolkit page here.

I am really looking forward to the enhanced functionality provided by the atlas framework. Personally I have always felt that web applications have been lacking. This framework solves the problem.

6/11/2006 4:09 PM Eastern Daylight Time  #    Disclaimer  |   | 
 Friday, May 05, 2006

I have recently became a fairly avid user of the CSLA.Net framework by Rocky Lhotka. I find that the framework fills in some of the gaps that I need when I am developing applications. Since I am somewhat new to this framework I am just happy as all get out that there is a new forum where I can ask questions regarding this piece of code.

The forum can be reached here:

http://forums.lhotka.net/

It is powered by Community Server which is also something I am a bit of a fan of as I hope to eventually start a community based programming site with it when I get the time.

So if you have any questions regarding this particular framework and how it may be able to help you or at least clarify some issues that was not covered in the books then this is the place for you.

Just a short note right now I guess.

5/5/2006 2:50 PM Eastern Daylight Time  #    Disclaimer  |   | 
 Thursday, April 13, 2006

I recently subscribed to Scott Guthries blog. I am really glad I did! You see it was Scott that informed me of the article on how to integrate credit card processing into a ASP.Net application. You can read the article here.

http://www.west-wind.com/presentations/aspnetecommerce/aspnetecommerce.asp

Also today was another good day in that Scott informed his readers that the ASP.Net Provider model source code is open to the public.  This is great news on those that want to see the inner workings of the new way ASP.Net 2.0 handles things like Membership, Roles and Sitemap among many others. You can find the blog post on this subject here.

http://weblogs.asp.net/scottgu/archive/2006/04/13/442772.aspx

If you have not subscribed to this blog and are only slightly interested in ASP.Net or .Net Programming then you should do so pretty soon. The informaton that Scott conveys in his blog is a lifesaver.

.Net | ADO.Net | ASP.Net | Reviews | Software
4/13/2006 7:43 PM Eastern Daylight Time  #    Disclaimer  |   | 

Also from Stan Schultes is a note that Russ Fustino our local Developer Community Champion is going to present. Be sure to attend this one as our low attendence in the past has forced Microsoft to cancel regular meetings in this area. We need to show them that there is a market here for these MSDN presentations. The details is as follows:

Coming on May 9: Russ Fustino, our Microsoft Developer Community Champion, returns with an MSDN session in his famous Russ' Tool Shed series. Please make an effort to attend this (and the morning TechNet session). If our attendance is high, they come back. If they don't get enough audience, well, you know what happens :)

The MSDN session (for developers) from 1-5pm (event code: 1032291809) has the following topics:

  • Create customizable user interfaces with web parts and ASP.NET 2.0
  • Language enhancements in .NET Framework 2.0
  • Exploring Enterprise Library for .NET Framework 2.0

The TechNet session (for IT pros) from 8am-noon (event code: 1032291919) has the following topics:

  • Implementing security for wireless networks
  • Responding to computer attacks
  • What's next for Microsoft security?

Since both subjects should be of an interest to a developer you could make a whole day out of this!

4/13/2006 2:53 PM Eastern Daylight Time  #    Disclaimer  |   | 

I got a note from Stan Schultes that our next Sarasotadev meeting will be April 17th, 2006. The meeting details is as follows:

Note the choice of next Monday for our April meeting - it's a bit unusual for us (although we don't have a set day of the month for our regular meetings). Turns out this is the only day the facility is available at no cost to us in the middle two weeks of April (thanks to the Sarasota Community Foundation, and Van & Jody Vangor!).

April 2006 SarasotaDev meeting:

Hands-on sessions - by our own Dave Hayden. Dave's a top-notch, hands-on kind of guy, so these are very practical talks. I've seen both - and they really kick:

  • SQL 2005 - native web services, SQL SMO, CLR integration, new XML datatype
  • Enterprise Library 2.0 - Applying the Data and Logging Application Blocks

This meeting will be on Mon, Apr 17, 2006 at 6pm. Location: Sarasota Community Foundation, located at 2635 Fruitville Rd., Sarasota, FL 34237 (just west of Tuttle on the north side of Fruitville).

In the SQL 2005 session:

  • Learn how to expose and consume your stored procedures as XML web services without using IIS.
  • Understand the basics of creating and deploying CLR database objects, like stored procedures, user defined functions, and triggers.
  • Use SQL Server Management Objects with C# to create database objects, script objects, and transfer database schema and data.
  • Leverage schemas and XQuery with the new XML Datatype for validating and querying XML.

In the Enterprise Library session:
Leverage the application blocks in Enterprise Library 2.0 to more quickly create patterns-based, extensible applications in a consistent manner. Learn about the most popular application blocks (Data Access and Logging) in Enterprise Library 2.0 and how to use them in your applications.

Dave is a Sarasota-based consultant and a Microsoft MVP in C#. Find his excellent tech blog here:  http://davidhayden.com/blog/dave.

Seems like it is going to be a fairly good meeting. Be sure to attend if you have the time.

4/13/2006 2:49 PM Eastern Daylight Time  #    Disclaimer  |   | 
 Tuesday, April 11, 2006

I just got a note from Scott Spradlin of INETA who informed me of some really great webcasts that INETA is holding in cooperation with Microsoft. This is a really great way to learn about the products from those that actually made them.

 

Some of the sessions are as follows:

  • April 12, Crossbow - Building WPF and Windows Forms hybrid applications
  • April 20, Essential Tips and Tricks for .NET Compact Framework Application Developers
  • April 26, Improving your web application's user experience with Atlas
  • May 4, IIS 7.0 as a development platform
  • May 11, Using Cider to build WPF applications
  • May 17, Using ASP.NET 2.0 and SharePoint together
  • May 23, An Introduction to WinFX AddIns

You can register for these sessions at live.ineta.org. Hope you found this brief note useful.

4/11/2006 11:46 AM Eastern Daylight Time  #    Disclaimer  |   | 
 Wednesday, March 22, 2006

Just a quick note that since Rocky Lhotka has sent his book off to publishing you can now get the source code for the next version of CSLA.Net 2.0 from his website. This is good news for all those using .Net 2.0. I have not yet had the chance to download and inspect it yet, because I am writing this blog post instead! <G>

You can find the code here.

When the book comes available I am sure there will be a much better explaination of how and why we should use this code framework. Enjoy!

3/22/2006 5:42 PM Eastern Daylight Time  #    Disclaimer  |   | 
 Tuesday, March 21, 2006

I have some free DotNetNuke skins for all to download and use if they wish. I have a total of four skins with different color layouts. You are free to modify, alter or improve on these skins as much as you want. Furthermore there is no restriction as to how many computers you can run these skins on.

You can find them on my main personal website here. Enjoy! I will be back later with some more tutorials and other information as soon as I am done creating it. Thanks for reading!

3/21/2006 11:58 AM Eastern Daylight Time  #    Disclaimer  |   | 
 Wednesday, February 22, 2006

Recently I have come across some very good resources for those that want to learn the ins and outs of ASP.Net 2.0 but do not have the time to attend a class or learn it on their own. The ASP.Net team has a series of “How do I” tutorials that covers many topics with  more topics on the way.

 

The topics covered are:

Also, there is the ASP.Net webcast series of videos that aid in the transition from PHP, JSP and ColdFusion to ASP.Net 2.0 so if you are coming from a different language altogether this might be the way for you. This can be found here.

 

http://www.learn2asp.net/campaign.aspx

 

Now with those webcasts there is a bonus where you can obtain Visual Studio 2005 standard after watching just three webcasts. What a deal. Now you have no excuse not to learn ASP.Net 2.0.

2/22/2006 11:03 AM Eastern Standard Time  #    Disclaimer  |   | 
 Monday, February 20, 2006

So you have decided to take the plunge and take your business on the web. This most likely means you will need a reliable hosting service to host your e-Commerce website. What are the key factors that you should consider when considering various web hosting companies?

 

When considering a web hosting service you should consider at least three factors, how reliable the service actually is, how knowledgeable and prompt are their support staff and what is the actual cost of using this service. Let's break down each factor and really consider this situation in depth.

 

The reliability of the web hosting service is perhaps the most important to your business as a unreliable service can seriously hamper the reputation of your business. So how do you determine if a host is actually reliable? The first and perhaps the easiest way is to join a public newsgroup of web developers and simply ask them who they use to host their websites. For instance if  you should want to use a ASP/ASP.Net hosting service I would go to asp.net and simply ask who is the most reliable hosting service. Also, searching through these newsgroups will reveal quite a lot of information regarding how knowledgably and helpful the support staff is as well. Simply stay away from hosting providers that have a poor reputation as those service companies most likely are only concerned with separating your money from your wallet and not actually helping you grow your business.

 

How do you determine which service has the most knowledgeable and helpful staff? This one is again fairly easy to determine. If the staff of the company takes the time to answer questions on public newsgroups and is willing to share their time and knowledge to help out others then this is the company you should utilize. For instance I have noticed that on some public newsgroups or forums many of the questions being answered are from various web hosting services. This not only reinforces their reputation of being really knowledgeable and helpful but it allows the company to get some "free advertising" as well.

 

Lastly is the cost factor to consider. There are many low cost web hosting providers out there. All you  have to do is a search on Google and you will obtain potentially millions of hits on that key term. However, even low cost web hosting services can turn out to be

expensive when you consider the various add-ons that you may have to attach to your website to make it truly useful to you. So therefore when considering a web hosting service write down your exact requirements you need to make your website run. Also consider the amount of growth that you anticipate when using this website. A website that may work for you now may not work for you in the near future if your business should really take off and you have not factored that consideration into account. Also take into account any cost of upgrading your service should you outgrow it or you need to move to a high end hosting solution.

 

When considering a e-Commerce hosting service or any web hosting service these are the key factors to consider before making any purchase. While certainly not an exhaustive listing of everything you need to consider this should get you on the right path to narrow your choices down to at least three or four services.

2/20/2006 1:38 PM Eastern Standard Time  #    Disclaimer  |   | 
 Friday, February 17, 2006

Rapid Module Development for DotNetNuke

 

I came across this really great article by Mark Hoskins on the use of various code generation tools to rapidly build modules for the DotNetNuke platform. Mark does a really great job on explaining how he goes about using these tools to develop his modules in a much shorter time frame.

 

You can read it here.

 

http://dotnet.sys-con.com/read/180968.htm

 

 

2/17/2006 11:50 AM Eastern Standard Time  #    Disclaimer  |   | 
 Thursday, February 16, 2006

Publishing documents on the World Wide Web can seem daunting for the self proclaimed ludites out there. Let's face it HTML, XML, CSS, JavaScript to name just a few of the technologies that you would need to be familiar with in order to develop a truly professional looking website for yourself or your business. Fortunately there is a solution to the problem, it is called a content management system and it is an easier way for just about anyone willing to learn to publish to the Internet.

Some of these content management systems have stemmed from the need of publishing data to the web. CNet for example created one of their own in house content management systems which they later spun off into a separate company called Vignette. Since publishing to the web began to take off in 1995 the development of these systems has really begun to progress. However my focus will be only on open source versions of the web content management systems.

The first open source system that I want to mention is called DotNetNuke (http://www.dotnetnuke.com) which is a AsP.Net based system. By far one of the more popular open source projects out there today DotNetNuke has an avid following of hundreds of thousands of users. The benefits of using this system is the rapid updates to the platform and the intense support you will receive from it community. These are two very important factors when considering an open source system, the level of updates and the support you will receive from its creators or users of the platform. Further the innovations that are built into this system make it one powerful application by any measure. For instance the skinning mechanism is by far one of the easiest to modify and customize and the scheduling processor reduces some of the more mundane tasks of maintaining any website.

However DotNetNuke does not come without any drawbacks. Since this system was eveloped in ASP.Net this means that you will need at least Visual Studio 2003 Professional or greater in order to truly modify the source and customize the system as you see fit. This can be a serious drawback as the cost of this development platform can run into the hundreds of dollars.

The second open source system that I have some experience in using is called AXCMS.Net (http://www.axcms.net) which is again built upon the .Net platform. This system is as feature rich as other open source systems such as DotNetNuke. However, this system has some definite drawbacks. First is its somewhat difficult setup and deployment problems that can seriously hinder any project. Also, there does not seem to be as an avid user base as DotNetNuke. However the system is as "solid" as they get and you will definitely be rewarded by your efforts once you have the system fully setup and ready to use. Also since this system is really a neat way to get introduced to the development team any updates or customizations you may need will be for a fee from the creators of the system. This really hinders the community support of the system and makes adoption that much harder.

There are many other open source systems out there with some more being developed as I write this article. The main factors when adopting any open source content management systems you should consider are: how well is this system supported by the community and how often is this system updated by its core development team. Even an open source system can have some hidden cost that must be considered before adoption into any business or enterprise.

2/16/2006 5:45 PM Eastern Standard Time  #    Disclaimer  |   | 
 Tuesday, February 14, 2006

There is a great crash course of building ASP.Net custom Controls on MSDN. This is more or less a note of reference for myself and anyone who comes across this blog. Truly a great article and a must read!

Find it here:

http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/ASPNETContDev.asp

2/14/2006 7:49 PM Eastern Standard Time  #    Disclaimer  |   | 

Yahoo! has developed a Ajax library for developing interactive web page development. This is a very good thing as Yahoo! has been in the business for a very long time and obviously they know how to develop a stable web portal so this library should be fairly stable and ready for deployment in any size business.

You can find out more information here. Personally, I am not a great web developer since I really like to concentrate on Windows Forms applications instead. This should be a real help in my attempting to learn how to build the same functionality into webpages.

You can find out more information about this product here.

http://developer.yahoo.net/yui/

2/14/2006 7:37 PM Eastern Standard Time  #    Disclaimer  |   | 
 Monday, February 13, 2006

Today I attended a live webcast on DotNetNuke hosted by Stan Schultes and Russ Fustino and the topic of security in the DNN framework came up. I originally was going to post a article on the subject of how to encrypt a connection string in ASP.Net when I came across this resource guide. This lists a series of how to guides on the best practices for both .Net versions. If you have not already done so, you should check it out here.

It can be found here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/securityhowtosindex.asp

This should answer any question you may have regarding the following subjects:

  • Authentication and Authorization
  • Code Access Security
  • Code Review
  • Communication Security
  • Configuration
  • Cryptography
  • Deployment Review
  • Impersonation and Delegation
  • Input and Data Validation
  • Patching and Upgrading
  • SQL Server 2000
  • Threat Modeling
  • Web Services
  • Etc.

Hopes this helps someone out there who may stumble across my blog looking for information on these subjects. Eventually I hope to write an article about each of these particular areas when I have the time to do so.

 

2/13/2006 5:25 PM Eastern Standard Time  #    Disclaimer  |   | 
 Friday, January 06, 2006

For many developers out in the .Net community it was ASP.Net that initially drove them to switch from some other platform. This was most likely due to the much enhanced programming model that ASP.Net provided and the improvements in performance that were promised and delivered. However, although the ASP.Net platform is a highly robust and scalable system you should still be aware of a few tricks of the trade that may help you increase your performance on your web application.

 

During my years of working with .Net I have learned many things on how to properly deal with certain situations that arise. Hopefully, you will find this information useful.

 

Best Practice #1

It is usually a good idea to set the SmartNavigation property to true on most pages.

The reasoning:

This reduces or eliminates screen flickering during postbacks to the server. Furthermore the scroll position will be preserved.

 

Best Practice #2

Enable the ability for multiple postbacks when using AutoPostback controls by using a user interface device such as a button.

The reasoning:

If the user has disabled Javascript controls in their browser then there is no way for the user to submit the form unless you provide a button or other user interface device.

 

Best Practice #3

It is preferred to use the Server.HtmlEncode method when displaying data taken from the database to an HTML control or Web control.

The reasoning:

This makes sure that the special characters are displayed in the correct manner and prevents cross side scripting attacks.

 

Best Practice #4

It is always best to validate input on the client side by using a validator control. Also, make sure you also validate all data on the server side as well as unforeseen security vulnerabilities can put your server at risk.

The reasoning:

Validation of all data is a best practice in all situations. This ensures a consistent database and data integrity and the integrity of your website.


Best Practice #5

It is usually a best practice to make sure the client is still connected during a time consuming task. This can be accomplished using the Response.IsClientConnected method during a known time consuming task.

The reasoning:

This method allows you to check to see if the client is still connected to the server. If the client is no longer connected you can then use the Response.End method to end the session and free up resources.

 

Best Practices #6

It is usually a good practice to avoid the use of hidden fields in order to store data between page postbacks.

The reasoning:

There are few very good reasons for storing potentially sensitive information using hidden fields. These do not store data in an encrypted manner or can store any significant amounts of data.

 

Best Practice #7

It is usually a good practice to store data taken from either files or a database in the ASP.Net cache object if the data does not change much over a period of time and can be shared with multiple users on the webpage.

The reasoning:

By storing and caching the data taken from a file or database you increase the performance and scalability of your application.

 

Best Practice #8

It is a best practice to use a Global error handler in the Global.asax file of your application.

The reasoning:

This allows you to recover properly from unexpected exceptions in the current application. Also this may allow you to implement a common error recovery mechanism for your web application.

 

Best Practice #9

It is always best to never use the Off attribute when setting the <custom errors> attribute in the web.config file of your application when it resides on a production server viewable by the outside.

The reasoning:

Doing this will enable unauthorized visitors to view potentially sensitive information about your application thereby increasing the security risk that  your website can be attacked from outside visitors.


Best Practice #10

It is always best to set your application tracing in the web.config file rather than using the @Page directive on individual aspx pages.

The reasoning:

This allows you to enable application level tracing for the entire application rather than for each individual page of  your website.

1/6/2006 1:22 PM Eastern Standard Time  #    Disclaimer  |   |