Monday, February 14, 2011

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.


So.. I decided to play around with AJAX...just because I run 2 years behind everyone else in the world... anyways.. the very first compile, I get this error...


Server Error in '/Ajax' 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:


Line 30:    
Line 31:      
Line 32:        
Line 33:      
Line 34:    

Source File: ***\Visual Studio 2010\Projects\Ajax\web.config    Line: 32

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.


=== Pre-bind state information ===
LOG: User = ***
LOG: DisplayName = System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///***/Visual Studio 2010/Projects/Ajax/
LOG: Initial PrivatePath = ***\Visual Studio 2010\Projects\Ajax\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: ***\Visual Studio 2010\Projects\Ajax\web.config
LOG: Using machine configuration file from ***\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///***/Temporary ASP.NET Files/ajax/10e788b7/30cb6ce9/System.Web.Extensions.DLL.
LOG: Attempting download of new URL file:///***/Temporary ASP.NET Files/ajax/10e788b7/30cb6ce9/System.Web.Extensions/System.Web.Extensions.DLL.
LOG: Attempting download of new URL file:///***/Visual Studio 2010/Projects/Ajax/bin/System.Web.Extensions.DLL.
LOG: Attempting download of new URL file:///***/Visual Studio 2010/Projects/Ajax/bin/System.Web.Extensions/System.Web.Extensions.DLL.
LOG: Attempting download of new URL file:///***/Temporary ASP.NET Files/ajax/10e788b7/30cb6ce9/System.Web.Extensions.EXE.
LOG: Attempting download of new URL file:///***/Temporary ASP.NET Files/ajax/10e788b7/30cb6ce9/System.Web.Extensions/System.Web.Extensions.EXE.
LOG: Attempting download of new URL file:///***/Visual Studio 2010/Projects/Ajax/bin/System.Web.Extensions.EXE.
LOG: Attempting download of new URL file:///***/Visual Studio 2010/Projects/Ajax/bin/System.Web.Extensions/System.Web.Extensions.EXE.

And began the painful process of debugging and screaming and kicking...

DOH !!

I did not install the AJAX extension

I need to install ASP.NET 2.0 AJAX Extensions 1.0

Once I did that... all was well in my world once more...

1 comment:

Anonymous said...

Just wanted to say thank you for your post. I was having trouble with this after re-installing visual studio and didn't realize I needed to re-install the original ajax extensions.

Thanks again!