G
Guest
I've got an application that I've written in C# that reads and writes to the
filesystem. On the computer I developed the application on, everything works
properly. If I try to run it on another computer that has the .NET 2.0
framework installed but not the SDK, it throws a
system.io.filenotfoundexception the moment it tries to access the filesystem,
even though it does a File.Exists() check before every access.
I've talked to some friends who are professional .NET developers, and they
suspect it's related to Code Access Permissions, but I can't figure out how
I'm supposed to get this assembly trusted on a user's computer when I don't
have mscorcfg.msc or caspol.exe. I'm not going to install the SDK on every
computer that uses the application, and the application is useless without
filesystem access. What should I do?
filesystem. On the computer I developed the application on, everything works
properly. If I try to run it on another computer that has the .NET 2.0
framework installed but not the SDK, it throws a
system.io.filenotfoundexception the moment it tries to access the filesystem,
even though it does a File.Exists() check before every access.
I've talked to some friends who are professional .NET developers, and they
suspect it's related to Code Access Permissions, but I can't figure out how
I'm supposed to get this assembly trusted on a user's computer when I don't
have mscorcfg.msc or caspol.exe. I'm not going to install the SDK on every
computer that uses the application, and the application is useless without
filesystem access. What should I do?