IDE / Server file permission problem?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: cigwork (cigwork_at_discussions.microsoft.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 02:25:02 -0700

Using VS.NET 2K3 pro.

My development environment is set up with project & source files on a
network drive and until a recent server hardware failure followed by a
restore/rebuild this worked very well. I now find that apps blows up with the
FileIoPermission error when I try to run the app in either debug/release mode
from the IDE or as a built .exe on the network drive.

The first time I tried to run a project setup like this the IDE threw up a
dialogue box to force confirmation that this is the way I wanted to work.

The question is how do I reset the IDE, server security settings and or
public/private key used to allow me to continue working this way? I already
have full control over the files in question.

Creating/running a new project on/from the network drive doesn't do the trick.

I also tried 'demanding' permission, as per the noddy code below, but no joy.

      try
      {
           // We get past this quite nicely thank you...
           FileIOPermission fIoP = new
FileIOPermission(FileIOPermissionAccess.Write, Environment.CurrentDirectory);
           fIoP.Demand();
          Console.WriteLine("We have permission?");

         // ... but it dies the death here.
         FileStream fs = new FileStream("fred.txt", FileMode.Open);
         Console.WriteLine("Yes.");
         Console.Read();

         fs.Close();
      }
      catch(System.Exception ex)
      {
        Console.WriteLine("{0}", ex.Message);
        Console.Read();
      }



Relevant Pages

  • Re: Quirk with generics
    ... to do it by copy-and-paste would have entailed ... Creating a new project in my IDE. ... Creating four new source files within the package. ...
    (comp.lang.java.programmer)
  • Re: Problem on build
    ... when you do a build you are more or less recompiling all of your source files ... while ur in the IDE it likes to cache up things so usually only the changed ... if you do a REBUILD all, then it compiles everything... ... To See what real programmers do in their spare time visit ...
    (borland.public.delphi.ide)
  • Re: zip.add not working in app from D2006/vista IDE
    ... If I use the support utility (from IDE) all goes well. ... If I "run without debugging" in the IDE the error is there. ... of all my source files and also my experience is that if I ignore ...
    (alt.comp.lang.borland-delphi)
  • Re: Removing dead code and unused functions
    ... through a group of C/C++ source files, and allow unreferenced function calls or values to be easily identified? ... LXR is handy for indexing source code, and for a given function or global variable it can show you all the places where it is referenced. ... int main ... Besdies the IDE only handles C programs. ...
    (comp.lang.c)