I am having trouble using the NATUPnPLib
. 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.
UPnPNATClass upnpnat = new UPnPNATClass();
IStaticPortMappingCollection mappings = upnpnat.StaticPortMappingCollection;
And i get the following build error:
The type or namespace name 'UPnPNATClass' could not be found (are you missing a using directive or an assembly reference?
Although i have added the reference to the NatUPnP Library from Add Reference --> COM
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.S: I followed this Article about NAT Router and UPnP
Thanx & Regards.