<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Referenced dll keeps disappearing</title><link>https://www.infopathdev.com:443/forums/thread/68686.aspx</link><pubDate>Mon, 25 Jul 2011 12:58:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68686</guid><dc:creator>millie01</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68686.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=68686</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have developed an InfoPath 2007 form with custom code behind the form. I add a reference to an existing project I have created which handles some extra functionality for my form when I submit it. This project references OWSSUPP.dll (to create a word doc the SharePoint way). After adding this reference I sign the form with a certificate and build the form. When I run it and it gets to the point where it runs the code in the referenced project I keep getting this error: Could not load file or assembly &amp;#39;Interop.OWSSUPP.dll .........&amp;#39; or one of its dependencies. The system cannot find the file specified.&lt;/p&gt;
&lt;p&gt;The funny thing is that when I add the project reference I see both the project dll and OWSSUPP.dll embedded in the form (OWSSUPP.dll has copy local set to true in the referenced project). As soon as I&amp;nbsp;sign the form with a certificate and build it OWSSUPP.dll disappears and I get the error. If I manually add OWSSUPP.dll the form errors as it&amp;nbsp;adds the .dll twice in the manifest. Anyone know why it could be disappearing and how to fix it? I&amp;#39;ve been searching for a solution&amp;nbsp;for a while and haven&amp;#39;t had any luck.&lt;/p&gt;
&lt;p&gt;Thanks in advance&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>