473,386 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Site map URL

Hi Everybody
i am trying to add a node to the Sitemap with an external URL; like
"http://microsoft.com" , buty when i do this using
StaticSiteMapProvider.AddNode(node, node), i get HttpException stating that
"http://microsoft.com" is not a valid virtual path, though everything works
fine for the nodes with URL refrencing pages in my application or even any
url that doesn't have the http:// , any ideas?
Nov 16 '06 #1
3 3817
the Stack contents has the following info
[HttpException (0x80004005): 'http://' is not a valid virtual path.]
System.Web.Util.UrlPath.CheckValidVirtualPath(Stri ng path)

any ideas why CheckValidVirtualPath(String path) fails with http addresses.
there is no documentation for this method on MSDN

please somebody help
"Toty Santana" wrote:
Hi Everybody
i am trying to add a node to the Sitemap with an external URL; like
"http://microsoft.com" , buty when i do this using
StaticSiteMapProvider.AddNode(node, node), i get HttpException stating that
"http://microsoft.com" is not a valid virtual path, though everything works
fine for the nodes with URL refrencing pages in my application or even any
url that doesn't have the http:// , any ideas?

Nov 16 '06 #2

well for one, you would know already that it isnt a virtual path if
youre passing in a qualified url..

the exception is probably because its blowing up on the // .. i guess
the expected behavior would just to return false.. but again, you would
already know the answer to the question, which is why nobody bothered
to write support directly for an invalid path containing http://

Toty Santana wrote:
the Stack contents has the following info
[HttpException (0x80004005): 'http://' is not a valid virtual path.]
System.Web.Util.UrlPath.CheckValidVirtualPath(Stri ng path)

any ideas why CheckValidVirtualPath(String path) fails with http addresses.
there is no documentation for this method on MSDN

please somebody help
"Toty Santana" wrote:
Hi Everybody
i am trying to add a node to the Sitemap with an external URL; like
"http://microsoft.com" , buty when i do this using
StaticSiteMapProvider.AddNode(node, node), i get HttpException stating that
"http://microsoft.com" is not a valid virtual path, though everything works
fine for the nodes with URL refrencing pages in my application or even any
url that doesn't have the http:// , any ideas?
Nov 17 '06 #3
I think nobody answered bcz nobody knew the answer, or berhaps they didn't
get what i mean.
some how when the sitemap nodes are stored in the DB. it never accepts a
fully qualified URL(becz it uses CheckValidVirtualPath for each node which i
have no control on it); though it can accept any other thing you put in the
URL
(like "sdsd##%SDD" .

with the default xmlsitemapprovider there are no probs.

i found a work a round this; by Server.UrlEncode() the URL before storing
it in the DB and decoding it when being displayed on a menu control or
whatever.

thanks

"kferron" wrote:
>
well for one, you would know already that it isnt a virtual path if
youre passing in a qualified url..

the exception is probably because its blowing up on the // .. i guess
the expected behavior would just to return false.. but again, you would
already know the answer to the question, which is why nobody bothered
to write support directly for an invalid path containing http://

Toty Santana wrote:
the Stack contents has the following info
[HttpException (0x80004005): 'http://' is not a valid virtual path.]
System.Web.Util.UrlPath.CheckValidVirtualPath(Stri ng path)

any ideas why CheckValidVirtualPath(String path) fails with http addresses.
there is no documentation for this method on MSDN

please somebody help
"Toty Santana" wrote:
Hi Everybody
i am trying to add a node to the Sitemap with an external URL; like
"http://microsoft.com" , buty when i do this using
StaticSiteMapProvider.AddNode(node, node), i get HttpException stating that
"http://microsoft.com" is not a valid virtual path, though everything works
fine for the nodes with URL refrencing pages in my application or even any
url that doesn't have the http:// , any ideas?
>
>

Nov 17 '06 #4

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

Similar topics

5
by: Florent | last post by:
Hi, I run a few sites and I want to log in my main site database when/if there is a problem, (like a page not found or an unknown agent). But I don't want to give direct access to my database...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
0
by: HackingPSP | last post by:
I saw a lot of requests for a program like this, so I wrote it. Yeah, my site has "PSP software by Auri" but in this case it means "Pretty Sweet Programming" :) There's both a VS2005 add-in and a...
0
by: Wayne Sepega | last post by:
We are using windows 2003 standard server, VSS 2005 and VS 2005 (mostly team dev, but some team arch and suite) We run windows 2003 on our development boxes, this gives us the ability to host...
9
by: CK | last post by:
Hi All, I have a sharepoint site on a box. I can hit the box by going to the ip address http://10.0.0.1/default.aspx but I can not hit it by name. The password dialong box comes up and it rejects...
71
by: Murray R. Van Luyn | last post by:
Hi, Since I have made changes to my website it's been a complete flop. According to the logs, as soon as visitors have downloaded the index page they are off. I can't figure out why? ...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
3
by: DBLWizard | last post by:
Howdy All, Is it possible to have Visual Studio 2005 create a project form an existing hosted website? In other words I want to be able connect via ftp to my website structure and have it pull...
16
by: Ben Sehara | last post by:
Is there any way I can limit the access to my website? I have a site "A" and I want to allow access to it only from site "B" login user. If someone try to access site "A" directory, I want it...
3
by: John Kotuby | last post by:
Hi all, Within an IFRAME of a standard site constructed of mostly static HTM type pages, I am calling up one page from a large ASP.NET 3.5 site. I have precompiled the ASP.NET site and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.