Showing posts with label ajaxtoolkit. Show all posts
Showing posts with label ajaxtoolkit. Show all posts

Monday, March 26, 2012

PageRequestManagerParserErrorException in my AJAX Web Page

Hi All,

I have started to get this intermittent error when I try to open my web site. The starting page uses the Accordion AJAXToolKit Control and a couple of update panels. I noticed that the PageRequestManagerParserErrorException error does not occur every time. Has anyone encountered this error and figured out the solution to this problem?

Thanks in advance

RK

See this article:

http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx


Great thanks. That helped me out. For others benefit I will just post a short blurb of the problem and the resolution. To start with the URL above is very informative.

The problem was that I am using a login control where the user enters the username and password and logs into my website. In my Login Control I had set the DestinationPageUrl to the page I wanted to display after the user was successfully logged in. The problem was occuring when that page was being displayed as it has a few update panels and I guess the client browser was receiving html that it did not know how to render. Thus the ParseRequestManagerParserErrorException.

Resolution: I changed my code to handle the "LoggedIn" event of the Login Control. I do an explicit Response.Redirect to display the page I want to display. This fixed the problem.

I am wondering if the Login Contol does a Server.Transfer instead of response.redirect. I know that the URL above mentions that a Server.Transfer can cause the problem to occur. Anywho I am happy :)

Reddy

Wednesday, March 21, 2012

Parser Error Message: Could not load file or assembly AjaxControlToolkit or one of its dep

Hi,

I am using ASP.Net 2.0 with AJAX Extensions 1.0. And one of my aspx was using 2 of the ajaxtoolkit namely the ModalPopupExtender and RoundedCornersExtender. But why is it that when I will access the page from the web server the error below will display on the page. It's really frustrating because there's no problem when running locally in my machine thru Visual Web Developer 2005 Express Edition.

I hope you could help me figuring the problem.

Thanks

Error message:

Server Error in '/' Application.

Parser Error

Description:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message:Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 1: <%@dotnet.itags.org. Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>Line 2: <%@dotnet.itags.org. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>Line 3: Line 4: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Source File:/pfadmin/test.aspx Line:2

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded.

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

You need to deploy the AjaxControlTookit (DLL) to the server (in your bin directory or in the GAC).

-Damien


Hi hifiger2004,

You can just include the AjaxControlToolkit.dll into the BIN folder of your website/webapplication. There is no need to deploy it to the GAC. (Maybe you don't have the right to do that.)

Also check if some plain ajax functionallity works on the webserver!!! For example: A simple updatePanel holding a datetime.now, and a button to trigger it. Note that the ajax functionality must work in order to use the AjaxControl Toolkit.

Please let me know how it worked out!
Kind regards,
Wim


You have to include the AjaxControlToolkit.dll into the bin folder of your webapplication

Let me know if this helpful to you