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?
File.Copy
Collapse
X
-
Tags: None
-
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.Originally posted by curtismuhlestei nI 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? -
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.Originally posted by kadgharwell, 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
-
I'll assume the application you created with VB6 is a web application too. (may be that's what i wasn't understanding well)Originally posted by curtismuhlestei nBut 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.
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
-
Comment