Politics, Weather, Photography, and the Dog
Saturday 7 June 2014

Parker and I haven't yet left for Ribfest because I've just spent two and a half hours debugging an application.

After upgrading the application to the current version of the Inner Drive Extensible Architecture™ the thing wouldn't start. I simply got an error message in plain text, "The page cannot be displayed because an internal server error has occurred." The Windows Application Log supplied this clue:

The worker process for application pool 'a177c227-f36e-4874-aefe-9b41ca0d14ec' encountered an error 'Cannot read configuration file ' trying to read global module configuration data from file '\\?\C:\Users\dab\AppData\Local\dftmp\Resources\02e946dc-c92e-4774-a19a-5b013a38da65\temp\temp\RoleTemp\applicationHost.config', line number '0'. Worker process startup aborted.

Searching through Stack Overflow gave me a few clues, but nothing concrete. So I had to go through the web.config file line by line until I found this:

<system.diagnostics>
	<trace>
		<listeners>
			<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,
		Microsoft.WindowsAzure.Diagnostics, Version=1.8.0.0, Culture=neutral, 
		PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
				<filter type="" />
			</add>
		</listeners>
	</trace>
</system.diagnostics>

Deleting the configuration section altogether worked. So did changing the 1.8 to a 2.2. And now the application runs. And now Parker and I are going to get ribs.

The error message is just stupid programmers being lazy. It isn't really that hard to write error messages that tell users what has gone wrong. In this case, line number 0 wasn't the problem; it was farther down in the configuration file, and in fact it had very little to do with the configuration file at all.

I would like to have seen a message in the application log that "the system could not load Microsoft.WindowsAzure.Diagnostics version 1.8." Why was that too hard for the Azure Emulator team?

Saturday 7 June 2014 13:22:50 CDT (UTC-05:00)  |  | Windows Azure#
Search
On this page....
Stupid error messages that cost lots of time
Countdowns
The Daily Parker +3215d 15h 14m
My next birthday 1d 20h 16m
To London 43d 07h 04m
Parker's 9th birthday 285d 21h 59m
Categories
Aviation (328) Baseball (110) Best Bars (5) Biking (44) Chicago (872) Cubs (197) Duke (132) Geography (317) Higher Ground (5) Jokes (282) Kitchen Sink (626) London (41) Parker (186) Daily (204) Photography (139) Politics (302) US (1069) World (245) Raleigh (20) Readings (8) Religion (62) San Francisco (86) Software (196) Blogs (72) Business (223) Cloud (89) Cool links (131) Security (98) Travel (180) Weather (678) Astronomy (79) Windows Azure (59) Work (45) Writing (8)
Links
Archive
<September 2014>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
Full archive
Blogroll
About
David Braverman and Parker
David Braverman is a software developer in Chicago, and the creator of Weather Now. Parker is the most adorable dog on the planet, 80% of the time.
Legal
All content Copyright ©2014 David Braverman.
Creative Commons License
The Daily Parker by David Braverman is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License, excluding photographs, which may not be republished unless otherwise noted.
Admin Login
Sign In
Blog Stats
Total Posts: 4450
This Year: 348
This Month: 3
This Week: 4
Comments: 0