this.appPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
... wie hier direkt verwende.
backShot.Save(this.appPath + @"\_backshot.bmp", ImageFormat.Bmp)
;Ausgabe: "file:\C:\Users\dutzend..."
Die Meldung wird also durch das Protokoll-Prefix ausgelöst.
Workaround:
this.appPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); if(this.appPath.Contains(@"file:\")) this.appPath = this.appPath.Substring(6);
Keine Kommentare:
Kommentar veröffentlichen