Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 30th, 2013, 04:47 AM
Authorized User
 
Join Date: Aug 2012
Posts: 27
Thanks: 6
Thanked 0 Times in 0 Posts
Default Works on local machine, not on server: Could not load file or assembly 'AjaxControlTo

We implemented the AjaxControlToolkit in development, added some widgets and everything works fine.
The local machine is a win7 64-bit machine.

When we deploy the web application on our server (win server 2003, 32 bit) to IIS 5 we get the following exception:

Works on local machine, not on server: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.


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: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
Line 2: Debug="true" %>
Line 3: <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
Line 4: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Line 5: <html xmlns="http://www.w3.org/1999/xhtml">
 
Old April 30th, 2013, 04:55 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I hate to ask the obvious, but is the error message correct? Can the file not be found in the application's Bin folder? If the file isn't there you need to install the toolkit on the server or deploy the assembly to your site's bin.

If that doesn't help, you need to provide a lot more detail. Currently, yo just posted an error message which by itself isn't really useful.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old April 30th, 2013, 05:26 AM
Authorized User
 
Join Date: Aug 2012
Posts: 27
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Thank you for help.

I have installed Ajax control toolkit on my local computer and in the folder application is configured the folder bin with the AjaxControlToolkit.dll.

In the server I have installed ASPAJAXExtSetup.msi.

The folder application is T:\Inetpub\wwwroot\cs when T is the server mapping on my local computer.

This is the complete error:
PHP Code:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error 
Description
An error occurred during the parsing of a resource required to service this requestPlease review the following specific parse error details and modify your source file appropriately

Parser Error MessageCould not load file or assembly 'AjaxControlToolkit' or one of its dependenciesThe system cannot find the file specified.

Source Error


Line 2:      Debug="true" %>
Line 3:  
Line 4:  <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
Line 5:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Line 6:  <html xmlns="http://www.w3.org/1999/xhtml">
 

Source File: /cs/default.aspx    Line

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


WRNAssembly binding logging is turned OFF.
To enable assembly bind failure loggingset the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORDto 1.
Note
There is some performance penalty associated with assembly bind failure logging.
To turn this feature offremove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 


--------------------------------------------------------------------------------
Version InformationMicrosoft .NET Framework Version:4.0.30319ASP.NET Version:4.0.30319.1 
 
Old April 30th, 2013, 05:48 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I am not sure I follow. This for example:

and in the folder application is configured the folder bin with the AjaxControlToolkit.dll.

makes no sense to me at all.

>> when T is the server mapping on my local computer.

Does the server have a mapping to your work station that in turn serves as the root of the site in IIS on the server? I wouldn't do that. Copy the files *to* the server in a folder like C:\inetpub and make sure the web server has access to those files.

And is the Ajax Control toolkit assembly in your folder? What do you see when you go to the site in IIS, right-click its Bin folder and then choose Explore?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
cms9651 (April 30th, 2013)
 
Old April 30th, 2013, 05:57 AM
Authorized User
 
Join Date: Aug 2012
Posts: 27
Thanks: 6
Thanked 0 Times in 0 Posts
Default

thanks a lot, fine !

I resolved this issue. It was a simple one....I didn't create the virtual directory for my project on server so I was getting this error, after creating virtual directory, it started working fine.

This thread might help someone else as well.

PS: help me with this problem?
[C# net 4] AutoComplete TextBox
 
Old May 9th, 2013, 04:30 AM
Carpenter
Guest
 
Posts: n/a
Default

i am unable to install the ajax toolkit. could you tell me the best procedure to do so
 
Old May 9th, 2013, 04:56 AM
Authorized User
 
Join Date: Aug 2012
Posts: 27
Thanks: 6
Thanked 0 Times in 0 Posts
Default

try this:
http://stephenwalther.com/archive/20...rom-nuget.aspx





Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Remote SQL server Database from local machine Sheraz Khan SQL Language 1 May 27th, 2010 03:01 AM
Could not load file or assembly vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 27th, 2006 02:26 PM
storing an xml file on to my local machine ruchilalla J2EE 0 April 28th, 2005 01:33 AM
File system object in Local machine askenkray Classic ASP Components 1 January 21st, 2005 04:43 AM
Works fine on web server, not on dev machine eoffshore PHP How-To 1 July 9th, 2003 09:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.