<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running dll from network drive in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/running-dll-from-network-drive/m-p/2766390#M63976</link>
    <description>&lt;P&gt;&lt;FONT color="#000000" size="2" face="arial,helvetica,sans-serif"&gt;The .NET framework configuration tool is called CASPOL.exe. There&amp;nbsp;is used to be a GUI version of it with .NET 1.1. With later version of .NET, it is command line tool only for regular .NET installation.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;Googling&amp;nbsp;"CASPOL.EXE" will bring you to tons of links on how to use this tool to configure a .NET code group for its access security.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;For a quick start, to allow .NET code to be loaded from a folder on the network drive, you simply need to configure a network folder as a code group, and give it certain trust. I'd just give it FullTrust, but the folder is configured in file system this way, so that all users can only read and only dedicated user can read/write (e.g. update the DLLs in that folder). It may be loosening up security too much to give entire network drive FullTrust, unless the network drive is only used for the said .NET code. Anyway, to do this, you run this command:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;C:\Windows\Microsoft.net\framework\v2.0.50727\caspol -pp off -machine -addgroup All_Code -url &lt;A target="_blank" rel="nofollow"&gt;file://server/sharename/foldername/&lt;/A&gt;* FullTrust -name&amp;nbsp;My_CAD_Apps -description "AutoCAD Map&amp;nbsp;.NET Applications"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;You need to run this on every CAD computer that uses your .NET code in AutoCAD. You also need to have admin right to run it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;Afterward, you can simply drop all your Acad .NET code (or other .NET apps you do not wan to install locally, for that matter) into that network share and load them&amp;nbsp;from there, so when you need to update the code, you only update in one location (well, you may have to force the opened dll file being cloded before you can copy over the update, should someone leave AutoCAD running after work...).&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2010 13:49:12 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2010-09-09T13:49:12Z</dc:date>
    <item>
      <title>Running dll from network drive</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-dll-from-network-drive/m-p/2765856#M63974</link>
      <description>&lt;P&gt;Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a dll file from a VB.NET project and the file loads and runs correctly if I load it from my local machine.&amp;nbsp; When I load and run from a network drive location I get a message that the "Application attempted to perform an operation not allowed by the security policy..." and I could use Microsoft .NET Framework Configuration tool to grant permission for the application to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no idea where to start using a .NET Framework Configuration tool and was hoping someone could help getting this configured to run correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2010 20:04:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-dll-from-network-drive/m-p/2765856#M63974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-08T20:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Running DLL from network drive</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-dll-from-network-drive/m-p/2766070#M63975</link>
      <description>&lt;P&gt;Search this News group, this is a regular question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that net shared are not considered a "Safe zone" so you have to open your machine up to allow this to run from there, IIRC. In any event, the general consensus to to develop a different deployment strategy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HomeBoy Out&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2010 02:05:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-dll-from-network-drive/m-p/2766070#M63975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-09T02:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Running dll from network drive</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-dll-from-network-drive/m-p/2766390#M63976</link>
      <description>&lt;P&gt;&lt;FONT color="#000000" size="2" face="arial,helvetica,sans-serif"&gt;The .NET framework configuration tool is called CASPOL.exe. There&amp;nbsp;is used to be a GUI version of it with .NET 1.1. With later version of .NET, it is command line tool only for regular .NET installation.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;Googling&amp;nbsp;"CASPOL.EXE" will bring you to tons of links on how to use this tool to configure a .NET code group for its access security.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;For a quick start, to allow .NET code to be loaded from a folder on the network drive, you simply need to configure a network folder as a code group, and give it certain trust. I'd just give it FullTrust, but the folder is configured in file system this way, so that all users can only read and only dedicated user can read/write (e.g. update the DLLs in that folder). It may be loosening up security too much to give entire network drive FullTrust, unless the network drive is only used for the said .NET code. Anyway, to do this, you run this command:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;C:\Windows\Microsoft.net\framework\v2.0.50727\caspol -pp off -machine -addgroup All_Code -url &lt;A target="_blank" rel="nofollow"&gt;file://server/sharename/foldername/&lt;/A&gt;* FullTrust -name&amp;nbsp;My_CAD_Apps -description "AutoCAD Map&amp;nbsp;.NET Applications"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;You need to run this on every CAD computer that uses your .NET code in AutoCAD. You also need to have admin right to run it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;Afterward, you can simply drop all your Acad .NET code (or other .NET apps you do not wan to install locally, for that matter) into that network share and load them&amp;nbsp;from there, so when you need to update the code, you only update in one location (well, you may have to force the opened dll file being cloded before you can copy over the update, should someone leave AutoCAD running after work...).&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2010 13:49:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-dll-from-network-drive/m-p/2766390#M63976</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2010-09-09T13:49:12Z</dc:date>
    </item>
  </channel>
</rss>

