File.Copy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • curtismuhlestein
    New Member
    • Mar 2008
    • 5

    #1

    File.Copy

    I have a program (VB.NET) on a server which I access from a client machine. This program copies files from the server to the client machine, when I get an error:"Applicat ion attempted to perform an operation not allowed by the security policy...." In VB6 the code (filecopy) works just fine. What is the difference between VB6 and VB.Net that causes this to happen? Maybe there is an environment setting that needs to be changed?
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Originally posted by curtismuhlestei n
    I have a program (VB.NET) on a server which I access from a client machine. This program copies files from the server to the client machine, when I get an error:"Applicat ion attempted to perform an operation not allowed by the security policy...." In VB6 the code (filecopy) works just fine. What is the difference between VB6 and VB.Net that causes this to happen? Maybe there is an environment setting that needs to be changed?
    well, i suppose the method FileCopy works just fine in both. And for the error you're getting, i'd check the Read/Write/Delete/Modify permissions.

    Comment

    • curtismuhlestein
      New Member
      • Mar 2008
      • 5

      #3
      Originally posted by kadghar
      well, i suppose the method FileCopy works just fine in both. And for the error you're getting, i'd check the Read/Write/Delete/Modify permissions.
      But the permissions are the same for the VB6 as well as the VB.Net. I could change the permissions, but this software is being install at our customers sites. We have over 600 customers and each customer has many PCs.

      Comment

      • kadghar
        Recognized Expert Top Contributor
        • Apr 2007
        • 1302

        #4
        Originally posted by curtismuhlestei n
        But the permissions are the same for the VB6 as well as the VB.Net. I could change the permissions, but this software is being install at our customers sites. We have over 600 customers and each customer has many PCs.
        I'll assume the application you created with VB6 is a web application too. (may be that's what i wasn't understanding well)

        Why dont you go to a user's pc, set the iexplorer's security to a low level and check if you can handle the files the way you wanted?

        Comment

        • curtismuhlestein
          New Member
          • Mar 2008
          • 5

          #5
          We have decided to use a batch file. Thanks for the responses.

          Comment

          Working...