473,513 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PageRequestManagerServerErrorException when using server.transfer

We recently upgraded to ASP.NET 2 AJAX Beta 2 an since we are encountering
the following problem:

STEPS:

1- navigate to a page containing a UpdatePanel using SERVER.TRANSFER
2- click on a button (regardless of type: button, linkButton, imageButton)
3- (first) async call works fine

4 - click again to make second async call and somehow the page path becomes
invalid; the page name is correct but the path seems to belong to the
referer!! (Consequently a 404 server response is returned by the server. see
attached error message )

NOTE: accessing the page using a hyperlink (instead of server.transfer) does
not trigger any problem; unfortunetly our site navigation relies on
server.transfer and using hyperlinks is not an option.

Can you help?
--------------------------------------------------------------------------------

here is the message:

Sys.WebForms.PageRequestManagerServerErrorExceptio n: An unknown error
occurred while processing the request on the server. The status code returned
from the server was: 404
--------------------------------------------------------------------------------

here is the code of our simple test page:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="beta2Test.aspx.vb"
Inherits="restricted_beta2Test" %><%@ Register
Assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"Namespace="Microso ft.Web.UI" TagPrefix="asp"
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" runat="server">

<div>
</div>

<asp:ScriptManager runat="server">

</asp:ScriptManager>

<asp:UpdatePanel runat="server">

<ContentTemplate>

<asp:Label runat="server" ID="lbltext"></asp:Label>

<br />

<asp:TextBox runat="server" ID="txtText"></asp:TextBox>

<br />

<asp:LinkButton runat="server" ID="lnkBtnText" Text="submit"></asp:LinkButton>

</ContentTemplate>

</asp:UpdatePanel>

</form>

</body>

</html>

--------------------------------------------------------------------------------
Partial Class restricted_beta2Test

Inherits System.Web.UI.Page

Protected Sub lnkBtnText_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles lnkBtnText.Click

lbltext.Text &= ";" & txtText.Text

End Sub

End Class

TIA
Rachel
Nov 22 '06 #1
1 6962
Just to add this occurs when the first page is under a different folder
structure to the second page.

The final path when we receive the error is returned with the first pages
folder structure and the second (correct) pagename .aspx file.

Any help would be greatly appreciated as are whole site works with
server.transfer and we do not want to continue to develop for beta 1 as there
are so many changes in the namespaces, classes etc.

I have a demo site of the issue that I can email anyone who is interested.

TIA
Rachel

"Rachel" wrote:
We recently upgraded to ASP.NET 2 AJAX Beta 2 an since we are encountering
the following problem:

STEPS:

1- navigate to a page containing a UpdatePanel using SERVER.TRANSFER
2- click on a button (regardless of type: button, linkButton, imageButton)
3- (first) async call works fine

4 - click again to make second async call and somehow the page path becomes
invalid; the page name is correct but the path seems to belong to the
referer!! (Consequently a 404 server response is returned by the server. see
attached error message )

NOTE: accessing the page using a hyperlink (instead of server.transfer) does
not trigger any problem; unfortunetly our site navigation relies on
server.transfer and using hyperlinks is not an option.

Can you help?
--------------------------------------------------------------------------------

here is the message:

Sys.WebForms.PageRequestManagerServerErrorExceptio n: An unknown error
occurred while processing the request on the server. The status code returned
from the server was: 404
--------------------------------------------------------------------------------

here is the code of our simple test page:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="beta2Test.aspx.vb"
Inherits="restricted_beta2Test" %><%@ Register
Assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"Namespace="Microso ft.Web.UI" TagPrefix="asp"
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" runat="server">

<div>
</div>

<asp:ScriptManager runat="server">

</asp:ScriptManager>

<asp:UpdatePanel runat="server">

<ContentTemplate>

<asp:Label runat="server" ID="lbltext"></asp:Label>

<br />

<asp:TextBox runat="server" ID="txtText"></asp:TextBox>

<br />

<asp:LinkButton runat="server" ID="lnkBtnText" Text="submit"></asp:LinkButton>

</ContentTemplate>

</asp:UpdatePanel>

</form>

</body>

</html>

--------------------------------------------------------------------------------
Partial Class restricted_beta2Test

Inherits System.Web.UI.Page

Protected Sub lnkBtnText_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles lnkBtnText.Click

lbltext.Text &= ";" & txtText.Text

End Sub

End Class

TIA
Rachel
Nov 23 '06 #2

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

Similar topics

3
2157
by: Nagash01WS6 | last post by:
Im working on writing an FTP application in C# to get a good feeling for the .NET language and how threading / networking classes all work. Thus far I have it working for the most part in PASV...
5
7803
by: Julien C. | last post by:
Hi all, I have an "EditeItem.aspx" page which lets me edit properties of an "Item". In the OnClick() event of my Save button, I do save Item changes to the database and then I redirect the user...
1
1837
by: Terry Mulvany | last post by:
Grettings, Normally I can use Request.RawUrl to get the 'current' page (amongst many other things). But in the case of using a Server.Transfer but the path from the root of the site . So if...
11
5995
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...
3
2464
by: Siobhan | last post by:
I am getting the following error: Run-time exception thrown : System.Web.HttpException - Session state can only be used when enableSessionState is set to true, either in a configuration file or in...
2
3737
by: David Berman | last post by:
It seems that my site is losing session information when using Server.Transfer. I have a page called PictureGallery.aspx. It takes an argument which is an index id, so it would look like...
4
4112
by: Jeremy | last post by:
I am getting an error Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occured while processing the request on the server. The status code returned from the server was:500. ...
1
3456
by: =?Utf-8?B?SnVhbiBNYXJjaWFs?= | last post by:
I try to put on production an application asp.net 2.0, across IIS 6.0. This app has a process that read any binary file. This file is in external directory (same disk) of asp.net app. This file is...
1
1965
by: Chris Zopers | last post by:
Hello, I have an asp:UpdatePanel with some controls in it. The UpdatePanel has a Timer as a trigger and a button inside the UpdatePanel as a trigger. All works fine, but sometimes I get the...
0
7388
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,...
1
7111
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...
0
5692
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,...
1
5095
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...
0
4751
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...
0
3240
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...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
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...

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.