Monday, March 26, 2012

AJAX Toolkit installation

Forgive my ignorance, however today we are working on migrating an ASP .Net site to the web server that is running IIS6. We have installed AJAX onto the server and it seems to be working fine, however now I am getting errors with the AJAX toolkit. Our sys admin says that Visual Studio needs to be installed on the server to install the toolkit. Now I know this is not true, correct?

This is the error that we are getting. I double checked that the .dll file has been copied over to the web's directory bin file.

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 4: Namespace="System.Web.UI" TagPrefix="asp" %>Line 5:Line 6: <%@dotnet.itags.org. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AJAXTools" %>

Thanks for the information

Yes, you are correct, visual studio does not need to be installed on the web server.

Did you add a reference to the .dll file? Just putting it in the bin folder is not enough, you have to reference it once it is there.


I do have these directives on the default.aspx page:

<%

@.PageLanguage="VB"AutoEventWireup="true"CodeFile="Default.aspx.vb"Inherits="_Default" %>

<%

@.RegisterAssembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"Namespace="System.Web.UI"TagPrefix="asp" %>

<%

@.RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="AJAXTools" %>

Now, does the toolkit have to be installed on the web server? It already is installed on the development computer and is working fine. The actually error message is stopping at the AjaxControlToolkit Register Assembly statement.


Do you have the toolkit DLL as a reference in your web project?
Thanks for that information. I just added a reference and I will check it out tomorrow morning.

No comments:

Post a Comment