473,785 Members | 2,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Regarding Server.Transfer ?

Dear All,

Error :

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

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

pls help me ASAP.
--

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

Server.Transfer ("childApplicat ion/receiveControls .aspx") or if this file is in the same directory then
Server.Transfer ("receiveContro ls.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.Redire ct).

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*******@take scm.com> wrote in message
news:OS******** ******@TK2MSFTN GP12.phx.gbl...
Dear All,

Error :

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

Server.Transfer ("http://localhost/childApplicatio n/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.netNoS pamM> wrote in
message news:uP******** ******@TK2MSFTN GP11.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.Redire ct).

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*******@take scm.com> wrote in message
news:OS******** ******@TK2MSFTN GP12.phx.gbl...
Dear All,

Error :

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

Server.Transfer ("http://localhost/childApplicatio n/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*******@disc ussions.microso ft.com> wrote in message
news:93******** *************** ***********@mic rosoft.com...
Just try

Server.Transfer ("childApplicat ion/receiveControls .aspx") or if this file is in the same directory then Server.Transfer ("receiveContro ls.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
2214
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 myErrorHandler
3
360
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 myErrorHandler
8
3902
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 need to avoid the extra round-trip to the client. I've tried Passing the page name, the full URL, and the instance of the handler class to the Transfer method, but everything gets me the same error 500. Any help would be appreciated.
2
1697
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 some software (currently it's essentially a single tier app - a giant meat ball - we're turning it into an n-tier architecture; gotta love ex-employees). One of the things we're looking at doing is using Remoting from the client to an appserver...
0
9645
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
9481
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10095
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,...
0
9953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8978
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5383
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
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.