Thread View: borland.public.delphi.migration
5 messages
5 total messages
Started by James Culpepper
Tue, 11 Dec 2007 13:36
Security Errors after converting to .NET
Author: James Culpepper
Date: Tue, 11 Dec 2007 13:36
Date: Tue, 11 Dec 2007 13:36
8 lines
1392 bytes
1392 bytes
I'm converting a working RAD Studio 2007 Delphi Win32 app to RAD Studio 2007 Delphi.Net. When I set KeyPreview to True on the main form, I receive an error "System.Security.Permissions.SecurityPermission". I am also receviing errors when attempting to read an INI file. This error begins with "Request for the permission of type 'System.Security.Permissions.FileIOPermissions'". What have I failed to do in the conversion? Jim Culpepper
Re: Security Errors after converting to .NET
Author: David Wilcockson
Date: Tue, 11 Dec 2007 18:42
Date: Tue, 11 Dec 2007 18:42
7 lines
1041 bytes
1041 bytes
> What have I failed to do in the conversion? > Are you running the executable from your local machine (i.e. not over a network)? David
Re: Security Errors after converting to .NET
Author: James Culpepper
Date: Tue, 11 Dec 2007 21:27
Date: Tue, 11 Dec 2007 21:27
15 lines
1449 bytes
1449 bytes
The source does reside on a Network drive and I'm running it from the Delphi 2007 IDE. Once installed, the program will reside on a local drive. Jim "David Wilcockson" <dnwatlibriosdotcom> wrote in message news:475eda2e$1@newsgroups.borland.com... >> What have I failed to do in the conversion? >> > > Are you running the executable from your local machine (i.e. not over a > network)? > > David >
Re: Security Errors after converting to .NET
Author: David Wilcockson
Date: Tue, 11 Dec 2007 22:44
Date: Tue, 11 Dec 2007 22:44
17 lines
1700 bytes
1700 bytes
"James Culpepper" <JamesCulpepper@WTFIncorporated.com> wrote in message news:475f00cd$1@newsgroups.borland.com... > The source does reside on a Network drive and I'm running it from the > Delphi 2007 IDE. Once installed, the program will reside on a local > drive. > Although you can do that with Win32 no problem, you have more of a problem with .NET. It sounds like your application does not have enough security to access local files etc.- this could be a direct result of running it over the network. You can adjust your local .NET security settings to give Full Trust to your intranet, or you can copy your application locally and then run it. David
Re: Security Errors after converting to .NET
Author: James Culpepper
Date: Tue, 11 Dec 2007 23:22
Date: Tue, 11 Dec 2007 23:22
27 lines
2017 bytes
2017 bytes
David, Thank you so much. That was easy to fix on my development machine. I'll be anxious to see what ramifications I will have when I build the installation and distribute the product to my users. Jim "David Wilcockson" <dnwatlibriosdotcom> wrote in message news:475f12d0$1@newsgroups.borland.com... > > "James Culpepper" <JamesCulpepper@WTFIncorporated.com> wrote in message > news:475f00cd$1@newsgroups.borland.com... >> The source does reside on a Network drive and I'm running it from the >> Delphi 2007 IDE. Once installed, the program will reside on a local >> drive. >> > > > Although you can do that with Win32 no problem, you have more of a problem > with .NET. It sounds like your application does not have enough security > to access local files etc.- this could be a direct result of running it > over the network. You can adjust your local .NET security settings to give > Full Trust to your intranet, or you can copy your application locally and > then run it. > > David >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads