.Text and overriding Request.ApplicationPath

I’ve been experiencing technical difficulties at this site lately. For a while last week, I’d get DNS timeouts for http://www.jasonkemp.ca, then it would work again, then fail again. Then it would come up again, but this time with ASP.NET application errors. Now I think I have it working again and I shouldn’t get errors, but I’ve had to hack the .Text settings in order for my blog to work: if you mouse over any of the links that .Text generates (Home, Contact, Entry titles, etc) you’ll notice they don’t point to http://jasonkemp.ca anymore, but to my host’s generated default URL (well, it used to, before I fixed it, read the Update)

I’m no expert in DNS, so this might be way off base, but for whatever reason, over the last week, it seems http://www.jasonkemp.ca doesn’t point to an IP address anymore, but to another URL. Does this always happen? Is there a way to make it go back to what it used to be? I hope so; I can’t go hacking away at .Text for at least another month to fix it for real, with all the Imagine Cup stuff. I think the site just doesn’t work right if every self-referential link points to a different site. Do any of my three readers know of a way to fix this, without reprogramming .Text? 🙂

Also, let me emphasize that this is in no way a criticism of .Text, just that I know what it’s doing when it inserts those links and that would be how I would work around the problem if I had the time to spend on it.

[Update]
Looks like .Text held the answer after all. With the help of our Imagine Cup web expert, Tyler, he explained what was happening: it turns out, IIS is returing my host’s generated url in Request.ApplicationPath, not jasonkemp.ca, like it was, I assume, last week, since this whole thing was working. While he explained that, I downloaded the config file to see if there was anything in there that was off. There wasn’t, but then I saw that you can override the Host and Application entries that .Text needs to run. You can add the entry in the ConfigProvider tag, like so:

<ConfigProvider type = “Dottext.Common.Config.SingleBlogConfig, Dottext.Common” cacheTime = “120” Host = “jasonkemp.ca”/>

Since I have my blog at the top level, (I have no choice) I don’t use the Application entry. So ignore that DNS stuff. That was my ignorance. This is the real thing you want to see, and hopefully Google will point to this, if this problem happens for others.
[Update]

One Reply to “.Text and overriding Request.ApplicationPath”

Comments are closed.