473,396 Members | 1,846 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.

Caspol

I have to show a Windows Form user control in a web page using the
object tag.
Now i have configure the security configuration on the client side
using Caspol.exe. Now i need to give all the assemblies downloaded
from the url "http://myserver" certain security permissions.

how do i do tht without asking the client to do it?

Any help would be appreciated.

Regards
Deepak
Jul 21 '05 #1
3 2179
de************@yahoo.com (Deepak) wrote:
I have to show a Windows Form user control in a web page using the
object tag.
Now i have configure the security configuration on the client side
using Caspol.exe. Now i need to give all the assemblies downloaded
from the url "http://myserver" certain security permissions.

how do i do tht without asking the client to do it?

Any help would be appreciated.

Regards
Deepak how do i do tht without asking the client to do it?


You don't. That's the idea. Your client has to take an
explicit action to indicate to what degree content from your
site is to be trusted.

In an enterprise environment you would use your deployment
infrastructure to deploy the necessary code group and
permission set to all the necessary machines in the
enterprise.

In your case you could send a .bat file with caspol commands
to the client and ask them to run it.

However beware that a URL membership condition (by itself)
makes you responsible for keeping that site secure;
otherwise an attacker can invade your site or even take your
site down (setting up a rogue server to impersonate your
site) and then load malicious code on the client to run with
your custom (and possibly dangerous) permission set.
Jul 21 '05 #2
Hi,

Thanks for the reply. I need to clarify one more thing. Can I give my
code full permission programmatically?

How do i do tht?

Regards
Deepak
Jul 21 '05 #3
Code can't give itself more permissions than it deserves (as prescribed by
the CLR and policy).

Christian
"Deepak" <de************@yahoo.com> wrote in message
news:ba**************************@posting.google.c om...
Hi,

Thanks for the reply. I need to clarify one more thing. Can I give my
code full permission programmatically?

How do i do tht?

Regards
Deepak

Jul 21 '05 #4

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

Similar topics

0
by: LUE42 | last post by:
I am attempting to set a new Code Group security policy using the CASPOL tool. I am using SMS 2 (SP4) to push this job to the client workstations using a script. The script and command work...
2
by: Craig Miles | last post by:
Hi, I have a couple of small exes compiled using the same .snk file. These exes will be deployed to the client machines using a "No Touch Deployment" scenario from a web server. We need to...
0
by: Peter F | last post by:
Hello I hope you can help my with this... I have made a program in VB.Net, which is suppose to be in a shared directory on a server. Other people can then map the drive and run it from their...
3
by: Deepak | last post by:
I have to show a Windows Form user control in a web page using the object tag. Now i have configure the security configuration on the client side using Caspol.exe. Now i need to give all the...
0
by: Jess.Albert | last post by:
The overall problem: -I've got .Net 2.0 code running from a network share (\\server01\share\vb.netcode.exe we'll assume). -Windows won't run code from a share unless it's trusted. -I need to...
1
by: Joe | last post by:
Hi I am just writting a small utility to fire off some Caspol commands I can run Caspol.exe -lg to see the security settings for DotNet thru command line Is there a way to get what...
3
by: DBC User | last post by:
Today when I tried to run a caspol on a box where I have only framework 3.0 and found out that it is not distributed like it does in 2.0 or 1.1 How can I run a caspol on client box where we have...
0
by: =?Utf-8?B?Y3J5cHRpYw==?= | last post by:
Hey, can I execute a FileIOPermission on a mapdrive without using the caspol tool or the mscorcfg configuration editor? - it have to be working If not, can everbody describe a solution to set...
6
by: Brian Gideon | last post by:
I obviously need some education on how caspol -resolveperm works. I was having a problem with my ASP.NET application throwing a SecurityException from System.Web.Extensions.dll. So I tried: ...
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
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:
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
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,...

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.