Parser Error Message: Could not load file or assembly 'AjaxControlToolkit.dll' or one of its depende

Posted by Sandhya under ASP.NET AJAX on 9/23/2010 | Points: 10 | Views : 11690 | Status : [Member] | Replies : 4
hi
I'v developed ajax-enabled aspx page for registration form.I wrote a simple code to check username availability with pagemethod assistance.I'v added "AjaxControlToolkit.dll" also.It is showing the error code line.


Server Error in '/AJX' 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.dll' or one of its dependencies. The system cannot find the file specified.

Source Error:

[No relevant source lines]


Source File: none Line: 0

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit.dll' 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.3603; ASP.NET Version:2.0.50727.3614



This is the error I'm getting.

Please help me to resolve it

thanks in advance




Responses

Posted by: SheoNarayan on: 9/23/2010 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Have you referenced the .dll in your project by right clicking the Reference ... and Add Reference ?

Your "AjaxControlToolkit.dll" should be in the bin folder of your application.

Hope this will solve the problem, if not look at this post http://www.eggheadcafe.com/community/aspnet/17/10170086/could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-dependencies.aspx

Thank you.

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Sandhya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandhya on: 9/24/2010 [Member] Starter | Points: 25

Up
0
Down
Hi..
I added reference also but its showing the same response.Also I created Virtual directory for the application but no use.
Here is the code related zip file attachment.
pls.. chek it and
let me know where the problem is..and guide me to resolve it

Thanks in advance
 Download source file

Sandhya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: SheoNarayan on: 9/24/2010 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Your code is not building properly as some of the code behind methods (click) doesn't exists.

I tried to exclude those files and it build property and I am able to run the application as well.

I saw your CreateAccount.aspx page, I feel this needs improvement in the JavaScript function. Look at this article http://www.dotnetfunda.com/articles/article454-using-pagemethods-and-json-in-aspnet-ajax-.aspx where I have explained how to use PageMethod.

Hope this will help you to solve the problem.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Sandhya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandhya on: 9/24/2010 [Member] Starter | Points: 25

Up
0
Down
You are correct. I didnt code it properly.I Checked it.Ur reply z helpful 2 me.ThanQ

Sandhya, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response