catching blog does not exist exceptionhttp://forums.asp.net/t/671437.aspx/1?catching+blog+does+not+exist+exceptionMon, 23 Aug 2004 09:54:57 -0400671437671437http://forums.asp.net/p/671437/671437.aspx/1?catching+blog+does+not+exist+exceptioncatching blog does not exist exception Hi.. I have created a page where users can request the creation of a blog for them. What I want to be able to do is.. if a user tries to go to a blog that doesnt exits ie http://www.mydomain.com/nonexistblog/ I want the page to redirect to http://www.mydomain.com/requestblog.aspx Currently, if i try to go there, I get and un handled BlogDoesNotExistException I cant figure out where this exception is being thrown to catch it. Cheers Amit 2004-08-20T13:46:43-04:00671627http://forums.asp.net/p/671437/671627.aspx/1?Re+catching+blog+does+not+exist+exceptionRe: catching blog does not exist exception If you track down usages of BlogDoesNotExistException, you'll see it's only used in two places, in some ErrorPage in the web project and in Dottext.Framework.Configuration.GetConfig. It's the latter one that's being thrown in the case at hand. If you really want to do this, you can add an HttpContext.Current redirect in lieu of throwing BlogDoesNotExistException in GetConfig. That will accomplish what you're trying to do. Not sure why actually doing this makes sense for you, but who knows, maybe it does. This exception is only happening when users are trying to access a non-existent blog or when the .Text instance is misconfigured. I'm trying to envision a scenario whereby a user is trying to access a blog they would want to set up by typing in its nonexistent url--all I can come up with is you're either intending to pre-seed ghost blogs (i.e., similar to how a wiki does with non-existent camelcase words) or you're using this as your check-for-existing-blog mechanism, which also makes zero sense. In any event, ymmv, but that's the code to modify. 2004-08-20T16:53:50-04:00673072http://forums.asp.net/p/671437/673072.aspx/1?Re+catching+blog+does+not+exist+exceptionRe: catching blog does not exist exception Thanks for the your help grant. What I am doing is, I am using dottext on our intranet. To make it easier to manage, I have adapted .text to work with inegrated authentication and blog usernames and passwords are set to be the same as a users windows username. On the aggregate page, I have a "my blog" link which takes you to your blog.. if you have one. This link is generated from your username that you are logged onto the network with. If you click the link and havent got a blog account, I want to redirect the page to a form which will allow you to create your blog. so what I plan to do is redirect users to the creation page if they cause a blog config error. This page will check their username with the requested blog page.. and create it if they names match. Amit 2004-08-23T09:50:12-04:00