Forum Discussion

sanjay0288's avatar
Frequent Contributor
7 years ago

Question on CLR bridge

Hi,   Can anyone shed some light or working on CLR bridge through test complete? Sorry for being dumb, I am trying to write some data to a text file using StreamWriter and finding no success. Can a...
  • AlexKaras's avatar
    7 years ago



    I think that contains quite good description of the CLR Bridge.
    Basically, you may consider CLR Bridge to be an analogue of the rundll.exe utility from native Windows. I.e. CLR Bridge just passes the name of the assembly and the method to the .Net runtime and leaves all further processing to it.

    One case that I met recently in CLR Bridge and that we are working on now with Support is that there is a problem with assembly version redirection.
    The problem occurs when some assembly A internally references another assembly B of certain version, but the target system contains assembly B of another version. For the regular .Net executable this is handled via the <app>.exe.config file that instructs .Net runtime what redirections must be done for the absent assemblies. But this does not work for CLR Bridge because there is no executable in this case and thus settings from .exe.config cannot be applied.

    Otherwise. the usage of CLR Bridge is pretty straightforward and should not provide you with any major problem.