Board index » delphi » Deploy VCL.NET App

Deploy VCL.NET App


2004-06-17 03:58:07 AM
delphi191
I've created a hi world using WinForms. Copied to a remote shared
folder and it works.
Then I have created a hi world using VCL.NET, copied to a remote
shared folder and when I try to run it in my machine (D8 and everything
installed) I get a System.TypeInitializationException. It is only a
form with a button and a call to ShowMessage.
If I run it locally, it works.
What's wrong?
--
Erick Sasse
 
 

Re:Deploy VCL.NET App

On 16 Jun 2004 12:58:07 -0700, Erick Sasse writes:
Quote
Then I have created a hi world using VCL.NET, copied to a remote
shared folder and when I try to run it in my machine (D8 and everything
installed) I get a System.TypeInitializationException. It is only a
form with a button and a call to ShowMessage.
What is the text of the exception?
--
Marc Rohloff
marc rohloff at myrealbox dot com
 

Re:Deploy VCL.NET App

When I try to run the app, I am told that a exception ocurred (withou
showing the text) and if I want do debug it using CLR De{*word*81} or
VS.NET De{*word*81}.
When I start VS.NET De{*word*81} I get a text like "Additional information:
The type initialization from "Project2.Unit" raised an exception". The
original text is in portuguese, so I translated to english.
--
Erick Sasse
 

Re:Deploy VCL.NET App

On 17 Jun 2004 05:21:15 -0700, Erick Sasse writes:
Quote
When I try to run the app, I am told that a exception ocurred (withou
showing the text) and if I want do debug it using CLR De{*word*81} or
VS.NET De{*word*81}.
Applications run off the network have different security permissions
to those for applications run off a local drive. The VCL runs some
code which requires higher security permissions.
The easiest is to run the code off a local drive. Otherwise you have
to give security rights to applications running off the network or to
your application.
--
Marc Rohloff
marc rohloff at myrealbox dot com
 

Re:Deploy VCL.NET App

Marc Rohloff [TeamB] writes:
Quote
The easiest is to run the code off a local drive. Otherwise you have
to give security rights to applications running off the network or to
your application.
Thanks Marc, I was trying to modify the security on the server, but now
I got it right modifying the security locally.
--
Erick Sasse
 

Re:Deploy VCL.NET App

"Erick Sasse" <XXXX@XXXXX.COM>writes news:XXXX@XXXXX.COM...
Quote
Then I have created a hi world using VCL.NET, copied to a remote
shared folder and when I try to run it in my machine (D8 and everything
installed) I get a System.TypeInitializationException. It is only a
form with a button and a call to ShowMessage.

If I run it locally, it works.

What's wrong?
You need to copy the following dll libraries to the same folder
where your application resides on the remote machine
(or to the remote machine GAC):
Borland.Vcl.dll
Borland.Delphi.dll
Borland.VclRtl.dll
Possibly some more, but for a "Hello Word" application
those three should be plenty.
 

Re:Deploy VCL.NET App

"Erick Sasse" <XXXX@XXXXX.COM>writes news:XXXX@XXXXX.COM...
Quote
No, it was a security problem. It is already solved.
Cool! What did you have to do to solve the security problem?
 

Re:Deploy VCL.NET App

TObject writes:
Quote
You need to copy the following dll libraries to the same folder
where your application resides on the remote machine
(or to the remote machine GAC):

Borland.Vcl.dll
Borland.Delphi.dll
Borland.VclRtl.dll
No, it was a security problem. It is already solved.
Thanks anyway! :)
--
Erick Sasse