EventLogPermission
EventLogPermission settings are required for the PBTraceTarget global property for .NET targets.
Set this property on the Configuration tab of the Project painter for
Web Service
targets after deployment in the
appname.exe.config
file (where appname is the name of the executable file).
Web Service
targets after deployment in the
appname.exe.config
file (where appname is the name of the executable file).
Global .NET property | Permission required |
---|---|
PBTraceTarget when the value is set to file |
Windows Forms: Pbtrace.log FileIO permission asserted by default in runtime library |
PBTraceTarget when the value is set to EventLog |
Administer |
Example 1
In Windows Forms targets, if PBTraceTarget is set to
“EventLog”, the application needs Administer permission to write to the log. You can set
this in Security tab as
follows:
1 2 3 |
<IPermission class=" EventLogPermission" version="1"> <Machine name="testmachine" access="Administer"/> </IPermission> |
Parent topic: Custom Permission Settings
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments