By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,660 Members | 1,133 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,660 IT Pros & Developers. It's quick & easy.

Security Permission system.security.permissions.securitypermission

P: n/a
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

Jun 28 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Check again your NTFS security setting just in case any changes have
occurred.

chanmm

"alex" <ea***********@freenet.de> wrote in message
news:11**********************@d56g2000cwd.googlegr oups.com...
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

Jun 28 '06 #2

P: n/a
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
Jun 28 '06 #3

P: n/a
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


Jun 30 '06 #4

P: n/a
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


Jun 30 '06 #5

P: n/a
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
Jun 30 '06 #6

P: n/a
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
Jul 3 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.