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
  • 0 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 little logging app (written in wxPython) that receives data from a
I have an app that I've written in C#/WinForms ( my little app ).
I have written a Django app that makes use of Python threading to create
I have this app written in VB.Net with winforms that shows some stats and
I have a app that calls an NSTask, (I have written the NSTask and
I have written a personal web app that uses charCodeAt() to convert text that
I have a WinForms app written in C# with .NET 3.5. It runs a
I have a Windows Form app written in C#. Its job is to send
I have a simple little test app written in Flex 3 (MXML and some
I have a multi-threaded Windows C++ app written in Visual Studio 6. Within the

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.