Missing Assembly Reference while using NATUPNPLib in .NET 3.5
<p>I am having trouble using the <code>NATUPnPLib</code>. I have a piece of code that works perfectly fine while the project is running on .Net 4. But, unfortunately when I try the same piece of code in .Net3.5, I get some assembly reference errors while building the project.</p>

<pre><code>UPnPNATClass upnpnat = new UPnPNATClass();

IStaticPortMappingCollection mappings = upnpnat.StaticPortMappingCollection;
</code></pre>

<p>And i get the following build error:</p>

<pre><code>The type or namespace name 'UPnPNATClass' could not be found (are you missing a using directive or an assembly reference?
</code></pre>

<p>Although i have added the reference to the NatUPnP Library from Add Reference --> COM</p>

<p>I have scoured the internet to find a solution but i was unable to find any help. I hope someone here might be able to help out.</p>

<p><strong>P.S:</strong> I followed this <a href="http://pietschsoft.com/post/2009/02/05/NET-Framework-Communicate-through-NAT-Router-via-UPnP.aspx" rel="nofollow">Article about NAT Router and UPnP</a></p>

<p>Thanx &amp; Regards.</p>
