473,372 Members | 1,059 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,372 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 1089
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.