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

Security Policy

When I distribute myApp to a network drive I get an error.
Tells me I need to change my secority policy so I write a batch file as
follows:

C:
CD\
CD C:\WINNT\Microsoft.NET\Framework\v1.1.4322\
CLS
caspol -quiet -cg 1.2. FullTrust

and run it on my machine which prevents the problem. I am administrator of
my own machine. I run it on a colleagues who is not admin of his own machine
and the policy change does not occur. So I try caspol -s off on his machine
and nothing changes and I still get error. I only have 6 users so I do not
really need a strong security policy. Any ideas?
Nov 21 '05 #1
3 1252
forgot to say that when i run caspol -s off on my own machine i get a
succeeded message but when i do it on another machine whether logged in as
the user or admin i get a ERROR: Runtime error: Policy level enterprise
cannot be set

"marcmc" wrote:
When I distribute myApp to a network drive I get an error.
Tells me I need to change my secority policy so I write a batch file as
follows:

C:
CD\
CD C:\WINNT\Microsoft.NET\Framework\v1.1.4322\
CLS
caspol -quiet -cg 1.2. FullTrust

and run it on my machine which prevents the problem. I am administrator of
my own machine. I run it on a colleagues who is not admin of his own machine
and the policy change does not occur. So I try caspol -s off on his machine
and nothing changes and I still get error. I only have 6 users so I do not
really need a strong security policy. Any ideas?

Nov 21 '05 #2
it seems you have to be administrator to execute the command.

"marcmc" wrote:
forgot to say that when i run caspol -s off on my own machine i get a
succeeded message but when i do it on another machine whether logged in as
the user or admin i get a ERROR: Runtime error: Policy level enterprise
cannot be set

"marcmc" wrote:
When I distribute myApp to a network drive I get an error.
Tells me I need to change my secority policy so I write a batch file as
follows:

C:
CD\
CD C:\WINNT\Microsoft.NET\Framework\v1.1.4322\
CLS
caspol -quiet -cg 1.2. FullTrust

and run it on my machine which prevents the problem. I am administrator of
my own machine. I run it on a colleagues who is not admin of his own machine
and the policy change does not occur. So I try caspol -s off on his machine
and nothing changes and I still get error. I only have 6 users so I do not
really need a strong security policy. Any ideas?

Nov 21 '05 #3
"marcmc" <ma****@discussions.microsoft.com> wrote in message
news:23**********************************@microsof t.com...
When I distribute myApp to a network drive I get an error. .. . . caspol -quiet -cg 1.2. FullTrust


IIRC, you need to tell the Framework /what/ you want to trust, as in

caspol -q -ag 1.2
-url "file:/ /server/share/*"
FullTrust
-name "readible name"

HTH,
Phill W.
Nov 21 '05 #4

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

Similar topics

4
by: Lorenzo | last post by:
hi you all, first of all apologies for having cross-posted this message but really i did not know where to post it. please let me know what ng you consider the most suitable for the described...
2
by: Ioannis Demetriades | last post by:
Hi, I created a shortcut to a .NET application that is located on a different workstation but when I try to execute the app (through the shortcut) I get an message saying "The application...
0
by: Jack | last post by:
I am working on a dotnet project to write an application that can audit and write registry and local security policy entries on multiple standalone (not networked) and domain computers. Since...
0
by: Mark Broadbent | last post by:
Could someone who has active experience of assigning Security Policys please clarify my follow comments... Having gone through the MSDN documentation on this subject, my condensed version of the...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to...
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...
11
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following...
5
by: Norsoft | last post by:
I have a .Net 1.1 application which is downloaded into an aspx page. It is a dll which inherits from System.Windows.Forms.UserControl. It works fine on a PC with only the 1.1 Framework. However,...
2
by: John Kotuby | last post by:
Hello all, Note: This is the full version of a Post that I inadvertently sent before it was complete. About a year ago I wrote a VB.NET 2003 solution that consists of a number of assemblies...
5
by: Henry Stock | last post by:
I am trying to understand the following error: Any thing you can tell me about this is appreciated. Security Exception Description: The application attempted to perform an operation not allowed...
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
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: 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.