Wikis - Page

Exception occured in Connect error when trying to open up a Visual Stud

0 Likes

PROBLEM:
After installing the Accubridge Visual Studio 2005 integration the following error occurs when trying to open up a project:

Exception occured in Connect

CAUSE:

By default when the integration is installed Accurev files will be placed into a directory path:
"My Documents\Visual Studio 2005\Addins"
This path is generally located under

"C:\Documents and Settings\username"

which is determined by the USERPROFILE setting (from a command window type set and hit enter)

In some situations a users USERPROFILE setting may be a mapped drive or a network share which can then cause the error above to occur.

RESOLUTION:

There are two options:
1) Change the above USERPROFILE setting to the standard C:\Documents and Settings\username. Log off and log back on to ensure the change. Rerun the installer package for the VisualStudio2005 Accubridge integration.

2) In some cases users may not be allowed to change the USERPROFILE setting. In this instance the following workaround can be used:

In Visual Studio go into Tools/options. Under Environment select Add-in/Macro Security. Add a new "addin" path. (this path can be anywhere you like. You can even browse to the path
C:\Documents and Settings\username\My Documents\Visual Studio 2005\Addins.

Once you have created an mapped that location in Visual Studio copy these files that the installer originally placed in the default USERPROFILE defined location:

interop.ACCUREVLib.dll,
interop.VSUserControlHostLib.dll,
VS05Addin.AddIn,
SourceGrid2.dll,
SourceLibrary.dll,
VS05Addin.tlb,
VSUserControlHost.dll.

to your nelwy established addins directory.

Close and reopen Visual Studio. The error should no longer appear.

One side note. You will notice that the files will still get created in the old USERPROFILE defined location as well as your new location. If you feel you do not need the old location you can go back into the add-in/Macro section and remove the line %vsmydocuments\ADDINS%. Keeping this will not cause any harm so only remove it if you are sure you will not need that location for any other VisualStudio projects.

For more information contact AccuRev Support

Comment List
Related
Recommended