Hi,
there are some things you can try, if nothing helps, you either have to:
1) uninstall Visual Studio and reinstall
2) or reinstall your OS and Visual Studio
because something is broken with your COM-registration.
By the way, all these things I found via our good friend Google, so maybe you could try harder the next time before you post a question.
The information I reiterate here for your benefit are from following links:
http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/d9a0d7b9-fb8b-4539-a7ac-1aab9b25a0f0/[
^]
and
http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/d5d3e5fc-d8ce-4f42-b7ea-9bbbb7756a20[
^]
Ok.
Before you start, open the registry editor and look in following keys:
HKEY_CLASSES_ROOT\Interface\{EDA26258-95DF-44A0-A244-D545E6C1196C}\
HKEY_LOCAL_MACHINE\Software\Classes\Interface\{EDA26258-95DF-44A0-A244-D545E6C1196C}\
There should be 2 subkeys : NumMethods and ProxyStubClsid32.
In NumMethods there should be a key-value pair: (Standard), value=5
and in ProxyStubClsid32 a key-value-pair of: (Standard), value={2C28A1A9-EDB1-4A70-AE14-E0A5C7E81C2C}
If you do not have these entries
(either the main key of {EDA26258-95DF-44A0-A244-D545E6C1196C} is missing or the values differ)
then create these entries (all string entries).
If you have these entries/keys, then go to following keys:
HKEY_CLASSES_ROOT\CLSID\{2C28A1A9-EDB1-4A70-AE14-E0A5C7E81C2C}
HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{2C28A1A9-EDB1-4A70-AE14-E0A5C7E81C2C}
In both should be a subkey named:InProcServer32 with
a key-value-pair of: (Standard), value=<Path>\msenv100p.dll
and a key-value-pair of: ThreadingModel, value=Both
Then check the path of the msenv100p.dll file. Does it exist at the specified location?
If not, search for this file (usually somewhere in the Program Files directory), open an administrator command prompt there
and re-register this dll with: regsvr32 msenv100p.dll
If your problem is not solved, try to re-register the msenv100p.dll anyway.
If this is not solving your problem, try to re-register the actxprxy.dll found in C:\Windows\system32\ in the same way as msenv100p.dll.
Hope this helps,
Thomas.