DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 5 Aug 2007 10:48:33 -0400,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Tony Girgenti tony(nospam)@lakesideos.com
          2    ThatsIT.net.au me@thatsit
                 3    Tony Girgenti tony(nospam)@lakesideos.com
                 4    ThatsIT.net.au me@thatsit
          5    Mark Rae [MVP]
          6    Göran Andersson
          7    Tony Girgenti tony(nospam)@lakesideos.com
          8    Mark Rae [MVP]
          9    Tony Girgenti tony(nospam)@lakesideos.com
          10    Göran Andersson
          11    Tony Girgenti tony(nospam)@lakesideos.com


Getting "The resource cannot be found" using href=   
Hello.

I have an ASP.NET 2.0 web site with a master page that works fine when i 
test it in VS2005, but when i upload it to a live isp site, it gives the 
error at the end of this post for one of the links.  Here is the line that 
has the link:
<div class="readmore"><a href="/CoyneWebServices/File 
Maintenance/Warehouses.aspx" title="More info">» more</a></div>

I tried putting a tilde"~" after the href=", but it won't allow that line in 
the source view.

I also tried using:
<div class="readmore"><a href="CoyneWebServices/File 
Maintenance/Warehouses.aspx" title="More info">» more</a></div>

<div class="readmore"><a 
href="http://www.tonygirgenti.info/CoyneWebServices/File 
Maintenance/Warehouses.aspx" title="More info">» more</a></div>

<div class="readmore"><a href="/File Maintenance/Warehouses.aspx" 
title="More info">» more</a></div>

Any help would be gratefully appreciated.

Thanks,
Tony



Server Error in '/' Application.
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its 
dependencies) could have been removed, had its name changed, or is 
temporarily unavailable.  Please review the following URL and make sure that 
it is spelled correctly.

Requested URL: /CoyneWebServices/File Maintenance/Warehouses.aspx




--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET 
Version:2.0.50727.210
Date:Sun, 5 Aug 2007 10:48:33 -0400   Author:  

Re: Getting "The resource cannot be found" using href=   
/CoyneWebServices/File Maintenance/Warehouses.aspx

your link starts with a "/" this means "CoyneWebServices" is a folder in the 
root directory, but this may not be the case on your isp.

You may need to use the "../../" addressing

if you have say
/folder1/folder2

and
/folder3/folder4

and you had a file in folder4 that linked to a file in folder2 you would use

.../../folder1/folder2

and you had a file in folder3 that linked to a file in folder2 you would use

.../folder1/folder2

"Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message 
news:ORjt1%2321HHA.3760@TK2MSFTNGP03.phx.gbl...

> Hello.
>
> I have an ASP.NET 2.0 web site with a master page that works fine when i 
> test it in VS2005, but when i upload it to a live isp site, it gives the 
> error at the end of this post for one of the links.  Here is the line that 
> has the link:
> <div class="readmore"><a href="/CoyneWebServices/File 
> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>
> I tried putting a tilde"~" after the href=", but it won't allow that line 
> in the source view.
>
> I also tried using:
> <div class="readmore"><a href="CoyneWebServices/File 
> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>
> <div class="readmore"><a 
> href="http://www.tonygirgenti.info/CoyneWebServices/File 
> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>
> <div class="readmore"><a href="/File Maintenance/Warehouses.aspx" 
> title="More info">» more</a></div>
>
> Any help would be gratefully appreciated.
>
> Thanks,
> Tony
>
>
>
> Server Error in '/' Application.
> --------------------------------------------------------------------------------
>
> The resource cannot be found.
> Description: HTTP 404. The resource you are looking for (or one of its 
> dependencies) could have been removed, had its name changed, or is 
> temporarily unavailable.  Please review the following URL and make sure 
> that it is spelled correctly.
>
> Requested URL: /CoyneWebServices/File Maintenance/Warehouses.aspx
>
>
>
>
> --------------------------------------------------------------------------------
>
> Version Information: Microsoft .NET Framework Version:2.0.50727.42; 
> ASP.NET Version:2.0.50727.210
>
> 
Date:Sun, 5 Aug 2007 23:06:01 +0800   Author:  

Re: Getting "The resource cannot be found" using href=   
"Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message 
news:ORjt1%2321HHA.3760@TK2MSFTNGP03.phx.gbl...


