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

Regarding Server.Transfer ?

Dear All,

Error :

Invalid path for child request
'http:///localhost//childApplication//reciveControls.aspx'. A virtual path
is expected.
Is this statement is valid ?

Server.Transfer("http://localhost/childApplication/reciveControls.aspx",true
);

pls help me ASAP.
--

Thanx
Gopal Prabhakaran
Nov 18 '05 #1
4 1241
Just tr

Server.Transfer("childApplication/receiveControls.aspx") or if this file is in the same directory then
Server.Transfer("receiveControls.aspx")

Thanks
-Shan
Nov 18 '05 #2
Is this, in fact, a child application? If so, there are some pieces of the
plumbing that are going to fight you when you attempt this transfer. The
main purpose of server.transfer is to transfer a person to another page in
the same app, without forcing another trip (ala Response.Redirect).

The real question is, what are you trying to do? If this is a method to
facilitate single sign on, for example, you can do that by using the same
cookie name, in forms auth, and setting the machine keys to the same value
(rather than auto gen). You cannot easily pass session values, but you can
at least avoid a second sign in.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Gopal Prabhakaran" <pr*******@takescm.com> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl...
Dear All,

Error :

Invalid path for child request
'http:///localhost//childApplication//reciveControls.aspx'. A virtual path
is expected.
Is this statement is valid ?

Server.Transfer("http://localhost/childApplication/reciveControls.aspx",true );

pls help me ASAP.
--

Thanx
Gopal Prabhakaran

Nov 18 '05 #3
Greg,

I don't even think it's possible to use Server.Transfer to a location
outside of the current Application.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:uP**************@TK2MSFTNGP11.phx.gbl...
Is this, in fact, a child application? If so, there are some pieces of the
plumbing that are going to fight you when you attempt this transfer. The
main purpose of server.transfer is to transfer a person to another page in
the same app, without forcing another trip (ala Response.Redirect).

The real question is, what are you trying to do? If this is a method to
facilitate single sign on, for example, you can do that by using the same
cookie name, in forms auth, and setting the machine keys to the same value
(rather than auto gen). You cannot easily pass session values, but you can
at least avoid a second sign in.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Gopal Prabhakaran" <pr*******@takescm.com> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl...
Dear All,

Error :

Invalid path for child request
'http:///localhost//childApplication//reciveControls.aspx'. A virtual path is expected.
Is this statement is valid ?

Server.Transfer("http://localhost/childApplication/reciveControls.aspx",true
);

pls help me ASAP.
--

Thanx
Gopal Prabhakaran


Nov 18 '05 #4
Dear Shan
Its in different web application
thanx
prabhakaran.g
"Shan" <an*******@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
Just try

Server.Transfer("childApplication/receiveControls.aspx") or if this file is in the same directory then Server.Transfer("receiveControls.aspx")
Thanks,
-Shan

Nov 18 '05 #5

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

Similar topics

3
by: Samuel | last post by:
I wrote a very simple httpmodule and tried to compile it with no success. This is my code: ============== Imports System Imports System.Web Imports Microsoft.VisualBasic NameSpace...
3
by: Samuel | last post by:
I wrote a very simple httpmodule and tried to compile it with no success. This is my code: ============== Imports System Imports System.Web Imports Microsoft.VisualBasic NameSpace...
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...
2
by: Ryan | last post by:
My apologies if this is not the forum to post questions regarding .NET Remoting, but I figured WebServices would be the most appropriate forum of the bunch. We're currently completely re-arching...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.