Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 62733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:31:20+00:00 2026-05-10T18:31:20+00:00

I have an app written in C# that lies on a network share. When

  • 0

I have an app written in C# that lies on a network share. When I run it from a local drive, everything works fine. When I start it from the remote share, calls like

try {     System.Reflection.Assembly.GetExecutingAssembly();     System.IO.Directory.GetCurrentDirectory(); } 

throw a SecurityException ‘Request failed’.

What causes this, what is the difference between an app that is started locally and one that is started from a remote location?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:31:20+00:00Added an answer on May 10, 2026 at 6:31 pm

    This is due to CAS; code started from the local machine has much more trust than code in the intranet, which in turn has more trust that code from the internet.

    IIRC, with the latest SP (3.5SP1?) if you have mapped the share (i.e. as F:) it is trusted; otherwise you will need to either:

    a: apply a caspol change to all clients (yeuck)

    b: use ClickOnce to deploy the app, and run the .application instead (yay!)

    The point is that ClickOnce allows you to sign the app and state your security policy (even if you demand full trust).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a very small utilty app written in c# that works fine on
I'm working on an app (Written in C#) that have a setting to run
We have an app that needs to access network resources. It's written in VB.Net.
I have a console app (written in c#) that is passed various arguments from
I have an app written that compiles and runs fine in Xcode 4.2. I
So I have a web app written in PHP that will run on different
I come from a C# background but we have an app that is written
I have a little logging app (written in wxPython) that receives data from a
I have a Linux app (written in C) that allocates large amount of memory
I have a TCP server app that is written in C#. I accept TCP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.