> I have an ASP.NET 2.0 web site with a master page that works fine when i 
> test it in VS2005, but when i upload it to a live isp site, it gives the 
> error at the end of this post for one of the links.  Here is the line that 
> has the link:
> <div class="readmore"><a href="/CoyneWebServices/File 
> Maintenance/Warehouses.aspx" title="More info">» more</a></div>


1) Are you sure it actually exists on the live server...?

2) You have spaces in your URL - avoid that if you possibly can

3) You appear to have omitted the question mark at the beginning of the 
QueryString...


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Sun, 5 Aug 2007 16:06:21 +0100   Author:  

Re: Getting "The resource cannot be found" using href=   
Tony Girgenti wrote:

> Hello.
> 
> I have an ASP.NET 2.0 web site with a master page that works fine when i 
> test it in VS2005, but when i upload it to a live isp site, it gives the 
> error at the end of this post for one of the links.  Here is the line that 
> has the link:
> <div class="readmore"><a href="/CoyneWebServices/File 
> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
> 
> I tried putting a tilde"~" after the href=", but it won't allow that line in 
> the source view.


You need to put runat="server" in the tag to be able to use the tilde. 
The server translates the tilde url to an actual url, so the control has 
to be a server control.

<a href="~/CoyneWebServices/File%20Maintenance/Warehouses.aspx" 
title="More info" runat="server">» more</a>

As mark mentioned, an URL should not contain spaces. Although most 
browsers doesn't care, a correct URL may not contain spaces.

-- 
Gran Andersson
_____
http://www.guffa.com
Date:Sun, 05 Aug 2007 17:25:07 +0200   Author:  

Re: Getting "The resource cannot be found" using href=   
Hello ThatsIT.

Using your logic, if i have off of the root 
"FileMaintenance/Warehouses.aspx"(i removed the space), from the 
AppMaster.master(which is in the root), i use
<a href="/FileMaintenance/Warehouses.aspx" title="More info">» 
more</a>

This works OK when uploaded to live site, but does not work when i run it 
from VS2005.

Why is that?

Thanks,
Tony

"ThatsIT.net.au" <me@thatsit> wrote in message 
news:OwWdkI31HHA.1124@TK2MSFTNGP06.phx.gbl...

> /CoyneWebServices/File Maintenance/Warehouses.aspx
>
> your link starts with a "/" this means "CoyneWebServices" is a folder in 
> the root directory, but this may not be the case on your isp.
>
> You may need to use the "../../" addressing
>
> if you have say
> /folder1/folder2
>
> and
> /folder3/folder4
>
> and you had a file in folder4 that linked to a file in folder2 you would 
> use
>
> ../../folder1/folder2
>
> and you had a file in folder3 that linked to a file in folder2 you would 
> use
>
> ../folder1/folder2
>
> "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message 
> news:ORjt1%2321HHA.3760@TK2MSFTNGP03.phx.gbl...
>> Hello.
>>
>> I have an ASP.NET 2.0 web site with a master page that works fine when i 
>> test it in VS2005, but when i upload it to a live isp site, it gives the 
>> error at the end of this post for one of the links.  Here is the line 
>> that has the link:
>> <div class="readmore"><a href="/CoyneWebServices/File 
>> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>>
>> I tried putting a tilde"~" after the href=", but it won't allow that line 
>> in the source view.
>>
>> I also tried using:
>> <div class="readmore"><a href="CoyneWebServices/File 
>> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>>
>> <div class="readmore"><a 
>> href="http://www.tonygirgenti.info/CoyneWebServices/File 
>> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>>
>> <div class="readmore"><a href="/File Maintenance/Warehouses.aspx" 
>> title="More info">» more</a></div>
>>
>> Any help would be gratefully appreciated.
>>
>> Thanks,
>> Tony
>>
>>
>>
>> Server Error in '/' Application.
>> --------------------------------------------------------------------------------
>>
>> The resource cannot be found.
>> Description: HTTP 404. The resource you are looking for (or one of its 
>> dependencies) could have been removed, had its name changed, or is 
>> temporarily unavailable.  Please review the following URL and make sure 
>> that it is spelled correctly.
>>
>> Requested URL: /CoyneWebServices/File Maintenance/Warehouses.aspx
>>
>>
>>
>>
>> --------------------------------------------------------------------------------
>>
>> Version Information: Microsoft .NET Framework Version:2.0.50727.42; 
>> ASP.NET Version:2.0.50727.210
>>
>>
>
> 
Date:Mon, 6 Aug 2007 09:27:24 -0400   Author:  

Re: Getting "The resource cannot be found" using href=   
Hello Mark.


