Hi Tom,
on a local drive, all works correct...
But is there any option (perhaps in assembly settings of .NET
framework)
to make this functional on a network drive too?
Thanx for help
Alex
Security exception:
System.Security.SecurityException wurde nicht behandelt.
Message="Fehler bei der Anforderung des Berechtigungstyps
System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089."
Source="mscorlib"
StackTrace:
bei System.Security.CodeAccessSecurityEngine.Check(Obj ect
demand, StackCrawlMark& stackMark, Boolean isPermSet)
bei System.Security.CodeAccessPermission.Demand()
bei System.Console.SetOut(TextWriter newOut)
bei SitCommander.Form1..ctor()
bei SitCommander.Program.Main()
bei System.AppDomain.nExecuteAssembly(Assembly assembly,
String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args)
bei
Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context( Object
state)
bei System.Threading.ExecutionContext.runTryCode(Objec t
userData)
bei
System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteCodeWithGuaranteedCleanup(TryCode
code, CleanupCode backoutCode, Object userData)
bei
System.Threading.ExecutionContext.RunInternal(Exec utionContext
executionContext, ContextCallback callback, Object state)
bei System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
Tom Spink schrieb:
alex wrote:
My project is on a network drive.
I have full contorl of all subfolders.
I changed the security settings in the project to full trusted
application.
But nothing changed. Now i will try to build and runt the project from
a local drive.
Alex
Tom Spink schrieb:
alex wrote:
Hi,
this always works:
private ConsoleToTextbox myConsole;
Console.SetOut(myConsole);
But now (a few weeks later i started this project again)
i get a non handeld security exception
from system.security.permissions.securitypermission
when i try to run the program.
recompile is successfull
what the hell has been changed?
Thanks for help
Alex
Hi Alex,
Have you changed the location of your project, e.g. to a network drive?
--
Hope this helps,
Tom Spink
Hi Alex,
I have a nasty feeling CAS is playing some part in your tragedy. Has your
attempt to compile/execute on a local drive worked?
--
Hope this helps,
Tom Spink