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

Trust permission opening a project.

Hi,

This is a novists question so please bear with me!

I downloaded a test C# project from 'The Code Project' internet site.
Unzipped the project to my local folder 'C:\Test'. When I open the
project (SingleInstanceApp.csproj file) from within Visual C# I get the
following error dialog:

The project location is not trusted.

Running the application may result in security exceptions when it
attempts to perform actions which require full trust.

I click OK and can compile and run it OK. It's a simple app which does
no file access etc. so I assume for this application the full trust
requirement is not an issue.

When I go into the .NET Framework 2.0 Configuration utility and look at
this node:

Runtime Security Policy\Machine\Code Groups\All_Code\My_Computer_Zone

It has the following description:

Code group grants full trust to all code originating on the local
computer

Assembly evidence must match this membership condition to belong to the
code group: Zone: MyComputer.

Assemblies matching the membership condition are granted this
permission set at the current policy level: FullTrust.

Permission Set Description:
Allows full access to all resources
I assume it's the 'Assembly evidence must match' part that is causing
me trouble. My question is, what do I need to do to get rid of this
error and ensure that the project gets Full trust status. BTW. The
projects that I have created from scratch do not have this problem when
I open the project.

TIA.

John.

Jul 26 '06 #1
2 1878
<Jo********@hotmail.co.ukwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hi,

This is a novists question so please bear with me!

I downloaded a test C# project from 'The Code Project' internet site.
Unzipped the project to my local folder 'C:\Test'.
When you download a file, it gets flagged as originating from outside the
local machine. When you extract a downloaded zip archive, each extracted
file receives the same flag. This means that all your project files appear
to be located in the internet zone, which is why they are receiving only a
partial CAS permission grant. The best way to avoid this problem is to
remove the flag from the zip archive before extracting it. To do so,
right-click the zip file, select the Properties item from the context menu,
then click the Unblock button on the General tab of the file properties
dialog.

When I open the
project (SingleInstanceApp.csproj file) from within Visual C# I get the
following error dialog:

The project location is not trusted.

Running the application may result in security exceptions when it
attempts to perform actions which require full trust.

I click OK and can compile and run it OK. It's a simple app which does
no file access etc. so I assume for this application the full trust
requirement is not an issue.
It may or may not be. If you compiled the app on your machine, it probably
isn't being flagged as originating elsewhere, so chances are that it's
receiving an unrestricted CAS permission grant.

>
When I go into the .NET Framework 2.0 Configuration utility and look at
this node:

Runtime Security Policy\Machine\Code Groups\All_Code\My_Computer_Zone

It has the following description:

Code group grants full trust to all code originating on the local
computer

Assembly evidence must match this membership condition to belong to the
code group: Zone: MyComputer.

Assemblies matching the membership condition are granted this
permission set at the current policy level: FullTrust.

Permission Set Description:
Allows full access to all resources
I assume it's the 'Assembly evidence must match' part that is causing
me trouble. My question is, what do I need to do to get rid of this
error and ensure that the project gets Full trust status. BTW. The
projects that I have created from scratch do not have this problem when
I open the project.

TIA.

John.
Jul 26 '06 #2
Thanks Nicole, I'll try that.

Nicole Calinoiu wrote:
<Jo********@hotmail.co.ukwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Hi,

This is a novists question so please bear with me!

I downloaded a test C# project from 'The Code Project' internet site.
Unzipped the project to my local folder 'C:\Test'.

When you download a file, it gets flagged as originating from outside the
local machine. When you extract a downloaded zip archive, each extracted
file receives the same flag. This means that all your project files appear
to be located in the internet zone, which is why they are receiving only a
partial CAS permission grant. The best way to avoid this problem is to
remove the flag from the zip archive before extracting it. To do so,
right-click the zip file, select the Properties item from the context menu,
then click the Unblock button on the General tab of the file properties
dialog.

When I open the
project (SingleInstanceApp.csproj file) from within Visual C# I get the
following error dialog:

The project location is not trusted.

Running the application may result in security exceptions when it
attempts to perform actions which require full trust.

I click OK and can compile and run it OK. It's a simple app which does
no file access etc. so I assume for this application the full trust
requirement is not an issue.

It may or may not be. If you compiled the app on your machine, it probably
isn't being flagged as originating elsewhere, so chances are that it's
receiving an unrestricted CAS permission grant.


When I go into the .NET Framework 2.0 Configuration utility and look at
this node:

Runtime Security Policy\Machine\Code Groups\All_Code\My_Computer_Zone

It has the following description:

Code group grants full trust to all code originating on the local
computer

Assembly evidence must match this membership condition to belong to the
code group: Zone: MyComputer.

Assemblies matching the membership condition are granted this
permission set at the current policy level: FullTrust.

Permission Set Description:
Allows full access to all resources
I assume it's the 'Assembly evidence must match' part that is causing
me trouble. My question is, what do I need to do to get rid of this
error and ensure that the project gets Full trust status. BTW. The
projects that I have created from scratch do not have this problem when
I open the project.

TIA.

John.
Jul 26 '06 #3

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

Similar topics

2
by: Peter Olcott | last post by:
How do I make the .NET framework trust my local area network? I keep getting the error message whenever I load a project from the network, and I need to always store all of my projects on the...
12
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current...
5
by: Graham | last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider" that derives from "MembershipProvider". This providor is located in a Businesslogic layer dll called...
3
by: Aahz | last post by:
I have asp.net 1.1 web site with two controls downloaded from internet (obout slide menu and webcharts), which runs fine on the old server. Few days ago my hosting provider sent me on new server...
3
by: musosdev | last post by:
Hi guys I've got the following error on a project which is running locally on a vs2005 machine (built in webserver), trying to connect to my win2k3 server active directory. the error is... ...
0
by: Atul Thombre | last post by:
Hello, I am developing a custom membership provider. For that I built a prototype that uses a SQL Server 2005 database as a backend store. I implemented the class...
1
by: Xesued | last post by:
Im farily new to ASP.NET. I am using a hosting service that has medium trust. I configured my computer for medium trust as well so I can develope local and plublish later. My problem lies with the...
3
by: Mukesh | last post by:
Hi all I have Created an web application using VS 2005, asp.net2.0, Ajax Extensions 1.0, Ent Lib 3.1 , MS sql Server 2005, ajax Control tool kit Version 1.0.10618.0
0
by: ilkka | last post by:
Hi ! SimpleWorkerRequest class can be used to host asp.net pages outside of IIS. However when a web application is configured to run as medium trust (or lower), you will get an exception...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.