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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Fatal Error When Running .Net Application from UNC FileShare

Fatal Error When Running .Net Application from UNC FileShare

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpworkspacecsharpdatabasesql-server
3 Posts 2 Posters 1 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.
  • D Offline
    D Offline
    DotNetWWW
    wrote on last edited by
    #1

    Hi all , I have a .Net Application that is going to be used in a workgroup environment , I installed the app on the server machine and the suftware runs successfully and connects to sql server with no problem , I also installed prerequisites such as .Net framework 2.0 on lient computer and shared the app folder which is located on server machine . on client machine , When I want to run the app from UNC FileShare I get fatal error that asks to send error to microsoft , but when I copy the entire folder from UNC FileShare to local client , the app connects to server successfully and user can work with software. What's is the problem in your opinion? Note : I also made the shared folder FullControl and also adjusted Entire Zone in Microsoft .Net Framework 2.0 Configuration to FullTrust(On Server machine) , What causes this problem you think? Thanks in advance (Emergency!)

    D 1 Reply Last reply
    0
    • D DotNetWWW

      Hi all , I have a .Net Application that is going to be used in a workgroup environment , I installed the app on the server machine and the suftware runs successfully and connects to sql server with no problem , I also installed prerequisites such as .Net framework 2.0 on lient computer and shared the app folder which is located on server machine . on client machine , When I want to run the app from UNC FileShare I get fatal error that asks to send error to microsoft , but when I copy the entire folder from UNC FileShare to local client , the app connects to server successfully and user can work with software. What's is the problem in your opinion? Note : I also made the shared folder FullControl and also adjusted Entire Zone in Microsoft .Net Framework 2.0 Configuration to FullTrust(On Server machine) , What causes this problem you think? Thanks in advance (Emergency!)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It's called "Code Access Security". Any code running from a non-local (i.e.: Shared folder or other network source) is NOT trusted by default. You have to tell the .NET CLR to trust the code comming from a certain source. Read this[^] post and follow the three links in it.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      D 1 Reply Last reply
      0
      • D Dave Kreskowiak

        It's called "Code Access Security". Any code running from a non-local (i.e.: Shared folder or other network source) is NOT trusted by default. You have to tell the .NET CLR to trust the code comming from a certain source. Read this[^] post and follow the three links in it.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        D Offline
        D Offline
        DotNetWWW
        wrote on last edited by
        #3

        Thanks But , I had made entire zone(My Computer,Local Interanet , Untrusted sites,Internet , Trusted Sites) to FullTrust and also Code Access Security for All_Code of Enterprise,Machine and User Level to FullTrust before , Note : I don't get security exception , I receive the following error : " myAppName has ecountered a problem and needs to close , sorry for inconvenience ....."

        modified on Thursday, December 27, 2007 12:53:19 AM

        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