Click here to Skip to main content
15,902,198 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compression posted images files Pin
Daniel Turini7-Apr-04 6:56
Daniel Turini7-Apr-04 6:56 
GeneralUsing ChooseColor through interop Pin
turbochimp7-Apr-04 5:58
turbochimp7-Apr-04 5:58 
GeneralRe: Using ChooseColor through interop Pin
Roman Rodov7-Apr-04 15:46
Roman Rodov7-Apr-04 15:46 
GeneralRe: Using ChooseColor through interop Pin
turbochimp8-Apr-04 3:17
turbochimp8-Apr-04 3:17 
GeneralBlocking System from Executing certain Keypress Combinations Pin
Nagendra Kamath K7-Apr-04 5:54
Nagendra Kamath K7-Apr-04 5:54 
GeneralRe: Blocking System from Executing certain Keypress Combinations Pin
Dave Kreskowiak7-Apr-04 6:27
mveDave Kreskowiak7-Apr-04 6:27 
GeneralQuestion re: COM Interop Pin
Skyguard7-Apr-04 5:12
Skyguard7-Apr-04 5:12 
GeneralRe: Question re: COM Interop Pin
Heath Stewart7-Apr-04 5:40
protectorHeath Stewart7-Apr-04 5:40 
No, the dependent assembly does not need to expose a CCW. The CCW is a way of exposing a .NET component to COM clients, but the component is still a .NET component and thus uses other .NET assemblies like any other .NET application.

These assemblies must be resolvable, however. It seems that your assembly isn't being found. When you register your assembly exposing the CCW, do so with regasm /codebase MyAssembly.dll. This registers the full path to the assembly. Better yet, install all your assemblies in the Global Assembly Cache (GAC), then just register it with regasm MyAssembly.dll.

The deal with assembly resolution is that the application directory is checked first, and then if a probing section is configured in the application's .config file, those sub-directories referenced in that section are checked as well. Since your COM client may run from anywhere and use your CCW without knowledge of where the file is (the COM system deals with this information), you don't really know where to put the second, dependent assembly. This is why you put it into the GAC. After the CLR fails to find the assembly in the application directory or probing paths (and no explicit locations are mentioned in the assemblyBinding section of the .config file), it looks in the GAC. The PATH environment variable is never used, unlike native executables.

For more information about how assemblies are resolved, read How the Runtime Locates Assemblies[^] in the .NET Framework SDK.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Question re: COM Interop Pin
Anonymous7-Apr-04 6:12
Anonymous7-Apr-04 6:12 
GeneralRe: Question re: COM Interop Pin
Skyguard7-Apr-04 6:19
Skyguard7-Apr-04 6:19 
GeneralRe: Question re: COM Interop Pin
Heath Stewart7-Apr-04 6:26
protectorHeath Stewart7-Apr-04 6:26 
Generaldon't show DataGrid detail link for records w/o detail Pin
Bitwise Gamgee7-Apr-04 5:02
Bitwise Gamgee7-Apr-04 5:02 
GeneralRe: don't show DataGrid detail link for records w/o detail Pin
Heath Stewart7-Apr-04 7:03
protectorHeath Stewart7-Apr-04 7:03 
GeneralDataReader Pin
Demian Panello7-Apr-04 5:00
Demian Panello7-Apr-04 5:00 
GeneralRe: DataReader Pin
Charlie Williams7-Apr-04 5:17
Charlie Williams7-Apr-04 5:17 
GeneralRe: DataReader Pin
Bill Dean7-Apr-04 6:31
Bill Dean7-Apr-04 6:31 
QuestionHow to set Line's properties in Crystal Report with C# ? Pin
Xpeive7-Apr-04 3:44
Xpeive7-Apr-04 3:44 
GeneralSome basic concept... but i'm confused Pin
Forrest Feather7-Apr-04 3:28
Forrest Feather7-Apr-04 3:28 
GeneralRe: Some basic concept... but i'm confused Pin
Enrico Angkawijaya7-Apr-04 3:37
Enrico Angkawijaya7-Apr-04 3:37 
GeneralPositioning StatusBarPanels Pin
mrehbich7-Apr-04 2:08
mrehbich7-Apr-04 2:08 
GeneralRe: Positioning StatusBarPanels Pin
Colin Angus Mackay7-Apr-04 3:33
Colin Angus Mackay7-Apr-04 3:33 
Generalrotate an image Pin
Homer S7-Apr-04 1:53
sussHomer S7-Apr-04 1:53 
GeneralRe: rotate an image Pin
Colin Angus Mackay7-Apr-04 3:00
Colin Angus Mackay7-Apr-04 3:00 
GeneralCapturing a perticular part of an Image Pin
Nagendra Kamath K7-Apr-04 1:28
Nagendra Kamath K7-Apr-04 1:28 
GeneralMessage Removed Pin
7-Apr-04 3:59
wibblewibblewibble7-Apr-04 3:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.