Access Denied

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
jnapier

Access Denied

Post by jnapier » Wed Feb 18, 2004 7:59 pm

Using vault 2.0

Get ACCESS DENIED message when getting latest version of solution through vs.net. The problem seems to oocur when I have deleted a file from a vs.net project and also from vault. I then go to another machine and do a get latest on the project. It seems as though vs.net is trying to get the deleted file from vault.

I guess this could occur if vault tries to get the source files based on the project file on disk as opposed to the project file in source control that contains the modifications. You would think that doing a get latest on the project should get the .csproj file first though.

I can provide more information if you can't reproduce.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed Feb 18, 2004 9:54 pm

I'll try to reproduce this here (tomorrow), and see what I can find. Sorry for letting your post in the other forum scroll off the urgent pile :oops:

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Thu Feb 19, 2004 8:34 am

I've tried this out a couple ways, but am not seeing the problem. Here is what I tried:

1. Create simple C# project in VS.Net 2003, Vault 2.0 - Add 4 forms to the project, and to Vault source control.

2. On separate machine, do an open from source control from VS.Net from same project. On that machine, delete one of the forms. Then bring up the Vault GUI client and delete the .cs and .resx files from Vault.

3. Go back to first machine and do a get latest. All seems fine.

4. On 2nd machine, delete another form both from VS.Net and from Vault.

5. On 1st machine, exit VS.Net, and re-enter, then do a Get. All still seems fine.

If you send me a different set of steps, I'll try them here and see if I can reproduce.

Thanks,

Guest

Post by Guest » Fri Mar 05, 2004 1:52 pm

I walked through your steps too and did not have the problem. The problem seems to be with our existing apps that were imported from SourceSafe. I have talked to other developers and we have all expericed this problem on different projects. I don't know what else I can provide you to help solve the problem, but it is recurring and troublesome. Let me know what I can do.

jnapier
Posts: 42
Joined: Fri Mar 05, 2004 12:18 pm

Post by jnapier » Fri Mar 05, 2004 3:12 pm

I did a geet latest version on the .csproj files for my solution through the vault client, then went to vs.net and did a get latest version, everything worked fine.

So this kind of proves my theory that vs.net is attempting to get the files in the project before it actually gets the project file itsself.

I hope that helps.

msmeltzer

Re: Access Denied

Post by msmeltzer » Fri Mar 05, 2004 7:26 pm

jnapier wrote:Get ACCESS DENIED message when getting latest version of solution through vs.net. The problem seems to oocur when I have deleted a file from a vs.net project and also from vault. I then go to another machine and do a get latest on the project. It seems as though vs.net is trying to get the deleted file from vault.
I was having this same problem, then I noticed that I didn't have "store data in working folders" enabled and I thought that the "Access Denied" error could be an IO issue, so I enabled the option and the get latest worked after an IDE restart.

However, I have only experienced the glitch this one time. The IDE restart may have been the cure, not the change in the option.

Guest

Re: Access Denied

Post by Guest » Fri Mar 05, 2004 7:39 pm

msmeltzer wrote:
jnapier wrote:Get ACCESS DENIED message when getting latest version of solution through vs.net. The problem seems to oocur when I have deleted a file from a vs.net project and also from vault. I then go to another machine and do a get latest on the project. It seems as though vs.net is trying to get the deleted file from vault.
I was having this same problem, then I noticed that I didn't have "store data in working folders" enabled and I thought that the "Access Denied" error could be an IO issue, so I enabled the option and the get latest worked after an IDE restart.

However, I have only experienced the glitch this one time. The IDE restart may have been the cure, not the change in the option.
Scratch that suggestion. I just got the error again even with the option enabled.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Mon Mar 08, 2004 2:49 pm

Since we haven't had any luck trying to localize this, I've created a special debug IDE client that outputs a whole mess of debug info to the VS.Net output pane, so if it happens again, we can get some idea of where in the process it is failing. This will likely require multiple iterations of debug clients to find out exactly what is happening.

If anyone is interested in this, email me and I'll send it to you.

Thanks,

Terry Denham
Posts: 3
Joined: Thu Mar 11, 2004 5:37 pm

Post by Terry Denham » Thu Mar 18, 2004 8:22 pm

I'm getting this error as well. Here's what I've done recently to the project.

had several files in the repos, labeled the root folder, made more checkins with the lastest one being a multi file checkin when I noticed that one file I wasn't supposted to checkin (has passwords in a shared file).

Since it was part of a multi file checkin when I tried to roll back it created a new version of the file instead of reversing the diffs to get back to a previous version. Since this isn't what I want (don't want others to see password information) I deleted the file from the repos and added back in the cleaned file (web.config).

Also when I get the latest I'm tellint it to overwrite whats in my local dir and not try to do a merge.

but now that the local dir is in sync I don't get the error any more.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Info on Access Denied from IDE

Post by dan » Tue Mar 30, 2004 2:32 pm

We recently tracked down why this is happening for at least one user. Hopefully, this will apply more generally:

A user was getting "Access Denied" from the IDE everytime they did a Get operation. In looking at the output pane of the IDE, there was a dll that Vault was trying to get, but it was in-use by the web service where it was trying to write the file to, thus getting an access failure message.

In his case, the file had an Unknown status in Vault, and he had to remove the file from the working folder and do the Get for Vault to know the status. However, this could happen any time a new file version is checked in to Vault, and the user does a Get to a file that is in-use.

BrianGorbett
Posts: 6
Joined: Thu Apr 01, 2004 9:11 pm

Access Denied

Post by BrianGorbett » Mon Jul 19, 2004 6:19 pm

I just starting receiving this on my work machine. I deleted a folder on my laptop machine at home, closed Vault and remoted in to my work machine.

I am not sure if deleting the folder in Vault has anything to do with it, but this is the first time I started receiving the "Access Denied" when trying to get the project (it appears that I can get folders).

Help.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Tue Jul 20, 2004 8:19 am

Does the output pane from withing Visual Studio have any helpful information in it?

Post Reply