By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,811 Members | 785 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,811 IT Pros & Developers. It's quick & easy.

VS2005 Security Settings/Trust

P: n/a

I have just installed VS 2005 (MSDN version) and I am having problems
coping files to the Projects folder while VS2005 is running. The
projects folder is on a network share and I have used mscorfg.msc to
set permissions as follows:

Machine | Code Groups | All_Code | LocalIntranetZone | Copy of DataShare

file://\\Jgsvr\DataShare\*.
What is happening is that copying a file, say an icon, into the
projects folder is taking several minutes during which VS2005 and
Explorer both freeze and are shown as 'Not Responding' in Task Manager.
If I copy the file without VS2005 running it copies at normal speed.

Presumably VS 2005 is controlling this somehow?

What do I need to do to fix it or change permissions or whatever, at
the moment I have to close VS2005, do the copying, and re-open it which
is not very practical.

--
Jeff Gaines
Nov 23 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
Hi Jeff,
What is happening is that copying a file, say an icon, into the
projects folder is taking several minutes during which VS2005
and Explorer both freeze and are shown as 'Not Responding'
in Task Manager.


Would you please give us more detailed info about this issue, such as which
the Windows version of your working machine and the machine that the
network share resides, does this problem only happen to a specific project
or a kind of project type(e.g. web site project), and does your machine
have any firewall or anti-virus software installed?

Currently we are unable to repro this problem in local environment and also
do not find any similar case in our database.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! :C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 23 '05 #2

P: n/a
Hi Jeff,

By the way, I don't think you need to set the permission in mscorcfg.msc,
it is used to manage and configure assemblies in the Global Assembly Cache,
adjust code access security policy, and adjust remoting services. AFAIK, it
doesn't work to a VS.NET project or a Windows file folder...
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! :C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 23 '05 #3

P: n/a
On 19/11/2005 "Gary Chang[MSFT]" wrote:
Hi Jeff,
What is happening is that copying a file, say an icon, into the
projects folder is taking several minutes during which VS2005
and Explorer both freeze and are shown as 'Not Responding'
in Task Manager.


Would you please give us more detailed info about this issue, such as
which the Windows version of your working machine and the machine
that the network share resides, does this problem only happen to a
specific project or a kind of project type(e.g. web site project),
and does your machine have any firewall or anti-virus software
installed?

Currently we are unable to repro this problem in local environment
and also do not find any similar case in our database.

Hi Gary

This is intriguing, I thought I had probably just set some permissions
incorrectly.

The server runs XP Pro SP2, it's a Pentium 4 3.0GHz Prescott with 1GB
RAM. It has Norton PF 2003 which is updated over night.

The development PC is also XP Pro SP2 with an AMD 3200+ and 2GB RAM. It
has the NVidia firewall that runs with the NForce 4 chipset.

The router is a Draytek Vigor 2600G running at 100Mbps wired with CAT5E.

I am working on Windows Forms apps, there is no Web server on either PC
- although there is a desktop version of SQL server on the server
installed by my Pinnacle Show Center, although I don't stream music
while I'm working!

The shared drive is 200GB and 61% full, I have a folder 'Visual Studio
2003' for VS2003 projects and 'Visual Studio 2005' for VS2005 projects.
The problem is particularly noticeable because as I convert apps I copy
them from the VS2003 folder to the VS2005 folder.

I have just done some tests so I can be specific. I opened a project in
VS2005 called 'JFileManager', I then copied an icon from another folder
and when I pasted it to the 'JFileManager' folder it took a couple of
minutes. I then did the same thing from a laptop, copied an icon and
paste it into the 'JFileManager' folder and it copied at normal speed.

I have just copied and pasted an icon into a different sub folder of
Visual Studio 2005 on the development PC and that also took a couple of
minutes.

Finally I closed VS2005 and copied an icon into the 'JFileManager'
folder and it copied immediately.

It seems that VS2005 has some sort of hook into its working folder that
is really slowing things down.

Is that enough detail? I am happy to try some more tests if it would
help, it would be good to get to the bottom of it :-)

--
Jeff Gaines
Nov 23 '05 #4

P: n/a
On 19/11/2005 Jeff Gaines wrote:

[snipped]

A brief follow up, according to 'WhoLockMe' the folder is locked by
devenv.exe, output is:

Locker Name devenv.exe
PID 0x018c (396)
Opened File \\jgsvr\datashare\Visual Studio 2005\Projects\JFileManager
Handle 0x0420
Domain JGMAIN
User jeff
Locker Full Path C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\devenv.exe

A similar check of 'Visual Studio 2005' shows it and all its sub
folders are locked by devenv.exe.

--
Jeff Gaines
Nov 23 '05 #5

P: n/a
Hi Jeff,

Very thanks for the detailed information!

Based on my experience, such problem could be caused by some anti-virus
software and firewall settings, have you tried to shut-down the develop
machine's and the server's Norton's PF2003 and NVidia firewall for a test,
is there any difference when running your VS2005 without those anti-virus
softwares?
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! :C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 23 '05 #6

P: n/a
On 22/11/2005 "Gary Chang[MSFT]" wrote:
Hi Jeff,

Very thanks for the detailed information!

Based on my experience, such problem could be caused by some
anti-virus software and firewall settings, have you tried to
shut-down the develop machine's and the server's Norton's PF2003 and
NVidia firewall for a test, is there any difference when running your
VS2005 without those anti-virus softwares?

Hi Gary,

I turned off both firewalls but it made no difference :-(

The only thing that does make a difference is closing VS2005 completely
when copying works at normal speed. 'WhoLockMe' shows that 'devenv.exe'
has a lock on the 'Visual Studio 2005' folder and all its sub-folders.
It's very odd, I also have VS2003 on the PC and that doesn't lock any
folders.

--
Jeff Gaines
Nov 23 '05 #7

P: n/a
Hi Jeff,

I just have perform some tests on my local environment(similar to your
description), but unable to repro this problem. Since this problem happens
when you copy the icon file via the Windows Explorer, have you tried copy
the icon within the VS2005 IDE(via the Add Existing Item to the project),
is it OK?

By the way, I suggest you also can use the Filemon
utility(www.SysInternals.com)to monitor the server machine when this
problems happens...
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! :C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 24 '05 #8

P: n/a
On 24/11/2005 "Gary Chang[MSFT]" wrote:
Hi Jeff,

I just have perform some tests on my local environment(similar to
your description), but unable to repro this problem. Since this
problem happens when you copy the icon file via the Windows Explorer,
have you tried copy the icon within the VS2005 IDE(via the Add
Existing Item to the project), is it OK?

By the way, I suggest you also can use the Filemon
utility(www.SysInternals.com)to monitor the server machine when this
problems happens...

Hi Gary

I'll have a play with Filemon but I am beginning to think I have a bad
install and somehow VS2003 and VS2005 are clashing. I had to re-build
some tools in VS2003 today (to debug things I have written in VS2005)
and it froze several times while building.

I'll do a fresh OS install in a couple of weeks and just install VS2005
and see if it's better.

Many thanks for your input :-)

--
Jeff Gaines
Nov 24 '05 #9

P: n/a
You are welcome, Jeff!

Wish this problem will disappear after the re-installation, good luck:)
Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! :C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 25 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.