Speaking of which...

Sample solutions from Internet development support

Posts
  • Speaking of which...

    Getting started with windbg - part I

    • 43 Comments
    Okay, I've previously written some random posts about how to set up windbg and how to troubleshoot OutOfMemoryExceptions . I thought I'd take a few steps back and review some of the basics in order to help you get started on using this fantastic tool...
  • Speaking of which...

    PowerShell - Editing permissions on a file or folder

    • 18 Comments
    I got the following question from a reader the other day: I've been trying to figure out how to change permissions on a folder in PowerShell. I've looked at the Get-Acl and Set-Acl, but I can only use them to copy the settings from a pre-existing object...
  • Speaking of which...

    How to install Windbg and get your first memory dump

    • 16 Comments
    Install Windbg Windbg is the tool for the ASP.NET support engineer. It is free and it's available at www.microsoft.com/whdc/devtools/debugging/default.mspx . The learning curve is steep to say the least, but if you're interested in finding out what...
  • Speaking of which...

    Common reasons why your application pool may unexpectedly recycle

    • 10 Comments
    If your application crashes, hangs and deadlocks it will cause/require the application pool to recycle in order to be resolved, but sometimes your application pool inexplicably recycles for no obvious reason. This is usually a configuration issue or due...
  • Speaking of which...

    PowerShell - Automatically organizing your mp3-collection

    • 6 Comments
    Is your mp3-collection perfectly sorted? I know mine wasn't. I thought I'd address that while creating a pretty good demo-script to show some basic filtering, script structures, etc. Since I also wanted the script to extract the metadata from every file...
  • Speaking of which...

    Getting started with windbg - part II

    • 12 Comments
    This is a continuation of my previous post with the imaginative name Getting started with windbg - part I . I'll be assuming that you've read it, so if you haven't I suggest you check it out first. We're still working with the same sample dump, so I'll...
  • Speaking of which...

    Using WinDbg - Hunting Exceptions

    • 9 Comments
    Prerequisites This post will require some basic knowledge of windbg and the sos extension. For this I recommend looking at the following posts: Getting started with WinDbg - Part I Getting started with WinDbg - Part II For more information on Exceptions...
  • Speaking of which...

    Using WinDbg - Advanced commands

    • 11 Comments
    Did you know you can build your own advanced commands using for each, if, etc? The complete list of control tokens are: .if .else .elseif .foreach .for .while .do .break .continue .catch .leave .printf .block Using these command tokes you can send quite...
  • Speaking of which...

    Did you know Windows 9 will be voice controlled only?

    • 26 Comments
    Yesterday an early Alpha of Windows 9 was released on the corporate network and I couldn’t resist installing it. I started up the installation, which went very smoothly by the way, filled in the necessary details, clicked “Finish" and left it running...
  • Speaking of which...

    Monitoring Application Pool and Application Restarts

    • 5 Comments
    This morning I found the following in my inbox: I had set my web servers running on IIS 6 to recycle if they hit 700 MB (Maximum used Memory). Can I run a report to know how many times per day or week the W3WP got recycled. Any suggestions please....
  • Speaking of which...

    Are you getting OutOfMemoryExceptions when uploading large files?

    • 38 Comments
    Using the WebClient.Upload method for posting large files will eventually leave you stranded with OutOfMemoryExceptions. This is because WebClient.Upload reads the entire file to memory by default. This is great for smaller files, but not so great if you're working with very large files. This post shows you how to build your own uploader and resolve the problem....
  • Speaking of which...

    I am getting OutOfMemoryExceptions. How can I troubleshoot this?

    • 13 Comments
    Problem: You've written an ASP.NET application that is getting OutOfMemoryExceptions. Cause: Let's find out... Resolution: Use Windbg to take a look at the heap. Is it a leak? Take a look at the memory usage of you application using perfmon. If memory...
  • Speaking of which...

    Memory management in the .NET Framework

    • 12 Comments
    This is a subject that has been covered before and I have no intention of writing the ultimate post on the subject. Still I think this is something that every good developer should know. Why do I need to know this? My colleagues and I are quite often...
  • Speaking of which...

    Walkthrough - Troubleshooting a native memory leak

    • 23 Comments
    Problem: A customer called in. They had a Web Service running on a single IIS6. Memory usage would slowly increase and not be released. As a workaround they'd currently set the application pool to recycle at 500 MB, causing a few failed requests upon...
  • Speaking of which...

    What to do about the slow startup of web services

    • 5 Comments
    Due to the architecture of web services and web applications they can be quite slow to start. For example on my Windows 2003-box the initial localhost-call to a simple “Hello World!”-web service takes approximately 8 seconds, while the next request is...
  • Speaking of which...

    SessionState Performance

    • 12 Comments
    What do you do when your StateServer is running high on CPU and your application log is filling up with alerts like: Unable to make the session state request to the session state server.
    Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKLM\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection. ...
  • Speaking of which...

    Make sure you have an Internet connection when using signed assemblies

    • 1 Comments
    A customer called in the other day and told me that his web application took a long time to start. My initial thought was (off course) that it was a matter of the classic slow-to start web services I’ve written about earlier. ( What to do about the slow...
  • Speaking of which...

    PowerShell - Advanced configuration editing in IIS7

    • 3 Comments
    I've written a lot of PowerShell posts lately and here's another one. :-) I got a question from one of the account managers if it was possible to alter the FTP Authorization Rules for a specific folder on his IIS. The appcmd for the operation was appcmd...
  • Speaking of which...

    Problems with Flash-content in the WebBrowser control

    • 7 Comments
    A recent case I worked on involved the following scenario. Problem description The client was building a kiosk-like application. I.e. a WinForms application with the WebBrowser control slapped onto it. The application worked fine for the most part, but...
  • Speaking of which...

    PowerShell - An introduction, Part II

    • 2 Comments
    This is a continuation of part I . If you haven't read it I suggest at least going through the summary at the end of the post. Working with Drives In your basic command prompt you have the normal file system drives that you use to access your hard-drive...
  • Speaking of which...

    PowerShell – An introduction, Part I

    • 2 Comments
    Over the past months I’ve been holding a couple of workshops on PowerShell. It’s quite an interesting topic, but not something I originally thought would be suitable for this blog and its web-development theme. Still, having given this a bit more thought...
  • Speaking of which...

    My web application times out when debugging in IIS7

    • 5 Comments
    Problem: When using Visual Studio 2005 to debug a web application under IIS7 you will find that after 90-120 seconds the debugger will time out and you will get an appropriate error message in your browser. Visual Studio will return to it's "non debugging...
  • Speaking of which...

    Why adding more memory won't resolve OutOfMemoryExceptions

    • 7 Comments
    Quite often I am met with the incorrect assumption that out of memory exceptions can be resolved by adding more memory. I can understand why you'd think that, but actually it won't matter at all. Additional RAM may increase performance, but an additional...
  • Speaking of which...

    Finalizers and weak references

    • 2 Comments
    What do finalizers and weak references have in common? Well more than you might think actually. Finalizers Finalizers are clean-up code that will be run at the end of an objects life-cycle. You should only release native resources in the finalizer. When...
  • Speaking of which...

    I've upgraded and now my application doesn't work anymore

    • 11 Comments
    Scenario: A quite common scenario when working in the support industry is a call along theese lines: "My application worked just fine, but now that I've upgraded to IE7, IIS6, Vista, etc. it doesn't work any more. This has got to be a bug! This new version...
Page 1 of 3 (58 items) 123