473,396 Members | 2,013 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,396 software developers and data experts.

Setting up Code Access Security

We have an app that will be run from a network share. I know that on
the machine that will run the app, I need to grant the proper
permissions. On the laptop, I installed the .Net framework verson 2.0
(dotnetfx) but when I went to the control panel under administrative
tools, the .Net 2.0 configuration tool was not there. The 1.1 tool
was there, but not the 2.0 tool.

How do you configure code access without that tool?

Chris

Jun 28 '06 #1
4 2194
Chris,

I believe you can use CASPOL.EXE to configure the framework. However,
that tool should be there. I would reinstall the framework and use that.

This assumes you have the proper rights to use the tool. Since you have
access to the 1.1 tool, you should have access to the 2.0 tool.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@d56g2000cwd.googlegr oups.com...
We have an app that will be run from a network share. I know that on
the machine that will run the app, I need to grant the proper
permissions. On the laptop, I installed the .Net framework verson 2.0
(dotnetfx) but when I went to the control panel under administrative
tools, the .Net 2.0 configuration tool was not there. The 1.1 tool
was there, but not the 2.0 tool.

How do you configure code access without that tool?

Chris

Jun 28 '06 #2
Hello!
I believe you can use CASPOL.EXE to configure the framework. However,
that tool should be there. I would reinstall the framework and use that.


Yes, one could use CASPOL.EXE to configure what is needed, but this is a
command-line interface and I prefer GUIs for this kind of work.

As for the graphical configuration utility, I don't think it comes with the
..NET Redistributable. Unless I'm mistaken, it is only part of the .NET 2.0
SDK kit, which is of course a free download as well but otherwise
unnecessary for a production machine.

The configuration utility Chris is looking for is named "mscorcfg.msc". It
is a MMC snap-in. By default, the location is:

"C:\Program Files\Microsoft Visual Studio 2005\SDK\v2.0\Bin\mscorcfg.msc"

For .NET 1.1, this file came with the redistributable.

Hope this helps.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Jun 28 '06 #3
Jani Järvinen [MVP] wrote:
The configuration utility Chris is looking for is named "mscorcfg.msc". It
is a MMC snap-in. By default, the location is:

"C:\Program Files\Microsoft Visual Studio 2005\SDK\v2.0\Bin\mscorcfg.msc"


The machine that I am configuring security for may not have Visual
Studio installed on it but will that snap in still be there in that
case?

I was able to use caspol to grant the trust that I need, however.

Thanks Nick and Jani for the suggestions

Jun 28 '06 #4
The GUI tool is not any longer considered an end user tool, it's a
developpers tool, CASPOL is the only tool available on a run-time only
system. It's up to you (the developer) or an admin to supply a command
script (batch file) in oder to configure CAS, an other option is to do it in
code, but why would you?

Willy.

"Jani Järvinen [MVP]" <ja***@removethis.dystopia.fi> wrote in message
news:ux**************@TK2MSFTNGP05.phx.gbl...
| Hello!
|
| > I believe you can use CASPOL.EXE to configure the framework. However,
| > that tool should be there. I would reinstall the framework and use
that.
|
| Yes, one could use CASPOL.EXE to configure what is needed, but this is a
| command-line interface and I prefer GUIs for this kind of work.
|
| As for the graphical configuration utility, I don't think it comes with
the
| .NET Redistributable. Unless I'm mistaken, it is only part of the .NET 2.0
| SDK kit, which is of course a free download as well but otherwise
| unnecessary for a production machine.
|
| The configuration utility Chris is looking for is named "mscorcfg.msc". It
| is a MMC snap-in. By default, the location is:
|
| "C:\Program Files\Microsoft Visual Studio 2005\SDK\v2.0\Bin\mscorcfg.msc"
|
| For .NET 1.1, this file came with the redistributable.
|
| Hope this helps.
|
| --
| Regards,
|
| Mr. Jani Järvinen
| C# MVP
| Helsinki, Finland
| ja***@removethis.dystopia.fi
| http://www.saunalahti.fi/janij/
|
|
Jun 28 '06 #5

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

Similar topics

0
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
0
by: Praveen | last post by:
Hello. I am writing some code that accepts a DFS Link and Username and grants that User permissions to the physical directory that the DFS Link corresponds to. I am using the System.Management...
1
by: Danko Greiner | last post by:
Thanx Willy, this was very helpful. But i also need (and want to know) how to do this from code. Can you plase give me right topic in MSDN? is there good example? Thanx p.s. this is...
1
by: Dave | last post by:
Hi, I've read quite a few places where it recommends you use integrated security in your connection string to SQL Server I tried this in test page to connect to the Northwind database by...
1
by: CES | last post by:
All, Could someone please point me to a step by step resource on setting up a ..net Web Application on IIS. I'm having a problem setting up IIS to except a new Web Application. I'm deploying...
16
by: Marina | last post by:
Hi, I am trying to find the minimum security settings to allow a windows control embedded in IE have full trust. If I give the entire Intranet zone full trust, this works. However, this is...
1
by: Sam Vanderstraeten | last post by:
Hi all, My situation: - VB.net & Visual Studio 2002 - IIS 6.0 - Windows XP Pro (development) and Windows 2000 server (release) I created a test-application (before I started to develop the...
2
by: Greg | last post by:
Please note: I have cross posted this from Newsgroup: microsoft.public.dotnet.framework.aspnet.webservices with a few minor changes... I am having a simple problem setting up the security on my...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
4
by: joemo2003 | last post by:
Is there a way to use VBA check to see the macro security setting? I want to use VBA check to see is the "Trust access to VB project" setting is on? Such as it return "True" when set to Trust access...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.