Using ExcelDNA form network share

52 views
Skip to first unread message

johansc...@gmail.com

unread,
Feb 26, 2007, 3:00:17 PM2/26/07
to ExcelDna
Hi there,

When I start the xll file form a network location Excel 2003 and 2007
crashes and will restart. I tried different locations and shares, all
the same. Locally on any pc it works fine. I've routed our policy with
templates to a networkpath for optimal management, but now I have to
copy the files to the local pc.

Johan

gov...@icon.co.za

unread,
Feb 27, 2007, 7:22:01 AM2/27/07
to ExcelDna
Hi Johan,

Over a network path there is a restriction on the .Net code-access
security permissions, causing the exception you see.

There is a workaround whereby you locally 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 ].
Basically you 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.

It is not so easy to handle this better in ExcelDna. The exception
occurs before any user code runs. I would have to write a completely
unmanaged shim and loader to be able to address this properly.

Regards,
Govert

johansc...@gmail.com

unread,
Mar 15, 2007, 5:23:38 PM3/15/07
to ExcelDna
That explains! Thans Govert.

Johan

> > Johan- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
0 new messages