Jon Skeet wrote:
> Arild Fines wrote:
>> One other thing you could try is to run procmon while doing the
>> regasm; the
>> registry keys and files it tries to access right before failing would be
>> very interesting.
>
> Right, will do. Tomorrow though - far too tired for tonight :)
I couldn't resist in the end. Running it not in an admin console window
was fairly pointless, but in an admin console window it's HKCR\Ankh
which causes problems.
And, indeed, loading regedit shows why (sort of). Even running when
logged in as the administrative account, regedit can't even display the
permissions of that key. All the other keys are okay, but HKCR\Ankh
isn't. Having said that, the installer manages to remove it, which is
pretty odd. (It does leave a load of the other HKCR Ankh-related keys
around though - is that expected?)
Now, I've moved the problem on slightly further by uninstalling then
manually creating the HKCR\Ankh and HKCR\Ankh\CLSID keys, then
reinstalling. At that point, I get this error:
---------------------------
An error occurred while Ankh was loading (Press Ctrl-C to copy this
message to the clipboard)
---------------------------
System.Runtime.InteropServices.COMException (0x800401F3): Invalid class
string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
at EnvDTE.Windows.CreateToolWindow(AddIn AddInInst, String ProgID,
String Caption, String GuidPosition, Object& DocObj)
at Ankh.UIShell.CreateRepositoryExplorer() in
D:\tmp\build-13\src\Ankh\UIShell.cs:line 448
at Ankh.UIShell.get_RepositoryExplorer() in
D:\tmp\build-13\src\Ankh\UIShell.cs:line 32
at Ankh.RepositoryExplorer.Controller..ctor(IContext context) in
D:\tmp\build-13\src\Ankh\RepositoryExplorer\Controller.cs:line 25
at Ankh.AnkhContext..ctor(_DTE dte, AddIn addin, IUIShell uiShell)
in D:\tmp\build-13\src\Ankh\AnkhContext.cs:line 73
at Ankh.Connect.OnConnection(Object application, ext_ConnectMode
connectMode, Object addInInst, Array& custom) in
D:\tmp\build-13\src\Ankh\Connect.cs:line 89
---------------------------
OK
---------------------------
Clearly I shouldn't have to create those keys to start with, and I'm
sure that by doing so manually I haven't really helped the underlying
problem much (as shown by it still not working) but hopefully the above
may shed *some* light on what's going on...
Anything else worth checking?
I can now run regasm ankh.dll from an admin console, btw.
Jon
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...