Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 18, 2013 02:26 PM by wood923
Jan 18, 2013 02:01 PM|LINK
I have a web application that is throwing this error only for a single page, I'm able to login and do everything else, but when attempting to access a particular page the following exception is thrown:
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 'System.Web.Extensions, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)
I'm not sure why it's trying to load version 4 as this website is built against .Net 2.0, I'm also not sure why every other page would work just fine but this one would throw the exception since nothing has changed. I've searched and tried replacing
the assmebly in the bin folder with version 4, but the rest of the site fails to load when I do this.
I also searched for the file and copied it to C:\Windows\Microsoft.NET\Framework\v2.0.50727, to no avail.
@Edit: Also worth noting is that this work just fine when I debug in VS, no problems with any page.
Jan 18, 2013 02:26 PM|LINK
So no idea why this worked. But I just rebuilt the site to a different location and recreated the website and everything fell into place.