DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Solving Issues - Pain and More Pain  (Read 5,910 times)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Solving Issues - Pain and More Pain
« on: March 04, 2011, 01:25 AM »
Well, I finally solved a stupid problem. The solution was to remove a single attribute from an XML node. I'd been through a trillion different routes, and finally found it.

The problem came from an upgraded web.config file going from IIS6 to IIS7, in which the attribute got added. Sigh...

Anyways... Just one of those things. Lost more time over it than I care to admit, but eventually got it working. YAY~! :D

Lesson learned: Sometimes things just aren't that complicated, and going back to basics can save a lot of time.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Re: Solving Issues - Pain and More Pain
« Reply #1 on: March 04, 2011, 02:01 AM »
:) That type of thing happened to me a lot lately, and it involved XML (and character encoding).

Will focus on improving my problem solving algorithms...
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Solving Issues - Pain and More Pain
« Reply #2 on: March 04, 2011, 07:27 AM »
the attribute got added

What did that pesky attribute look like? (so we know what to avoid :D)
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Solving Issues - Pain and More Pain
« Reply #3 on: March 04, 2011, 07:40 AM »
XML - Pain and More Pain

There, fixed the topic for you.
- carpe noctem

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Solving Issues - Pain and More Pain
« Reply #4 on: March 04, 2011, 01:02 PM »
the attribute got added

What did that pesky attribute look like? (so we know what to avoid :D)

It won't help. :(

Let me delay the long explanation for a bit. Here's why:

http://cynic.me/2011/03/01/opening-up-software-business-for-complete-transparency/

I'm considering that, and am planning a post with code on the mini application I just finished (it's draft quality, but it's solid and it works).

The short version is that I ended up with:

preCondition="managedHandler"

Here:

Code: (xml)
<system.webServer>
      <modules>
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" preCondition="managedHandler" />
      </modules>
</system.webServer>

Removing it solved the problem.



XML - Pain and More Pain

There, fixed the topic for you.


Actually, I'm quite good with XML and really like it (beats INI any day). It wasn't the XML itself that was the problem. It was the addition of that attribute that slipped past, and that I assumed was needed for IIS7.

XML specifications that are massively large, like that for a web.config file, are simply unmanageable, but not because they are XML. They're unmanageable because they're so complex, and errors aren't readily apparent sometimes.

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Solving Issues - Pain and More Pain
« Reply #5 on: March 04, 2011, 01:08 PM »
XML specifications that are massively large, like that for a web.config file, are simply unmanageable, but not because they are XML. They're unmanageable because they're so complex, and errors aren't readily apparent sometimes.

That's my biggest fear with .NET stuff, that I mess up all those massive and complex gazillion attribute elements, by making one trivial typo :tellme:
And the error messages thrown aren't helpful at all, usually it's something like "Initialization error" or "Exception was thrown..." without any useful stacktrace.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Solving Issues - Pain and More Pain
« Reply #6 on: March 04, 2011, 01:14 PM »
I find most XML issues are pretty easy to track down. This one was silent, and emerged as 404, 404.4 and different 5xx errors.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Original address: https://www.donationcoder.com/forum/index.php?topic=25952.0