The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

2 posts, 0 answers
  1. Tony Melendez
    Tony Melendez avatar
    1 posts
    Member since:
    Nov 2009

    Posted 22 Aug 2011 Link to this post


    Hello Telerik,
    We are encountering an error that is very perplexing.
    we found how to correct this,
    if you would indicate why this fix works.  This was extremely hard to
    find.  Is there a best practice as to how this section should be formatted in web config going forward...to avoid this.

    Removing this block bypasses the error below, but it has to do with - Telerik.Web.UI.Skins.Web20.Grid.Web20.css:

    <

     

     

    telerik:RadStyleSheetManager ID="RadStyleSheetManagerPrePaidSettlements" runat="server">

     

     

     

    <StyleSheets>

     

     

     

    <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Web20.Grid.Web20.css" Assembly="Telerik.Web.UI" />

     

     

     

    </StyleSheets>

     

     

     

    </telerik:RadStyleSheetManager>


    in the web config.....to fix
    move this entry below after the 2nd verb entry and the error noted will be gone.

     

    <

     

     

    add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>

     

     

     

     



    <

     

     

    httpHandlers>

     

    <

     

     

    remove verb="*" path="*.asmx"/>

     

    <

     

     

    add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

     

    --place here..
    <

     

     

    add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

     

    <

     

     

    add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>

     

    <

     

     

    add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>

     

    <

     

     

    add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>

     

    <

     

     

    add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>

     

    <

     

     

    add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>

     

    <

     

     

    add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>

     

    <

     

     

    add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>

     

    </

     

     

    httpHandlers>

     




    System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
       at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
       at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
       at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
       at System.Type.GetType(String typeName)
       at Telerik.Web.UI.WebResource.Exists(HttpContext context, String path, String applicationPath)
       at Telerik.Web.UI.RadStyleSheetManager.OnPreRender(EventArgs e)
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 26 Aug 2011 Link to this post

    Hi Tony Melendez,

    We have encountered this exception before and as I see in the forums, the causes and solutions are different from yours.

    Additionally, Google gives a lot of results and I could not find anything similar as well.

    And to answer your question, there is no specific best practice for formatting the web.config except the standard rules. Regarding the placement of our handlers' registration there is also nothing that specific (example).

    Greetings,
    Simon
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top