Determine COM objects executing location
I built a COM object in VB .Net 2003 but can't find a way for the COM object to determine its executing location. The COM object is be called from ASP.
These are the solutions I've tried but each triggers an error:
1. Search the Registry's HKEY_CLASSES_ROOT for the CLSID of the COM object to get the CodeBase value but Registry access is prohibited.
2. Defining an object of type [Assembly] to get the CodeBase property.
Dim ThisAssembly As [Assembly] = System.Reflection.Assembly.GetExecutingAssembly
Solution 2 triggers the "An exception of type 'mscorlib: URI formats are not supported' exception.
Thank you for your help,
Scott