>> 1) Are you sure it actually exists on the live server...?<<

Not sure of what you mean by this.  I can see it on the web site using ftp. 
I uploaded the whole site using ftp.  Its there.


> 2) You have spaces in your URL - avoid that if you possibly can

Removed spaces.


> 3) You appear to have omitted the question mark at the beginning of the 
> QueryString...

What query string?

Thanks,
Tony

"Mark Rae [MVP]"  wrote in message 
news:%23uRHsI31HHA.3916@TK2MSFTNGP02.phx.gbl...

> "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message 
> news:ORjt1%2321HHA.3760@TK2MSFTNGP03.phx.gbl...
>
>> I have an ASP.NET 2.0 web site with a master page that works fine when i 
>> test it in VS2005, but when i upload it to a live isp site, it gives the 
>> error at the end of this post for one of the links.  Here is the line 
>> that has the link:
>> <div class="readmore"><a href="/CoyneWebServices/File 
>> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>
> 1) Are you sure it actually exists on the live server...?
>
> 2) You have spaces in your URL - avoid that if you possibly can
>
> 3) You appear to have omitted the question mark at the beginning of the 
> QueryString...
>
>
> -- 
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net 
Date:Mon, 6 Aug 2007 09:30:36 -0400   Author:  

Re: Getting "The resource cannot be found" using href=   
"Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message 
news:OcnZ93C2HHA.6072@TK2MSFTNGP03.phx.gbl...


>> 1) Are you sure it actually exists on the live server...?<<
> Not sure of what you mean by this.  I can see it on the web site using 
> ftp. I uploaded the whole site using ftp.  Its there.


And is it where it should be in the folder hierarchy...?


>> 3) You appear to have omitted the question mark at the beginning of the 
>> QueryString...
> What query string?


Apologies - I didn't read your OP closely enough...


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Mon, 6 Aug 2007 14:37:08 +0100   Author:  

Re: Getting "The resource cannot be found" using href=   
Hello Goran.

I removed the space and added runat="server" like this:
<a href="~/CoyneWebServices/FileMaintenance/Warehouses.aspx" title="More 
info" runat="server">» more</a>

This still does not work.  The source view does not allow it.  When i hover 
the mouse pointer over it, it says "File 
'~/coynewebservices/filemaintenance/warehouses.aspx' was not found."

Thanks,
Tony

"Gran Andersson"  wrote in message 
news:eCtFST31HHA.1188@TK2MSFTNGP04.phx.gbl...

> Tony Girgenti wrote:
>> Hello.
>>
>> I have an ASP.NET 2.0 web site with a master page that works fine when i 
>> test it in VS2005, but when i upload it to a live isp site, it gives the 
>> error at the end of this post for one of the links.  Here is the line 
>> that has the link:
>> <div class="readmore"><a href="/CoyneWebServices/File 
>> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>>
>> I tried putting a tilde"~" after the href=", but it won't allow that line 
>> in the source view.
>
> You need to put runat="server" in the tag to be able to use the tilde. The 
> server translates the tilde url to an actual url, so the control has to be 
> a server control.
>
> <a href="~/CoyneWebServices/File%20Maintenance/Warehouses.aspx" 
> title="More info" runat="server">» more</a>
>
> As mark mentioned, an URL should not contain spaces. Although most 
> browsers doesn't care, a correct URL may not contain spaces.
>
> -- 
> Gran Andersson
> _____
> http://www.guffa.com 
Date:Mon, 6 Aug 2007 09:38:44 -0400   Author:  

Re: Getting "The resource cannot be found" using href=   
"Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message 
news:%239ZuK2C2HHA.748@TK2MSFTNGP04.phx.gbl...

> Hello ThatsIT.
>
> Using your logic, if i have off of the root 
> "FileMaintenance/Warehouses.aspx"(i removed the space), from the 
> AppMaster.master(which is in the root), i use
> <a href="/FileMaintenance/Warehouses.aspx" title="More info">» 
> more</a>
>
> This works OK when uploaded to live site, but does not work when i run it 
> from VS2005.
>
> Why is that?



FileMaintenance/Warehouses.aspx

is relitive from where you lcik the link

/FileMaintenance/Warehouses.aspx

is from the root always


