Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Tilde (~) virtual root url results in 404
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
davidkclark  
View profile  
 More options Mar 3, 5:33 pm
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: davidkclark <davidkcl...@gmail.com>
Date: Tue, 3 Mar 2009 14:33:56 -0800 (PST)
Local: Tues, Mar 3 2009 5:33 pm
Subject: Tilde (~) virtual root url results in 404
Morning,

I have an ASP.NET website that has been running fine for some months.
It is a very simple single page form that submits back to itself. The
action for the form happens to use the virtual root token: action="~/
direct.aspx"

Yesterday the server was rebooted after a power failure, and this
morning submitting the form results in a 404 "The resource cannot be
found". The exception is:
[HttpException]: The file '/~/direct.aspx' does not exist.
   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath
virtualPath)
[...]

The url in the location bar is like:
http://example.com/~/direct.aspx
Which suggests to me that the ~ is not being translated as it should.

I have fixed it by making the url absolute, but we would like to know
what caused this problem. Has there been some update to IIS? Or what
configuration changes on the machine could cause ~ to stop working?

Thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Rae [MVP]  
View profile  
 More options Mar 3, 8:13 pm
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Mark Rae [MVP]" <m...@markNOSPAMrae.net>
Date: Wed, 4 Mar 2009 01:13:57 -0000
Local: Tues, Mar 3 2009 8:13 pm
Subject: Re: Tilde (~) virtual root url results in 404
"davidkclark" <davidkcl...@gmail.com> wrote in message

news:2d34f110-bfce-4270-a61a-3deeaa2dc0de@e36g2000prg.googlegroups.com...

> I have an ASP.NET website that has been running fine for some months.
> It is a very simple single page form that submits back to itself. The
> action for the form happens to use the virtual root token: action="~/
> direct.aspx"

Not quite sure what you're doing here... ASP.NET pages submit to themselves
automatically - that's what postbacks are - there's no need to specify an
action attribute for the form tag...

Please post the markup and code-behind for the page...

--
Mark Rae
ASP.NET MVP
http://www.markrae.net


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google