473,382 Members | 1,376 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,382 software developers and data experts.

Framework Security Configuration

Where can I find information about Runtime Security Policies?
I have a winform that is hosted in a webform that needs to access the
filesystem. Using the Configuration mmc snapin, I have created a code
group that has 'full trust' for any assembly from the specified URL (a
local intranet server). In this configuration, a Security exception is
thrown when trying to copy a file.

When I use the Security Wizard, and elevate the Local Intranet Zone to
'full trust', the application works as expected.

How can I find out what changes were made when moving the slider from
the default for the Local Intranet Zone to Full Trust?

Thanks

MATT
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
2 1751
Hi Matt,

There is a lot of information out there explaining how .NET Code Access
Security works and sometimes it takes a while to really get what is going
on. Something that isn't always obvious when reading the materials are
where security is being applied. For example, there is Windows OS security
with ACLs and all that, then there is .NET Code Access Security, then there
is another security dimension that comes into play when deploying Smart
Client apps like you are. With Smart Client apps, IE is hosting the CLR and
applying its own policies in the AppDomain it creates for your application
to run in. So, this is just a little backgrounder to help out as you begin
learning CAS. Here are more sources of information for you to find answers
to how and why it works the way it does:

The MSDN Security Developer Center (For General Info)
http://msdn.microsoft.com/security/

Chapter 8 - Code Access Security in Practice (ASP.NET Security Guide)
http://msdn.microsoft.com/library/de...l/THCMCh08.asp

Wonders of WinForms Column (Chris Sells has written some of the most
informative work there is on Smart Client deployment, including security
related issues)

http://www.sellsbrothers.com/writing/

The C# Tutorial @ C# Station (I've exposed all of the examples for the C#
Tutorial as Smart Client, which I call Smart Consoles <grin>, applications
and have a page that explains how to set up CAS to allow them to run)
http://www.csharp-station.com/Tutorial.aspx

Joe
--
http://www.csharp-station.com

"Matt Theule" <de****@mattsolutions.com> wrote in message
news:ur*************@TK2MSFTNGP10.phx.gbl...
Where can I find information about Runtime Security Policies?
I have a winform that is hosted in a webform that needs to access the
filesystem. Using the Configuration mmc snapin, I have created a code
group that has 'full trust' for any assembly from the specified URL (a
local intranet server). In this configuration, a Security exception is
thrown when trying to copy a file.

When I use the Security Wizard, and elevate the Local Intranet Zone to
'full trust', the application works as expected.

How can I find out what changes were made when moving the slider from
the default for the Local Intranet Zone to Full Trust?

Thanks

MATT
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 15 '05 #2
Thanks for the quick reply. I'll be looking into those links.

MATT

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Before we start with our sample app we need to view the security configuration files on the machine. You will find them under <drive>\WInNT\Microsoft.NET\FrameWork\<version>\Config ...
4
by: Chris Thunell | last post by:
Where in GroupPolicy can you adjust DotNet framework security? Thanks! cthunell@pierceassociates.com Chris Thunell
0
by: Namratha Shah \(Nasha\) | last post by:
Hi All, We have almost covered all the .NET Framework Tools except a few, which we will cover in the coming days. Today we will are going to check out a tool called as mscorcfg.msc. This is a...
0
by: Cezar | last post by:
Hello, I downloaded and installed the Framework on a server but when I try to run a simple .NET Web application, a simple aspx page with one label, I get this error. The customError tag on...
11
by: xenophon | last post by:
I have a web site with forms authentication and a single logon page. I have 4 subdirectories, each that should be protected by a different username/password combination. For testing purposes, the...
0
by: ikhan | last post by:
Hello, I am using an activex control on my website. It was running fine with framework 1.1, when I try to run it on framework 2.0 it's not showing up. It's not showing any error message, just a...
3
by: Chris Botha | last post by:
Hi, sorry, cross-post with the ADONET newsgroup. I have a web site on a 2003 server. The web site runs under Framework 1.1 and works with oracle, no problem. On the same server I have another...
1
by: Saqib Ali | last post by:
I recently installed "Microsoft .Net Framework 2.0 Redistributable" on a Windows 2003 server, and noticed that there is NO "Microsoft .Net Framework 2.0 Configuration" item under Administrative...
2
by: =?ISO-8859-1?B?RulybmFz?= | last post by:
Hey all, I have a URGENT problem and I hope someone could help me... scenery: I have a windows app, coded using C# (framework 1.1 - VS2003)... The exe and dlls of the app is are stored in a...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.