473,763 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

server.transfer scope

I have 2 ASP.Net solutions/projects. I want to use Server.Transfer in one
solution/project to call the aspx webform in the second solution/project.
When I try it I get an error message. My call is straightforward :

Server.Transfer ("/ServerTransferU tility/Server.aspx")

The call finds my target page but errors out on its first line:

<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="Ser ver.aspx.vb" Inherits="Serve rTransferUtilit y.Henrico.Serve r"
%>

The inner generated is: "Parser Error: Could not load type
'ServerTransfer Utility.Henrico .Server'." This is the error spewed out in the
browser window. The other error generated in the client page's code-behind
page is: "Error executing child request for
/ServerTransferU tility/Server.aspx" which is thrown as a result of the first
error.

Any clues on how I can work through this problem? Searching around I've
picked up some hints that Server.Transfer may be restricted to an
"applicatio n" level scope though the reason for this restriction isn't
intuitively obvious.

Thanks in advance for your help.


Nov 19 '05 #1
1 1976
Well the reason could be as you mentioned, Server.transfer is application
level scope. When you do Server.Transfer , I guess asp.net executes the
target webform and returns the result to the browser. In .NET each
application is run under its own application domain. I think Server.Transfer
is restricted to application level scope, because one application domain can
not access the code of another application domain.Where as
Response.Redire ct, involves two round trips, the second one does a HTTP Get
request. So, you can do Response.Redire ct without any restrictions

--
Kumar Reddi
http://kumarreddi.blogspot.com

"Craig Banks" <ba***@co.henri co.va.us> wrote in message
news:u6******** ******@tk2msftn gp13.phx.gbl...
I have 2 ASP.Net solutions/projects. I want to use Server.Transfer in one
solution/project to call the aspx webform in the second solution/project.
When I try it I get an error message. My call is straightforward :

Server.Transfer ("/ServerTransferU tility/Server.aspx")

The call finds my target page but errors out on its first line:

<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="Ser ver.aspx.vb" Inherits="Serve rTransferUtilit y.Henrico.Serve r" %>

The inner generated is: "Parser Error: Could not load type
'ServerTransfer Utility.Henrico .Server'." This is the error spewed out in the browser window. The other error generated in the client page's code-behind
page is: "Error executing child request for
/ServerTransferU tility/Server.aspx" which is thrown as a result of the first error.

Any clues on how I can work through this problem? Searching around I've
picked up some hints that Server.Transfer may be restricted to an
"applicatio n" level scope though the reason for this restriction isn't
intuitively obvious.

Thanks in advance for your help.



Nov 19 '05 #2

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

Similar topics

7
1583
by: Marco J.L. | last post by:
Hello, how can I transfer a variable from a function to the part after the function? thnx, Marco J.L.
3
2161
by: JT | last post by:
is there a way to clear out the request.form collection, or the entire request object, for that matter?? im using server.transfer and this can be troublesome in cases where you need the request.form items to be reset. tia jt
0
1383
by: JT | last post by:
ok here is my scenario - using model, vew , controller architecture: -- user submits the view page to the controller -- controller issues a server.execute on a model page to update the changed information -- upon successful updating of the the information, the controller issues a server.transfer back to the view -- everything is fine at at this point, however, if the user hits the re-submits the page at this point, the original items...
6
2238
by: StephenMcC | last post by:
Hi All, Got a quick query in relation to the Server.Transfer method available in IIS 5+/ASP. I've got an issue where I want to take a portion of an online app and extract this out into a web site on its own, so I will end up having two web sites. This planned to aid problems we've been having with performance, as if the portion (which is an app in its own right) has problems we then have to restart the whole site and so bring everything...
4
2116
by: Harsh Thakur | last post by:
Hi, I'd like to know the performance related differences between Response.Redirect and Server.Transfer. I'd like to redirect the user to a different page. I can either do a Response.Redirect("URL") or a Server.Transfer("URL"). So I'd like to find out which is more efficient/better. Can anyone please tell me or give any pointers to links on the web? Thanks & Regards
9
4612
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 Server.Transfer always throws the ThreadAbortException. MSDN acknowledges that this is a unque exception that will be automatically rethrown - i.e. it can't be swallowed. Does anyone know if there is extar code I can write (maybe something in the...
5
2583
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 touting the benefits of Server.Transfer and none of them mention ThreadAbortException - but the MSDN documentation says Server.Transfer will always cause that exception - by design - and that the work-around is to not use Server.Transfer (and to use...
11
6044
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 falls into an infinite loop and later a StackOverflow Exception. I need to do this and not a Response.Redirect or a transfer with the bool in false. My problem is that this KB is saying that this problem should be solved with ServicePack 1 of...
8
3900
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.
0
9563
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
9386
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,...
0
9998
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
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
9822
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...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
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.