471,309 Members | 1,066 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,309 software developers and data experts.

Security Exceptions

My windows application runs fine when the executable is saved on a the
harddisk. I uploaded the executable on my website and then used internet
explorer to download it; at the prompt I chose "run" instead of "save" and
the executable threw a System.Security.Securityexception. Whats going on
here and how can this be fixed?

Thanks.
Jessica
Dec 16 '05 #1
4 1036
Running a .NET assembly from anywhere but the local machine can cause this.
You'll have to change you policy to allow it to be run from there.
"Jessica Weiner" <je*****@gmail.com> wrote in message
news:1v*******************@newssvr21.news.prodigy. com...
My windows application runs fine when the executable is saved on a the
harddisk. I uploaded the executable on my website and then used internet
explorer to download it; at the prompt I chose "run" instead of "save" and
the executable threw a System.Security.Securityexception. Whats going on
here and how can this be fixed?

Thanks.
Jessica

Dec 16 '05 #2
"Brendan Green" <bg****@simtap.com.au> wrote:
Running a .NET assembly from anywhere but the local machine can cause
this.
You'll have to change you policy to allow it to be run from there.


How do I change my policy?

Thanks.
Jess
Dec 16 '05 #3
You are running into the effects of Code Access Security.
Some functionality in the framework can only be run when specific rights
are allowed. When you run an application within Internet Explorer, it
runs with much more limited rights. You can change the policy (as the
other comment suggested), or you can change the application so that it
tests for rights and acts appropriately.

To learn a lot about security in the .NET Framework (including how to
change your policies), I recommend Richard Grimes' Security workshop:
http://www.grimes.demon.co.uk/workshops/securityWS.htm

Or just search the net for "code access security"

Joshua Flanagan
http://flimflan.com/blog
Dec 16 '05 #4
On Fri, 16 Dec 2005 02:27:10 GMT, "Jessica Weiner" <je*****@gmail.com>
wrote:
"Brendan Green" <bg****@simtap.com.au> wrote:
Running a .NET assembly from anywhere but the local machine can cause
this.
You'll have to change you policy to allow it to be run from there.


How do I change my policy?

Thanks.
Jess


Very, very carefully indeed. If you don't know how to change the
security settings on Internet Explorer then you probably don't have
enough knowledge to realise quite how dangerous what you are proposing
is.

By changing policy without sufficient knowledge you could be giving
permission for anything and everything that runs on your web-browser
to make changes on your hard disk. Every time you go onto the
Internet you will potentially be opening yourself up for big trouble.
Just say no!

rossum

--

The ultimate truth is that there is no ultimate truth
Dec 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by A.M. | last post: by
1 post views Thread by web1110 | last post: by
29 posts views Thread by Patrick | last post: by
1 post views Thread by Diego F. | last post: by
3 posts views Thread by Dave Wurtz | last post: by
5 posts views Thread by Dave Cullen | last post: by
reply views Thread by alf | last post: by
5 posts views Thread by VictorG | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.