Announcement

Collapse
No announcement yet.

System.Security.SecurityException

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • System.Security.SecurityException

    Hallo,

    ich habe bzgl. Tests mal eine WPF XAML Browser Application erstellt. Werkzeug ist VS2005 mit Visual-Studio-2005-extensions-for-NET-Framework-3-0-WCF-WPF-November-2006-CTP.

    Wenn ich z. B. auf den Click eines Button reagiere u. nur einfach eine Connection zum SQL Server aufbauen will o. einen Eintrag im Eventlog erstellen will:

    EventLog eventLog = new EventLog();
    eventLog.Source = "Test Manuell";
    eventLog.WriteEntry("Testeintrag");

    Bekomme ich immer nachfolgende Fehlermeldung:

    An unhandled exception of type 'System.Security.SecurityException' occurred in Unknown Module.

    Additional information: Request for the permission of type 'System.Diagnostics.EventLogPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xx.....' failed.

    Ich hab jetzt mal die Adjust Zone Security im .NET Framework für Intranet auf FULL gestellt, aber das brachte nix. Allerdings auch nur für Version 2.0, ist daher wohl sinnlos. War allerdings nix anderes in der Systemsteuerung.

    Hat jmd. eine Idee was da falsch läuft?

    Danke.
Working...
X