'Cannot register COM assembly during BUILD

I have several Programs that are COM dlls. I am setting up my development environment on a new computer. When I build some DLLs they build successfully. Others do not build successfully.

Cannot Build

I have tried opening visual studio with "run as administrator". However when I do this on this new computer, I cannot see the mapped drives.

Mapped Drives missing

Staying with Cannot register, I notice in the image that the project that will not build references a URL in the error message. The project that builds successfully references a mapped drive.

For troubleshooting I would like to replace the URL with the mapped drive. I opened the project (opened .vbproj, not .sln) that does not build by navigating to the mapped drive but still when it was built, the URL appears in the Error window.

How do I get the mapped drive to be used during Build rather than the URL? Where can I change that reference?

Not knowing if my troubleshooting idea above will work, let me ask the more general question. How do I eliminate the Cannot register error?

The best solution for me would be to have the mapped drives appear when I select "run as administrator". I know this is possible because on a different computer at different location with a different IT staff, the mapped drives appear. How do I get the mapped drives to appear when I "run as administrator"

Thank you, pat

The image to my comment regarding the Registry fix. Fix Mapped links



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source