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 +3263d 07h 06m
To London +4d 08h 47m
Parker's 9th birthday 238d 06h 07m
My next birthday 319d 10h 12m
Categories
Aviation (336) Baseball (110) Best Bars (6) Biking (44) Chicago (891) Cubs (197) Duke (132) Geography (329) Higher Ground (5) Jokes (282) Kitchen Sink (637) London (52) Parker (189) Daily (204) Photography (142) Politics (303) US (1079) World (252) Raleigh (21) Readings (8) Religion (66) San Francisco (87) Software (200) Blogs (74) Business (224) Cloud (89) Cool links (132) Security (98) Travel (201) Weather (688) Astronomy (84) Windows Azure (59) Work (54) Writing (8)
Links
Archive
<October 2014>
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
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: 4513
This Year: 411
This Month: 26
This Week: 2
Comments: 0