Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Executing .NET Assembly from UNC path

Executing .NET Assembly from UNC path

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdotnetsysadminwindows-adminsecurity
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve Pullan
    wrote on last edited by
    #1

    Hi all, I am attempting to execute an assembly from a UNC path (e.g. \\sydxyz\share) but I always get the CLR error message "Application has generated an exception that could not be handled". The permissions on the share are correct and I have tried generating the assembly with a strong name, altered security profile etc.. as in the .NET Code Access Security documentation, but to no avail. However, if I map that network share to a drive letter (net use z: \\sydxyz\share) and run the program it works with no problems. I've looked at the Intranet_Zone security etc... etc... and now am suspecting that an Active Directory (global) group policy is somehow getting in the way? Has anyone seen this before or have any ideas where to start? TIA ...Steve

    C 1 Reply Last reply
    0
    • S Steve Pullan

      Hi all, I am attempting to execute an assembly from a UNC path (e.g. \\sydxyz\share) but I always get the CLR error message "Application has generated an exception that could not be handled". The permissions on the share are correct and I have tried generating the assembly with a strong name, altered security profile etc.. as in the .NET Code Access Security documentation, but to no avail. However, if I map that network share to a drive letter (net use z: \\sydxyz\share) and run the program it works with no problems. I've looked at the Intranet_Zone security etc... etc... and now am suspecting that an Active Directory (global) group policy is somehow getting in the way? Has anyone seen this before or have any ideas where to start? TIA ...Steve

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Try this: http://gnonug.xocomp.net/Support/FAQ/85.aspx[^] --Colin Mackay--

      EuroCPian Spring 2004 Get Together[^] "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

      S 1 Reply Last reply
      0
      • C Colin Angus Mackay

        Try this: http://gnonug.xocomp.net/Support/FAQ/85.aspx[^] --Colin Mackay--

        EuroCPian Spring 2004 Get Together[^] "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

        S Offline
        S Offline
        Steve Pullan
        wrote on last edited by
        #3

        Colin, Thanks, however I managed to trace the problem to be a combination of Framework 1.0 and network shares with spaces in their names (e.g. "\\sydxyz\is share"). There is an undocumented bug in the Framework 1.0 code which has been fixed in 1.1 (ASURT#127619 - obtained from Microsoft support). This is not yet in TechNet or MSDN. ...Steve

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups