Error D2022 on build of project on network drive

I am bulding a VC++ project in VC.NET 2003. All of the project and source files are on a mapped network drive, mapped by drive letter. The "client" machine (where the project is being built) is Win XP Pro and the "server" machine (where the files are stored) is also Win XP Pro. They are in a workgroup. The client machine is logged in as a local administrator. The credentials used for the mapped drive were local adminstrator on the server machine.

Everything was fine under VS 2002. I upgraded to VS 2005 and got an error when I try to build:

Command line error D2022 : cannot open 'n:\....\RSP0000001.rsp'

I installed VS 2003 and got the same result. Again- everything was perfectly fine under VS 2002 and -nothing- was changed in the project.

I have read a couple of bug reports on the internet saying the VS doesnt support building projects stored on network drives, but I simply cant believe that such a glaring bug would be released into production software. Surely someone at some time must have tried to build a project that was stored on a network drive at some point.

Is this a confirmed bug Is there any available patch or workaround Will it work differently if the files are on a 2003 Server Will it work if I create a domain



Answer this question

Error D2022 on build of project on network drive

  • jtdavies

    I have a similar problem with Studio 2003 Professional. When compiling a file:

    cl : Command line error D2022 : cannot open 'z:\BasicEngine\Debug\RSP000006.rsp'

    Could not delete temporary file. Make sure that you do not have it open and that the file is not protected.

    I have the issue when using a mapped drive, or when using "offline" file versions of the share (when online), or the UNC name.

    In order to delete the .rsp file, I have to login to the server and delete there.

    This worked okay for me when using VC6

    If I copy the file to a local folder it works okay.

    google will turn up lots of people asking for help on this -- way more than the 4 who voted on the bug (i didn't vote).

    A better explination of the issue would help a lot (when it occurs). Also the fact that it is very difficutl to figure out how to delete the .rsp files is very annoying.


  • MatrixResolver

    the machine where your files are stored either needs to be a server (win 2k/2003/etc) or, if an xp machine, needs to be in the same domain as the machine that is doing the build. basically its some kind of credentials problem that can only be resolved by one of the two scenarios above.
  • mangelp

    Could you please log a bug at http://lab.msdn.microsoft.com/productfeedback/default.aspx with a sample reproducing the issue

    Also, please reply back to this post with the link to the bug so that other folks could follow up on it.

    Thanks in advance for taking the time to report the issue!

    Thanks,
    Ayman Shoukry
    VC++ Team


  • mesh

    and, yes, the project compiles fine from a local drive
  • Art102

    not sure what yo mean by a sample. all you need is a project with one source file. create a project, add a file called main.cpp

    int main() {

    }

    thats it

    i tried to log the bug several times, but the bug logging website was down. i sent an email but got no response and got tired of checking if it was back up.

    the problem was fixed by joining all computers to a domain, so the only issue is when an XP machine tries to access files on another XP machine and they are in a workgroup, not a domain.


  • Thomas Lee

    Shaun,

    for an explanation of the issue, and possible work-arounds, please see the thread at:

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=24453&SiteID=1

    and see my last comment(s).

    also, a bug is entered already at http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx feedbackid=8fb28ec3-897a-4467-a2ca-6e11d7c324ac&f=11

    you can vote on that bug rather that enter a new one

    thanks,

    josh

    vc++ project system developer



  • Error D2022 on build of project on network drive