473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1091
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
1
by: web1110 | last post by:
Hi, I set up my wifes machine to run .NET, some of my stuff runs but not all. First example: I have a windows program that displays environment info. It runs fine on my machine. Whan I...
29
by: Patrick | last post by:
I have the following code, which regardless which works fine and logs to the EventViewer regardless of whether <processModel/> section of machine.config is set to username="SYSTEM" or "machine" ...
1
by: Diego F. | last post by:
I'm really stuck with this. I have to export a pdf file and I'm using a dll (gios if someone knows it). If I run this in a local project it's ok but when moving it to a server, I get a...
3
by: Dave Wurtz | last post by:
All, Does anyone have ideas how they have implemented field (property) level security? I want to handle this from the business object level, not the database level. Is it best to have a...
4
by: Phil Mc | last post by:
Say for example you have a application running on a windows 2003 server (that is on server, not from). This application needs to start child applications (must be stand alone console applications),...
5
by: CyberLotus | last post by:
Hi, I've created a web application and through this I want to import Excel data to database. Following is the code that I've written, ...
5
by: Dave Cullen | last post by:
My version of dotnet is 7.0.9955 Studio 2002. The applications I've written refuse to run on our shared network drive, giving security exceptions. I've not been able to find a workaround for this...
0
by: alf | last post by:
I have an app that was running in my local server using full trust, now I moved it to hosting company wish run in Medium trust. Then I get a Security exception (details below) Then I configured...
5
by: VictorG | last post by:
Hello, I am trying to secure a webservice using WSE 3.0 and the turnkey usernameForCertificateSecurity profile. I am passing a valid username token, and on the server I have overridden the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.