Archive for the ‘.NET’ Category

24
May

Below is a summary of the “two top things that cause trouble in production ASP.NET web sites,” per Scott Hanselman, which he obtained from deep within Microsoft Developer Support.  Go here to read the complete article.

#1 Issue – Configuration

Seems the #1 issue in support for problems with ASP.NET 2.x and 3.x is configuration. 

Symptoms Notes
OOM
Performance
High memory
Hangs
Deadlocks
There are more debug=true cases than there should be.

 

#2 Issue – Problems with an External (non-ASP.NET) Root Cause

Sometimes when you’re having trouble with an ASP.NET site, the problem turns out to not be ASP.NET itself.

Issue Product Description Symptoms Notes
Anti-virus software All Anti-virus software is installed onto Servers and causes all kinds of problems.
  • Application restarting
  • Slow performance
  • Session variable are null
  • Cannot install hotfix
  • Intermittent time outs
  • High memory
  • Session lost
  • IDE Hangs
  • Deadlocks

This consists of all AV software reported by our customers. All cases do not report the AV software that is being used so the manufacturer is not always known.

KB821438, KB248013, KB295375, KB817442

3rd party Vendors All This is a category of cases where the failure was due to a 3rd party manufacturer.
  • Crash
  • 100% CPU
  • High memory
  • Framework errors
  • Hang
The top culprits are 3rd party database systems, and 3rd party internet access management systems
Microsoft component All Microsoft software
  • Intermittent time outs
  • High memory
  • Deadlocks
  • 100% CPU
    Crash
Design issues that cause performance issues like sprocs, deadlocks, etc. Profile your applications and the database! (Pro tip: select * from authors doesn’t scale.) Pair up DBAs and programmers and profile from end to end

02
Jul

I was getting this error when running one of my unit tests:

Unit Test Adapter threw exception: The type initializer for ‘Microsoft.VisualStudio.TestTools.UnitTesting.TestConfiguration’ threw an exception.
Unable to cast object of type ‘Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection’ to type ‘Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection’.

The issue was due to a versioning problem in the .config file (I upgraded to VS 2008).  The section that you’ll want to change is Version=8.0.0.0 to Version=9.0.0.0:

<section name=”microsoft.visualstudio.testtools” type=”Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection, Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=…”/>

Hope this helps.

30
Jun

I’m posting this for archival purposes, as I had to figure it out myself…

Windows PowerShell doesn’t appear in Add/Remove Programs nor is there an uninstall shortcut in the Programs menu.  So the way to do it uninstall is to check the Show updates option in Add/Remove Programs.

Peace!  \m/

27
Feb

You can check out the virtual launch for Visual Studio 2008, SQL Server 2008 and Windows Server 2008 here.

You never know…Steve Ballmer may have another “developers, developers, developers” sweaty-armpit-speech. And why it’s called Heroes Happen Here, I don’t know. It’s worth looking into though.

27
Dec

Just sign up with your Windows Live/Passport account and you can download all three e-books by Microsoft Press.  It includes the following:

image

Enjoy!

  • Search:
  • Archives