473,394 Members | 1,641 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,394 software developers and data experts.

q; Server.Transfer problem

I have an asp.net solution and one asp.net and a few asp projects included
to this solution.
I try to redirect from my asp.net page to asp page with Server.Transfer, I
get the following error:

Invalid path for child request
'http://IPAddess/MyAspNetApp/MyASPSite/index.asp'. A virtual path is
expected.

If I use Response.Redirect it does not go to the page. If I copy paste the
link in IE I am able to get the page.
Where is the problem?

Nov 14 '06 #1
2 1665
Server.Transfer cannot tranfer to an external page, which is why it says you
must use a virtual path.

Response.Redirect and Server.Transfer, while they seem to achieve the same
goal, are very different beasts. Here's a decent writeup:
http://www.developer.com/net/asp/article.php/3299641
--
Regards,

Gregory Silvano
Stature Software, LLC
http://www.staturesoftware.com
"JIM.H." <JI**@discussions.microsoft.comwrote in message
news:F7**********************************@microsof t.com...
>I have an asp.net solution and one asp.net and a few asp projects included
to this solution.
I try to redirect from my asp.net page to asp page with Server.Transfer, I
get the following error:

Invalid path for child request
'http://IPAddess/MyAspNetApp/MyASPSite/index.asp'. A virtual path is
expected.

If I use Response.Redirect it does not go to the page. If I copy paste the
link in IE I am able to get the page.
Where is the problem?

Nov 14 '06 #2
Gregory thank you very much for your help. Why would Response.Redirect not
going to that page though. I do not get any error either, it just does not go
and stays in the current page.

"Gregory Silvano" wrote:
Server.Transfer cannot tranfer to an external page, which is why it says you
must use a virtual path.

Response.Redirect and Server.Transfer, while they seem to achieve the same
goal, are very different beasts. Here's a decent writeup:
http://www.developer.com/net/asp/article.php/3299641
--
Regards,

Gregory Silvano
Stature Software, LLC
http://www.staturesoftware.com
"JIM.H." <JI**@discussions.microsoft.comwrote in message
news:F7**********************************@microsof t.com...
I have an asp.net solution and one asp.net and a few asp projects included
to this solution.
I try to redirect from my asp.net page to asp page with Server.Transfer, I
get the following error:

Invalid path for child request
'http://IPAddess/MyAspNetApp/MyASPSite/index.asp'. A virtual path is
expected.

If I use Response.Redirect it does not go to the page. If I copy paste the
link in IE I am able to get the page.
Where is the problem?


Nov 14 '06 #3

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

Similar topics

5
by: Nedu N | last post by:
Hi All, I am facing a typical problem in my .NET application with the pop-up script messages. The thing is that its working fine when i run on my development machine but not running in expected...
8
by: Cathie | last post by:
Hi guys, I want to do a Server.Transfer to get to a second page, so that I may retrieve variables I have set in the first page. I'm doing that with the usual Server.Transfer("pagename", true). ...
9
by: Mark | last post by:
Hello I'm trying to use a Server.Transfer in a try-catch (I cannot put it outside the Try-Catch as it is nested deep within a component that is called in a try-catch loop) The problem is that the...
4
by: john | last post by:
I have an app that uses Server.Transfer from page1 to page2. page2 needs to be able to read all the values from page1's form. The problem is, if the user clicks the back button on page2 after a...
2
by: Tony Cheng | last post by:
When I use Server.Transfer from aspx A to aspx B, it's ok but when I click a button in aspx B, the expected behaviour is that Server.Transfer would be called again and the page would go from aspx B...
5
by: Guadala Harry | last post by:
I've been reading up on Server.Transfer as well as doing some testing, and it appears to always raise the ThreadAbortException error. On one hand I've read a bunch of promotional-type material...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
18
by: UJ | last post by:
Folks, We provide custom content for our customers. Currently we put the files on our server and people have a program we provide that will download the files. These files are usually SWF, HTML or...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
5
by: Richard | last post by:
I've developed a small ASPX template framework (based on Chun Li's article on CodeProject: http://www.codeproject.com/aspnet/headerfooter.asp#xx849313xx) which uses a IHttpModule to apply...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...

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.