Contents tagged with ASP.NET Tip
-
ASP.NET Tips: Careful Use of Static's
Not sure how many people realize it, but when you start dealing with multiple users access a system (in this case a web server), you have to be very careful what you store in static's (global variables). This is because all the users will have access to this data and so if you create a page, you could allow them to see data that they shouldn't.
-
Improving Time-Critical Code written in C
Writing web pages is very similar to writing any other type of code. You have to understand how it is going to be used and where you need to really make things run as quickly as possible.
-
ASP.NET Tip: Keep hidden files hidden
I have seen a few cases of this so I wanted to let everyone know. If you install the FrontPage Server Extensions (FPSE) on a web server, it will install some configuration files in a directory under your web site called _vti_cnf. This folder contains a bunch of files that FPSE use to update files and perform the various tasks that it needs to do.
-
ASP.NET Tip: ASP.NET MSDN Site
Have you checked out the MSDN site for ASP.NET lately? It is full of useful information. You can find it at the ASP.NET Developer Center. My favorite things to check out are the “How Do I” videos. They can be really helpful and can get you started on a specific topic. Check them out, “How Do I” videos – ASP.NET.
-
ASP.NET Tips: Loading a DLL out of the bin directory
A customer has created a web project which references a class library project. When deployed to the local machine the web/classes all work fine. When deployed to a ‘shared’ IIS site, the class DLLs exist in the /bin folder, but the web page generates an error:
-
ASP.NET and Performance
I wanted to talk about monitoring performance in ASP.NET for a bit. I have already posted a few postings that talk around this issue, namely:
-
ASP.NET Tips: What to gather to troubleshoot
So now that I am done with all the individual posts, I thought I would wrap them all together. So here are all of the posts that I created on gathering information when you are having a problem.
-
ASP.NET Tips: What to gather to troubleshoot - part 6 - Recycle due to memoryLimit
Here is another situation that you may come across and what to do in order to gather information about it.
-
ASP.NET Tips: What to gather to troubleshoot - part 5 - OutOfMemoryException
So we already talked about what to gather when you are experiencing high memory. But what if you are actually getting a System.OutOfMemoryException? Here is how you capture a dump at the time you are running out of memory.
-
ASP.NET Tips: What to gather to troubleshoot - part 4 - Deadlocks
There are two ways to gather data in a Deadlock situation. If you are using Windows 2003 or later (IIS 6.0 or later), then follow the steps in the KB 828222