The failure of unmanaged code(Delphi) consumes Com from .Net


we have  access  com dll developed c#,    when codebase register(regasm) local path, works fine. when codebase mapped driver, throws error "interface not supported" delphi7. fuslogvw.exe, find com dll has bound successfully.  tested use caspol.exe grant full trust mapped driver, like:

caspol.exe -m -ag 1.2 -url file://s:\comclass.dll fulltrust.

i'm wondering if managed com dll can not registered mapped driver????

*** assembly binder log entry (2013-11-8 @ 15:28:14) *** operation successful. bind result: hr = 0x0. operation completed successfully. assembly manager loaded from: c:\windows\microsoft.net\framework\v2.0.50727\mscorwks.dll running under executable d:\project\testcom.exe --- detailed error log follows. === pre-bind state information === log: user = jason-delphi7wi\dev log: where-ref bind. location = s:/comclass.dll log: appbase = file:///d:/project/ log: initial privatepath = null log: dynamic base = null log: cache base = null log: appname = testcom.exe calling assembly : (unknown). === log: bind starts in loadfrom load context. wrn: native image not probed in loadfrom context. native image probed in default load context, assembly.load(). log: no application configuration file found. log: using machine configuration file c:\windows\microsoft.net\framework\v2.0.50727\config\machine.config. log: attempting download of new url file:///s:/comclass.dll. log: assembly download successful. attempting setup of file: s:\comclass.dll log: entering run-from-source setup phase. log: assembly name is: comclass, version=1.0.0.0, culture=neutral, publickeytoken=ec829f3f15982550 log: re-apply policy where-ref bind. log: post-policy reference: comclass, version=1.0.0.0, culture=neutral, publickeytoken=ec829f3f15982550 log: gac lookup unsuccessful. log: where-ref bind codebase not match found in default context. keep result in loadfrom context. log: binding succeeds. returns assembly s:\comclass.dll. log: assembly loaded in loadfrom load context.




hello,

from error message, seems delphi7 not support interface.

do have try other delphi higher 7?

and error message “interface not supported”, please have check link below:

http://stackoverflow.com/questions/16195992/eintfcasterror-interface-not-supported-when-run-as-a-tserviceapplication

hope helpful you.

regards.


we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place.
click here participate survey.



.NET Framework  >  Common Language Runtime Internals and Architecture



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'