ICodeCompiler CompilerParameters ReferencedAssemblies problem

  • Thread starter Thread starter phancey
  • Start date Start date
P

phancey

Hi,

I am using a library for calling a web service dynamically (library
downloaded from
http://www.thinktecture.com/Resources/Software/DynWsLib/default.html).

This works fine if I use it within a console application written in
C#.NET. However I am now trying to incorporate it into a COM dll
written in C#.NET. When running from the IDE and with the client
application in the same solution everything works fine. But if I call
it from another client app (either in debug mode or run mode) it fails
with error - "could not load metadata file
Thinktecture.Tools.Web.Services.Extensions.Messages.dll".

This error is in the downloaded library's method BuildAssemblyFromWsdl
where despite the cp.ReferencedAssemblies.Add(location +
"Thinktecture.Tools.Web.Services.Extensions.Messages.dll") line, the
CompilerResults show this error. I have installed the
Thinktecture.Tools.Web.Services.Extensions.Messages.dll into the GAC (I
think - it certainly appears there) so what else could be wrong?

Any ideas? I have contacted the library's supplier also but it is not a
supported product and if you guys/gals have got any ideas I'd be
pleased to hear them.

Thanks
Phil
 
Actually, although I think I've installed it in the GAC, it doesn't
appear in the list of .NET references available when I "Add Reference"
and I have to browse to the .dll.

This is probably the fundamental problem but I still don't have the
answer. Why does it appear in my Assembly Cache in .NET Framework 1.1
Configuration but not in my list of Add Reference assemblies? I've also
done a gacutil /l and it is listed there too.

thanks
 
Back
Top