I doubt it actually has to do with UNC paths - it is more likely because your code is loaded from a network location. You can check this by mapping the network drive to a drive letter and repeating your test. I think the outcome will be the same.
The issue has to do with the .NET CAS security for network locations.
What version of .NET are you targeting (according to the RuntimeVersion attribute in your .dna file)?
Under .NET 2.0, code from a network location is not trusted by default. You can however add some CAS settings to allow the location to be trusted. The keyword to search for in this group would be "caspol". Basically you have to set the share to full trust - check this blog entry: Using CasPol to fully trust a share [http://blogs.msdn.com/shawnfa/archive/2004/12/30/344554.aspx ].
To do so, run the following from a Visual Studio command prompt:
CasPol.exe -m -ag 1.2 -url file://MyServer/MyShare/* FullTrust
You can also make the same change using the graphical .Net 2.0 Configuration tool in the control panel.
Under .NET 4.0, the default security has changed, and I actually don't expect problems loading over the network. If this is the version you are running under, my only suggestion would be to make sure you have no extra copy of ExcelDna.Integration.dll in that directory - you should not redistribute this file separately with your add-in.
Regards,
Govert
________________________________________
From: exce...@googlegroups.com [exce...@googlegroups.com] on behalf of aberglas [aber...@gmail.com]
Sent: 04 July 2012 02:19 AM
To: Excel-DNA
Subject: [ExcelDna] Running .xll from //unc path
Hello Govert,
Thanks,
Anthony
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To post to this group, send email to exce...@googlegroups.com.
To unsubscribe from this group, send email to exceldna+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/exceldna?hl=en.