>
> Thanks,
> Tony
>
> "ThatsIT.net.au" <me@thatsit> wrote in message 
> news:OwWdkI31HHA.1124@TK2MSFTNGP06.phx.gbl...
>> /CoyneWebServices/File Maintenance/Warehouses.aspx
>>
>> your link starts with a "/" this means "CoyneWebServices" is a folder in 
>> the root directory, but this may not be the case on your isp.
>>
>> You may need to use the "../../" addressing
>>
>> if you have say
>> /folder1/folder2
>>
>> and
>> /folder3/folder4
>>
>> and you had a file in folder4 that linked to a file in folder2 you would 
>> use
>>
>> ../../folder1/folder2
>>
>> and you had a file in folder3 that linked to a file in folder2 you would 
>> use
>>
>> ../folder1/folder2
>>
>> "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message 
>> news:ORjt1%2321HHA.3760@TK2MSFTNGP03.phx.gbl...
>>> Hello.
>>>
>>> I have an ASP.NET 2.0 web site with a master page that works fine when i 
>>> test it in VS2005, but when i upload it to a live isp site, it gives the 
>>> error at the end of this post for one of the links.  Here is the line 
>>> that has the link:
>>> <div class="readmore"><a href="/CoyneWebServices/File 
>>> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>>>
>>> I tried putting a tilde"~" after the href=", but it won't allow that 
>>> line in the source view.
>>>
>>> I also tried using:
>>> <div class="readmore"><a href="CoyneWebServices/File 
>>> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>>>
>>> <div class="readmore"><a 
>>> href="http://www.tonygirgenti.info/CoyneWebServices/File 
>>> Maintenance/Warehouses.aspx" title="More info">» more</a></div>
>>>
>>> <div class="readmore"><a href="/File Maintenance/Warehouses.aspx" 
>>> title="More info">» more</a></div>
>>>
>>> Any help would be gratefully appreciated.
>>>
>>> Thanks,
>>> Tony
>>>
>>>
>>>
>>> Server Error in '/' Application.
>>> --------------------------------------------------------------------------------
>>>
>>> The resource cannot be found.
>>> Description: HTTP 404. The resource you are looking for (or one of its 
>>> dependencies) could have been removed, had its name changed, or is 
>>> temporarily unavailable.  Please review the following URL and make sure 
>>> that it is spelled correctly.
>>>
>>> Requested URL: /CoyneWebServices/File Maintenance/Warehouses.aspx
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------------------
>>>
>>> Version Information: Microsoft .NET Framework Version:2.0.50727.42; 
>>> ASP.NET Version:2.0.50727.210
>>>
>>>
>>
>>
>
> 
Date:Mon, 6 Aug 2007 22:51:50 +0800   Author:  

Re: Getting "The resource cannot be found" using href=   
Tony Girgenti wrote:

> Hello Goran.
> 
> I removed the space and added runat="server" like this:
> <a href="~/CoyneWebServices/FileMaintenance/Warehouses.aspx" title="More 
> info" runat="server">» more</a>
> 
> This still does not work.  The source view does not allow it.  When i hover 
> the mouse pointer over it, it says "File 
> '~/coynewebservices/filemaintenance/warehouses.aspx' was not found."
> 
> Thanks,
> Tony
> 


Acccording to your other posts in the thread, the CoyneWebServices is 
not a folder in your solution.

The tilde represents the root folder in your application, not the root 
folder of the web, so you should remove CoyneWebServices from the url.

-- 
Gran Andersson
_____
http://www.guffa.com
Date:Tue, 07 Aug 2007 00:18:42 +0200   Author:  

Re: Getting "The resource cannot be found" using href=   
Ahh.  I see.  So "CoyneWebServices" is represented by the tilde.

Thanks,
Tony

"Gran Andersson"  wrote in message 
news:%23nG5FfH2HHA.5772@TK2MSFTNGP02.phx.gbl...

> Tony Girgenti wrote:
>> Hello Goran.
>>
>> I removed the space and added runat="server" like this:
>> <a href="~/CoyneWebServices/FileMaintenance/Warehouses.aspx" title="More 
>> info" runat="server">» more</a>
>>
>> This still does not work.  The source view does not allow it.  When i 
>> hover the mouse pointer over it, it says "File 
>> '~/coynewebservices/filemaintenance/warehouses.aspx' was not found."
>>
>> Thanks,
>> Tony
>>
>
> Acccording to your other posts in the thread, the CoyneWebServices is not 
> a folder in your solution.
>
> The tilde represents the root folder in your application, not the root 
> folder of the web, so you should remove CoyneWebServices from the url.
>
> -- 
> Gran Andersson
> _____
> http://www.guffa.com 
Date:Tue, 7 Aug 2007 20:03:13 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us