[dba-VB] Visual Studio Trust

Charlotte Foust cfoust at infostatsystems.com
Fri May 25 14:57:53 CDT 2007


Haven't had to deal with it because it's someone else's headache.  I
knew about the file identifiers in XP but never knew the specifics and
had forgotten most of the rest.  Never head of ZoneStripper before.  We
use the Xceed libraries for zipping and unzipping in our apps, so it
must be handled there.

Charlotte Foust 

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Friday, May 25, 2007 11:23 AM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Visual Studio Trust

It turns out that windows XP at any rate has a "zone" embedded in each
file, at the file level.

http://www.jameskovacs.com/blog/PermaLink.aspx?guid=6985963b-3d85-41ae-b
ca8-
5f9efe2a79c7

To quote the author...

Windows XP SP2 writes a Zone Identifier on all downloaded files. So your
zip file is marked as originating from the Internet. When you unzip the
archive, your zip file manager has conveniently written the Zone
Identifier to each file contained in the archive. Thus your solution
file is marked as originating from the Internet and is thus not fully
trusted. This behavior can also occur if you copy the code from a
network share to your local drive using Windows XP SP2. ZoneStripper
removes the Zone Identifier from files and directories so that the
solution can be loaded into Visual Studio .NET without the security
warning.

How does Windows XP SP2 record the Zone Identifier? The Zone Identifier
is saved into an Alternate Data Stream (Zone.Identifier) on NTFS. One
way to remove the Zone Identifier is to move the files onto a FAT
partition and then move it back to your NTFS drive. (FAT doesn't support
Alternate Data Streams and so the Alternate Data Stream is ignored when
copying files onto a FAT partition.) The other option is to delete the
Zone.Identifier Alternate Data Stream, which is what ZoneStripper does.
To see the Alternate Data Stream, simply type the following:

notepad.exe Readme.htm:Zone.Identifier

Unfortunately the .NET Framework's System.IO classes are not Alternate
Data Stream-aware. So you must use P/Invoke to call the underlying Win32
API CreateFile (to determine if the Zone.Identifier stream exists) and
DeleteFile (to delete the Zone.Identifier stream). 

Don't even TELL me you didn't already know all this!!!

;-)

John W. Colby
Colby Consulting
www.ColbyConsulting.com
-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte
Foust
Sent: Friday, May 25, 2007 2:14 PM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Visual Studio Trust

?? Que?

Charlotte 

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Friday, May 25, 2007 10:57 AM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Visual Studio Trust

It gets worse.  Google zonestripper 


John W. Colby
Colby Consulting
www.ColbyConsulting.com
-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Friday, May 25, 2007 1:46 PM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Visual Studio Trust

Actually I tried both.  I can't get it do deal with either.  Currently
(latest) was:

\\StoneHenge\Dev\VisualStudio2005\Projects

Unfortunately to then access this location I have to be able to see the
workgroup, and more specifically the Stonehenge server and it's shares,
which I cannot.

Sometimes I think I should have just become a doctor.  It would have
been so much easier.

John W. Colby
Colby Consulting
www.ColbyConsulting.com
-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Charlotte
Foust
Sent: Friday, May 25, 2007 1:16 PM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Visual Studio Trust

Are you using a UNC path or a mapped drive, John?  As I recall, it
refuses to deal with mapped remote drives, so you might try the full UNC
path.

Charlotte Foust 

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Friday, May 25, 2007 10:00 AM
To: VBA
Subject: [dba-VB] Visual Studio Trust

I placed all of my visual studio projects out on my server.  Now Visual
Studio complains that the source is not trusted and may cause exception
errors.  In looking on the web it says to use the framework
configuration application to set a trusted zone - machine / codegroups /
allcode / local intranet zone / add a child code group.  I did that but
I cannot persuade Framework 2.0 to trust the path I set, and of course
it does not supply a file find dialog to browse for the location.

Can anyone help me out here?  What do I need to do to get this thing to
work?

The hours I waste trying to do stuff that should be made simpler!

John W. Colby
Colby Consulting
www.ColbyConsulting.com 

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com


_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com


_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com





More information about the dba-VB mailing list