March 2008 - Posts

ANSWER: POP QUIZ: What to do next? - part 1
So we didn't get much more on this one, so I'll go ahead and show how we find out what is going on here.  So the loader heap question was a very good thing to check.  With the sos.dll that comes with the debugger for 1.x versions, we have some Read More...
Posted 31 March 08 01:56 by Tom | 3 Comments   
Stack sizes in IIS - affects ASP.NET
The default stack size of IIS starting with Windows Server 2003 was changed.  Prior to 2003, it was set to 1 MB.  This is also true of the aspnet_wp.exe process that Windows 2000 uses. In 2003 and later, it is now set to 256 KB. This can cause Read More...
Posted 31 March 08 01:24 by Tom | 37 Comments   
Filed under ,
Jobs at Microsoft
Having the ability to work at this company has been amazing, there are so many opportunities to do different things here that you can really completely get a change of job while never leaving Microsoft.   Just looking at the different areas that Read More...
Posted 29 March 08 06:16 by Tom | 9 Comments   
Filed under
Blog chat on Wednesday about ASP.NET and Debugging
This coming Wednesday, April 2nd, Tess and I am going to be co-hosting a chat in our blogs.  For this first one, you will be able to ask any questions you may have around ASP.NET and Debugging.  We are going to be running the chat at 10:00 AM Read More...
Posted 28 March 08 10:57 by Tom | 2 Comments   
Filed under , ,
ASP.NET Tips: Finding the layout of functions and structs for pinvoke
So when you start working with .NET a lot, you will find out quickly that there are some things that you just can't do in .NET and you will need to drop back down to the Win32 API to do something.  When you need to do that, you pinvoke the function Read More...
ASP.NET Tips: Debugger command you may not know about - aspxpages
So there are a lot of useful commands in sos that you may not know about.  I am going to hit on some of the additional commands that are in the sos.dll that ships with the debugger package. Note: This extension only works with .NET 1.0 and .NET 1.1. Read More...
Posted 27 March 08 01:26 by Tom | 5 Comments   
Filed under , ,
POP QUIZ: What to do next? – part 1
So here is the situation.  I will lead you down the debugging path and get us to a certain place and then ask you guys to solve the rest of the problem.  As before, leave your suggestions as comments.  I will wait until noon tomorrow to Read More...
ASP.NET Tips: Working with large SQL tables
There are a number of ways to query for data that is stored in a SQL Database from ASP.NET.  Generally the best way is to use stored procedures.  They can be compiled to be faster, and they are also much safer as they protect you from SQL injection Read More...
Posted 26 March 08 10:10 by Tom | 9 Comments   
Filed under ,
Hangs and how to solve them - part 2 - Queuing
So in a previous post, we began discussing hangs, Hangs and how to solve them - part 1 - Deadlocks . So we will now move on to another common problem we see with ASP.NET... Request Queuing. How to tell Queuing is happening So the first step is to see Read More...
Posted 25 March 08 04:40 by Tom | 8 Comments   
Filed under ,
ASP.NET and SOS
I would like to hear from you!  I want to know what your thoughts are around the SOS.dll and using it to troubleshoot problems. Are there functions in the sos.dll that ships with the debugger, that only works with .NET 1.x, that you are missing for Read More...
Posted 25 March 08 10:06 by Tom | 18 Comments   
Filed under , ,
Are you a Windows Internal subject matter expert?
If you are, and have an interest in helping Microsoft on a special project that will last 5 to 8 days, check this out: Note: This is from: Wanted- Windows Internals subject matter experts Microsoft is looking for five Windows Internals subject matter Read More...
Posted 24 March 08 10:28 by Tom | 1 Comments   
Filed under ,
Looking at crashes that watson has stored
When a crash happens in Vista and Windows Server 2008, Windows will automatically write out a dump file for the crash. It stores this file, on the machine so that you can upload it to the Windows Error Reporting (WER) site to see if this is a known issue. Read More...
Posted 24 March 08 10:06 by Tom | 1 Comments   
Filed under , , ,
Recent IIS 7.0 updates
So there have been some new updates recently released for IIS 7.0. These updates add some additional functionality to IIS on Windows Server 2008. The biggest one is the addition of FTP: Microsoft FTP Publishing Service for IIS 7.0 Documentation can be Read More...
Posted 19 March 08 11:52 by Tom | 4 Comments   
Filed under ,
GDI+ (GdiPlus) and ASP.NET
So we occasionally see customers that are either using System.Drawing themselves in their ASP.NET application or are using controls (like charting controls) that use it. Under most circumstances, this works just fine.  But there are times where it Read More...
Posted 19 March 08 12:31 by Tom | 10 Comments   
Filed under , ,
DeepZoom and Silverlight in C#
One of the things I have seen the biggest buzz around lately is DeepZoom.  This is a really cool technology that gives users a whole different way to display images or show vast amounts of data. When you are looking to get started with this technology, Read More...
Posted 14 March 08 02:44 by Tom | 9 Comments   
Filed under , ,
Validation of viewstate MAC failed error
-- 3/17/2009 UPDATE -- If you are using .NET 2.0 or later, please upgrade to .NET 3.5 SP1 (.NET 2.0 SP2) as it has a fix in it that should resolve this issue.  If you update and still have the problem, please post here so we know. -- 3/17/2009 UPDATE Read More...
Posted 14 March 08 12:48 by Tom | 97 Comments   
Filed under , ,
Bringing down an ASP.NET Application for updates
One of the really useful, and not well-known features of ASP.NET 2.0 is that you can use a special file to take your application down and show users a friendly message while you update the site. This is talked about by ScottGu here . What this will allow Read More...
Posted 11 March 08 01:09 by Tom | 6 Comments   
Filed under , ,
Hangs and how to solve them - part 1 - Deadlocks
We have talked about high memory quite a bit so thought it would be a good idea to move onto hangs.  So first some background on what you may see: Slow performance Web pages timing out Event logs mentioning deadlocks Event logs mentioning not responding Read More...
Posted 11 March 08 10:54 by Tom | 10 Comments   
ApplicationHost Helper Service - what does it do?
Another new thing about IIS7 is this new service called the ApplicationHost Helper.  This serves two main purposes: Configuration history Application Pool Account Mappings Config History This is the service that will make backups of your ApplicationHost.config Read More...
Posted 07 March 08 05:57 by Tom | 2 Comments   
Filed under
ANSWER: POP QUIZ: What's wrong with this code - part 1
So here was the code we asked about: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; Read More...
POP QUIZ: What's wrong with this code - part 1
Here is another trivia question. Comment with your answer and I will post the comments Friday along with the answer. What is wrong with this code Using Forms Authentication, here is Login.aspx.cs (updated the code slightly, assume the AuthenticateRequest Read More...
Automatic Application Pool Isolation in IIS7 - why you'll want to use this
So IIS7, which comes with the new Windows Server 2008 which just RTM'd, has a bunch of new features that are going to make life a lot easier for the web developer and administrator. The one we will see today is called Automatic Application Pool Isolation.  Read More...
Posted 05 March 08 12:02 by Tom | 2 Comments   
Filed under

Search

This Blog

Syndication

Page view tracker