Ajaxcontroltoolkit cannot be loaded?!

Discussion in 'General troubleshooting' started by ludopec, May 28, 2012.

  1. 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 module was expected to contain an assembly manifest.

    Source Error:

    Line 6:
    Line 7:
    Line 8: <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
    Line 9:
    Line 10:


    Source File: /Default.master Line: 8

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


    I'm having this error and I can't seem to figure out what is wrong. I have my ajaxtoolkit on my bin folder and I'm running my site from the root folder. Any thoughts about this.

    I have my site here
     
  2. Ok got this fixed. I searched the Kb and it seems my ajax is lower than the server's ajax. But now I have this error:

    Server Error in '/' Application.
    Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

    Source Error:

    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

    <%@ Page Language="C#" Debug="true" %>

    or:

    2) Add the following section to the configuration file of your application:

    <configuration>
    <system.web>
    <compilation debug="true"/>
    </system.web>
    </configuration>

    Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

    Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

    Stack Trace:

    [ViewStateException: Invalid viewstate.
    Client IP: 206.165.222.212
    Port: 36129
    Referer: http://isystemmd.com/(S(hmh0zei1w0oitxbqrs2vgjik))/default.aspx
    Path: /default.aspx
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
    ViewState: /wEPDwUKLTI3OTE1Njk4Ng9kFgJmD2QWAgIDD2QWBgIFD2QWAgIBD2QWBAIBD2QWAmYPZBYCAgEPZBYCZg9kFgICDQ8QDxYCHgdDaGVja2VkaGRkZGQCAw9kFgICAw9kFgICAw9kFgICAQ9kFgYCAQ9kFgICAQ9kFgICAQ88KwARAQEQFgAWABYAZAICD2QWAgIBD2QWAgIBDzwrABEBARAWABYAFgBkAgMPZBYCAgEPZBYCAgEPPCsAEQEBEBYAFgAWAGQCBw8PFgIeB1Zpc2libGVoZBYCAgMPPCsACgEADxYCHwFoZGQCCw88KwANAgAPFgIeC18hRGF0YUJvdW5kZ2QMFCsAAgUDMDowFCsAAhYMHgRUZXh0ZR4FVmFsdWVlHgdFbmFibGVkZx4KU2VsZWN0YWJsZWgeCERhdGFQYXRoBSQzNTViNTAwMS0zOTFjLTQ1ZTYtODA5Mi00OTM4Yjk1MDFiM2MeCURhdGFCb3VuZGcUKwAFBQ8wOjAsMDoxLDA6MiwwOjMUKwACFg4fAwUESG9tZR8EBQRIb21lHgtOYXZpZ2F0ZVVybAUrLyhTKGhtaDB6ZWkxdzBvaXR4YnFyczJ2Z2ppaykpL0RlZmF1bHQuYXNweB8FZx8GZx8HBSsvKHMoaG1oMHplaTF3MG9pdHhicXJzMnZnamlrKSkvZGVmYXVsdC5hc3B4HwhnZBQrAAIWDh8DBQVBZG1pbh8EBQVBZG1pbh8JBTcvKFMoaG1oMHplaTF3MG9pdHhicXJzMnZn...]

    [HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.]
    System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +235
    System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14
    System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +274
    System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
    System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
    System.Web.UI.HiddenFieldPageStatePersister.Load() +241
    System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +106
    System.Web.UI.Page.LoadAllState() +43
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
    System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
    System.Web.UI.Page.ProcessRequest() +78
    System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
    System.Web.UI.Page.ProcessRequest(HttpContext context) +49
    ASP._default_aspx.ProcessRequest(HttpContext context) +37
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
     
  3. Elshadriel

    Elshadriel Winhost Staff

    Last edited by a moderator: Oct 14, 2015

Share This Page