473,804 Members | 2,673 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

unexpected tilde ~


There have been a few threads talking about using the tilde ~, to
reference the webroot path. My problem though is handling an unexpected
tilde in a url.

this url:

http://localhost/mysite/~Default.aspx

returns this error:

Invalid file name for monitoring:
'C:\Inetpub\www root\mysite\~De fault.aspx'. File names for monitoring
must have absolute paths, and no wildcards.

And there does not seem to be anyway to trap the error and handle it
gracefully.

We are undergoing a security audit where they introduce all kinds if
crap into the url, trying to break or break into the site, and I am
getting all kinds of flack because I am not handling this error. Can
anyone help?

thanks

--
jbolty
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jun 29 '06 #1
2 1521
You are not saying what program or code returns the error.What are you
trying to do with this url?

Eliyahu

"jbolty" <jb***********@ mail.codecommen ts.com> wrote in message
news:jb******** ***@mail.codeco mments.com...

There have been a few threads talking about using the tilde ~, to
reference the webroot path. My problem though is handling an unexpected
tilde in a url.

this url:

http://localhost/mysite/~Default.aspx

returns this error:

Invalid file name for monitoring:
'C:\Inetpub\www root\mysite\~De fault.aspx'. File names for monitoring
must have absolute paths, and no wildcards.

And there does not seem to be anyway to trap the error and handle it
gracefully.

We are undergoing a security audit where they introduce all kinds if
crap into the url, trying to break or break into the site, and I am
getting all kinds of flack because I am not handling this error. Can
anyone help?

thanks

--
jbolty
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jun 29 '06 #2
re:
there does not seem to be anyway to trap the error and handle it gracefully.
What you should be getting is a 404...which can be "gracefully handled".

See sample at : http://asp.net.do/test/~apppath.aspx

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"jbolty" <jb***********@ mail.codecommen ts.com> wrote in message
news:jb******** ***@mail.codeco mments.com...
There have been a few threads talking about using the tilde ~, to
reference the webroot path. My problem though is handling an unexpected
tilde in a url.

this url:

http://localhost/mysite/~Default.aspx

returns this error:

Invalid file name for monitoring:
'C:\Inetpub\www root\mysite\~De fault.aspx'. File names for monitoring
must have absolute paths, and no wildcards.

And there does not seem to be anyway to trap the error and handle it
gracefully.

We are undergoing a security audit where they introduce all kinds if
crap into the url, trying to break or break into the site, and I am
getting all kinds of flack because I am not handling this error. Can
anyone help?

thanks

--
jbolty
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jun 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2792
by: monte | last post by:
Hello, I need to parse a tilde delimited file and output it to a tabbed delimited file. Example file example.txt data1~data2~data3~data4 data5~data6~data7~data8 I need to extract data2, data4, data6 and data8 from the above file and output it to a file delimited by tabs: data2 data4 data6 data8
0
1111
by: CHristian Niss | last post by:
hi there, in a lot of user controls we are using "~" in server tags to reference objects like images <img src="~/images/something.gif" runat="server" />. with framework 1.0 the tilde got replaced by "/virtualdir" for example. now in framework 1.1 tilde is replaced with relative paths like "../../" this makes a lot of trouble, especially when you dynamically load user controls to an aspx-page. it seems that this relative "../.."-path...
1
3723
by: MB2 | last post by:
I have code in a User Control for an image button like this: <asp:ImageButton id="__0" runat="server" text="Delete" ImageUrl="~/Images/ImageLibrary/icon_delete.gif" /> This used to work and it would display the image properly. However, since installing the latest service pack for the .NET Framework 1.1, the tilde seems to be expanding improperly. The code that is expanded to shows this: <input type="image"...
10
1613
by: Shawn | last post by:
Hi, For a few years, I have been developing each of my clients websites using a seperate web site (unique IP) to solve problems with relative URL's between my local dev station and the production server. Recently, I have needed to collaborate with other developers using Source Safe. But, in order to get source safe working properly, you really need to be working in virtual directories of the default web site.
9
3323
by: Jared Tullis | last post by:
We have an .NET 1.1 application running on 4 2K3 load balanced servers (using WLBS). IIS has the .NET aspnet_isapi.dll mapped as a wildcard application map. The web.config points *.html to a HttpHandler of our design. This setup serves over a million page views daily with almost no hassle whatsoever. We have brought a few affiliates onto our system who have URLs still floating in Google, Y! and other search engines from before they...
3
4325
by: Karo | last post by:
I have troubles with tilde (~) character on my host. It gets replaced by server name instead of domain name from where redirect is coming from. Code HttpContext.Current.Response.Redirect("~/Install/Install.aspx?mode=Install") redirects to host domain. Does anyone know where the problem could be? .NET framework, IIS or somewhere else?
1
2221
by: Mythran | last post by:
In other web servers, more specifically apache and even non-web servers you can use the tilde character to specify the root directory, or home. Before I go reinventing the wheel (by parsing a tilde in the web controls for iis) is there a setting that allows similar functionality in IIS? Thanks, Mythran
4
14608
by: ibiza | last post by:
Hi all, I have a problem which I don't understand with the "~" mark in a NavigateUrl property of an asp:HyperLink. I have this in a master page, to build the standard menu (rMenuItems is a Repeater): Protected Sub rMenuItems_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
4
4456
by: =?Utf-8?B?QWxm?= | last post by:
Hello all, I am having trouble dealing with ~(tilde) in my .Net 1.1 web application, specially when it comes through the URL. For example, when someone requests the following URL: www.mysite.com/~mypage.aspx, my web application will through the following error (with custom errors turned off): Server Error in '/' Application. --------------------------------------------------------------------------------
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10569
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10325
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.