


using System;
using System.Collections.Generic;
using System.Text;
namespace upnp
{
class Program
{
static void Main(string[] args)
{
NATUPNPLib.UPnPNATClass upnpnat = new NATUPNPLib.UPnPNATClass();
NATUPNPLib.IStaticPortMappingCollection mappings = upnpnat.StaticPortMappingCollection;
//Error Here
// PS: My mapping is NOT NULL
mappings.Add(9604, "TCP", 9604, "192.168.1.102", true, "test");
Console.Read();
}
}
}
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in upnp.exe
Additional information: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)