An unexpected FileNotFound failure occurred loading assembly: Could not load file or assembly - InfoPath Dev
in

InfoPath Dev

An unexpected FileNotFound failure occurred loading assembly: Could not load file or assembly

Last post 01-07-2013 09:17 AM by Jim Cantwell. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-03-2013 06:33 AM

    An unexpected FileNotFound failure occurred loading assembly: Could not load file or assembly

    Hello,

    We are in the process of migrating from SP 2007 to SP 2010 and one of my InfoPath forms has an issue.  The form was developed in InfoPath 2007, is web enabled and has some C# code in it.  I've updated several data connections and I can create a new form with a browser and successfully save it.  However, if I try to reopen the form I get an error.  When I turn diagnostic logging this is the error: 

    An unexpected FileNotFound failure occurred loading assembly: Could not load file or assembly 'file:///C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\Features\FT-01-c22f53f9-bf48-ce8b-8e2d-6d89d5d4fbd7\ReleaseReviewForm01.dll' or one of its dependencies.

     If I look in the 14 hive, I can find the missing dll in every solution folder under the FT-01-c22... directory.  The contents of my Feature.xml file are below.

    Can anyone suggest a solution to this problem?

    Thanks,

     Dave


    <?xml version="1.0" encoding="UTF-8" standalone="true"?>
    -<Feature xmlns="http://schemas.microsoft.com/sharepoint/" ReceiverAssembly="Microsoft.Office.InfoPath.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" ReceiverClass="Microsoft.Office.InfoPath.Server.Administration.XsnFeatureReceiver" DefaultResourceFile="ipfscore" Scope="Site" Version="1.0.0.0" Description="$Resources:ipfscore,XsnFeatureDescription;" Title="Document Marking" Id="c22f53f9-bf48-ce8b-8e2d-6d89d5d4fbd7">

     -<ElementManifests>

     <ElementManifest Location="Elements.xml"/>

    <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2433\ReleaseReviewForm01.dll"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2433\ReleaseReviewForm01.pdb"/>

     <ElementFile Location="solution.xsn"/> <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2433\solution.xsn"/>

    <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2431\ReleaseReviewForm01.dll"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2431\ReleaseReviewForm01.pdb"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2431\solution.xsn"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2427\ReleaseReviewForm01.dll"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2427\ReleaseReviewForm01.pdb"/>

    <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2427\solution.xsn"/>

    <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2425\ReleaseReviewForm01.dll"/>

    <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2425\ReleaseReviewForm01.pdb"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2425\solution.xsn"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2422\ReleaseReviewForm01.dll"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2422\ReleaseReviewForm01.pdb"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2422\solution.xsn"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2419\ReleaseReviewForm01.dll"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2419\ReleaseReviewForm01.pdb"/>

     <ElementFile Location="solution.xsn.1.0.0.2433.1.0.0.2419\solution.xsn"/>

     </ElementManifests>

     -<Properties>

    <Property Value="FT-01-c22f53f9-bf48-ce8b-8e2d-6d89d5d4fbd7" Key="FeatureName"/>

     <Property Value="Document Marking.xsn" Key="OriginalFileName"/>

    <Property Value=".1.0.0.2433" Key="FeatureVersion"/>

    </Properties>

     -<ActivationDependencies>

     <ActivationDependency FeatureId="C88C4FF1-DBF5-4649-AD9F-C6C426EBCBF5"/>

     </ActivationDependencies>

     </Feature>

  • 01-03-2013 08:10 AM In reply to

    Re: An unexpected FileNotFound failure occurred loading assembly: Could not load file or assembly

    Download the new xml you saved open with notepad or other text editor.  In the mso-infoPathSolution PI node, is the href pointing to the correct xsn location?

  • 01-03-2013 10:59 AM In reply to

    Re: An unexpected FileNotFound failure occurred loading assembly: Could not load file or assembly

    Jim,

     Thank you for the response.  I believe the href is correct.

    The line of XML looks like this:

     PIVersion="1.0.0.0" href="https://sharepoint.abc,def/FormServerTemplates/Document%20Marking.xsn"?>

    And the InfoPath xsn is there. 

     Can you think of anything else I should check?

     Thanks,

    Dave

  • 01-04-2013 12:37 PM In reply to

    Re: An unexpected FileNotFound failure occurred loading assembly: Could not load file or assembly

    Fixed by not doing a Quick Publish and instead selecting Publish and Publish form to SharePoint Library.  Deactivating the feature and re-activating it.
  • 01-07-2013 09:17 AM In reply to

    Re: An unexpected FileNotFound failure occurred loading assembly: Could not load file or assembly

    Thanks for the info.  The SharePoint timer job that updates the form template must not have completed successfully.  It would be nice if it gave an error when the quick publish was done.

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.