![]() |
![]() |
|
![]() |
![]() |
|
Programmierung Rat & Tat für Programmierer |
![]() |
|
Themen-Optionen | Ansicht |
![]() |
#1 |
Jr. Member
![]() Registriert seit: 02.09.2005
Beiträge: 54
|
![]() Hi,
ich habe ein kleines Programm geschrieben welches natürlich auch ein Logfile benutzt. Wenn ich das Programm in einer lokalen Umgebung ausführe funktioniert alles bestens. Ich muss das aber im Netzwerk starten, also das Logfile wird folgendermaßen erstellt: Code:
new StreamWriter(@"\\n5200\projekt1\logfile.log", true); System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Obj ect demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamWriter.CreateFile(String path, Boolean append) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path, Boolean append) at ImportVP.Program.Main(String[] args) The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: Internet Wenn ich manuell am \\n5200 files anlegen möchte und bearbeiten, dann habe ich die Berechtigung. Was kann hier die Lösung sein? Bitte um Hilfe, ich weis absolut nicht mehr weiter :-( Vielen Dank schonmal! |
![]() |
![]() |
![]() |
#2 |
Super-Moderator
![]() |
![]() für die n5200 kiste im ie zu den trusted zones hinzu.
|
![]() |
![]() |
![]() |
#3 |
Jr. Member
![]() Registriert seit: 02.09.2005
Beiträge: 54
|
![]() gleiches Problem, nur steht jetzt in der letzten Zeil der Fehlermeldung "Trusted Zone"
gibts da etwas ganz bestimmtes in der Trusted Zone das ich dann einstellen kann? |
![]() |
![]() |
![]() |
#4 |
Super-Moderator
![]() |
![]() |
![]() |
![]() |
![]() |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|