Wednesday, March 21, 2012

Parser Error with GoDaddy

Hi guys, I am in the middle of a website using Ajax with Godaddy, and getting this error as soon as I try to display my default.aspx. I have searched for hours on this, and cannot figure it out. Here is the page error that I get.

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 'System.Web.Extensions, Version=2.0.0.0, 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)

Source Error:

Line 1: <%@dotnet.itags.org. Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>Line 2:Line 3: <%@dotnet.itags.org. Register Assembly="System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856Ad364E35"Line 4: Namespace="System.Web.UI" TagPrefix="asp" %>Line 5:


Source File:/default.aspx Line:3

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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.832; ASP.NET Version:2.0.50727.832

I have AjaxControlToolkit.dll, AjaxControlToolkit.pdb, System.Web.Extensions.Design.dll and System.Web.Extensions.dll in the /bin folder in the root. I tried to email godaddy with this error, of course they say they dont support 3rd party software and suggest I convert to the virtual server, yea right... This was working up until yesterday, I am baffled. But I can say, it seems godaddy is not a good choice to host on up to this point. Any Ideas anyone?? I have read the other treads, tried all the suggestions and still get this error.

I appreciate it...

Chris

Hi Srbytes,

Based on your description, your problem seems most likely caused by the Version property:

srbytes:

Line 3: <%@. Register Assembly="System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856Ad364E35"Line 4: Namespace="System.Web.UI" TagPrefix="asp" %>

You'd better modify it like below.

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

Based on my experience, I suggest that you should better add it to your web.config instead of each page.

Here is the url that you should folllow up: http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx

I hope this helps.

Best regards,

Jonathan

No comments:

Post a Comment