Search This Blog

Loading...
Showing posts with label AJAX.NET. Show all posts
Showing posts with label AJAX.NET. Show all posts

Thursday, November 12, 2009

Method not found: 'Void System.Web.UI.ScriptManager.RegisterStartupScript

Deploy a running web application from one windows 2003 server to another windows 2003 server. The application is running asp.net 2.0 framework with Ajax.net v1, MSSQL 2005.
After deploy everything and run the application, Error message

Method not found: 'Void System.Web.UI.ScriptManager.RegisterStartupScript(System.Web.UI.Page, System.Type, System.String, System.String, Boolean)'

Situation:
In the bin folder, we deploy together with
AjaxControlToolkit.dll
AjaxControlToolkit.pdb
System.Web.Extensions.Design.dll
System.Web.Extensions.dll

After look around and found that the server already installed with the same version but the strange thing is the file size are different from the one i have in bin folder. The first thing can thought of is reinstall the ajax.net.

No luck, after the ajax.net reinstallation, it's not work. Still the same error message:

Method not found: 'Void System.Web.UI.ScriptManager.RegisterStartupScript(System.Web.UI.Page, System.Type, System.String, System.String, Boolean)'

Try to delete all 4 dlls
AjaxControlToolkit.dll
AjaxControlToolkit.pdb
System.Web.Extensions.Design.dll
System.Web.Extensions.dll
from the bin folder but still same error show. So, i undo the deletion.

Try to google around and look for useful suggestion but no luck. All post stated that working after the ajax.net re installation.

Finally, i uninstall the ajax.net from the server and let the application use the 4 dlls
AjaxControlToolkit.dll
AjaxControlToolkit.pdb
System.Web.Extensions.Design.dll
System.Web.Extensions.dll
in the bin files.

It solve my problem.

Hope this sharing helps.

Monday, August 24, 2009

Sys.WebForms.PageRequestManagerServerErrorException: an unknow error occured while processing the request on the server. ..status code returned .. 500

My situation:
Environment: ASP.NET, AJAX.NET and MySQL DB

I got error return when using one of the form written in AJAX.NET when calling MySQL Stored Procedure

Sys.WebForms.PageRequestManagerServerErrorException: an unknow error occured while processing the request on the server. the status code returned from the server was: 500



Well, after check around i found out that the problem is in the MySQL Stored Procedure case sensitive issue. Change the case and problem solved!

Monday, December 31, 2007

<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31b...

Facing issue when my team member try to upload compiled source code from her development machine to new production server.

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

</httphandlers>
<httpmodules>
<add type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="ScriptModule">
</httpmodules>
</SYSTEM.WEB>




I've facing this issue before here. Anyway, here is how the problem can be solved.
  1. Copy AjaxControlToolkit.dll and AjaxControlToolkit.pdb version 1.0.61025.0 from my development machine to my ASP.NET App bin folder. (i install my AjaxControlToolkit in C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\AjaxControlToolkit)
  2. Copy System.Web.Extensions.dll (C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions) and System.Web.Extensions.Design.dll (C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions.Design) from my development machine to my ASP.NET App bin folder.
Done.

Sunday, December 16, 2007

Only one instance of a ScriptManager can be added to the page.

Error message "Only one instance of a ScriptManager can be added to the page." when trying to access my web application. Compiled have no error.



The reason for this error is i have include more than one (my case is two) ScriptManager in the same page. In my case in master page and in another page (login.aspx) that include master page.

To solve it, simple remove the ScriptManager in login.aspx. Problem solved.

Tuesday, October 9, 2007

Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of ..........

When deploy a ASP.NET application to a new server, error message below shown:

Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

invoice software

Here is the scenario:
My ASP.NET App use AJAX.NET and ASP.NET AJAX Control Toolkit
My application server have NO AJAX.NET and ASP.NET AJAX Control Toolkit installed.





To solve my problem with no AJAX.NET install in my application server:

  1. Copy AjaxControlToolkit.dll and AjaxControlToolkit.pdb version 1.0.61025.0 from my development machine to my ASP.NET App bin folder. (i install my AjaxControlToolkit in C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\AjaxControlToolkit)

  2. Copy System.Web.Extensions.dll (C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions) and System.Web.Extensions.Design.dll (C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions.Design) from my development machine to my ASP.NET App bin folder.
Run the application and it's works.




Alternatively, we can solve the problem by installing AJAX.NET and AjaxControlToolkit to the server.