Page 1 of 1

Interop - TypeConverter cannot convert from System.String

Posted: Wed Apr 18, 2012 4:12 pm
by marco.correa
Hello,

We're creating an integration between .Net and VB6. To do this we created a proxy interface on managed side (.Net) to call stimulsoft's functions.

The Stimulsoft's DLLs aren't on GAC. We're maintaining these files in the same folder of the interface quoted above.

When we call functions of this interface passing a report path on the method stiReportInstance.Load() this function return a message:

"TypeConverter cannot convert from System.String".

If we register Stimulsoft's DLLs on GAC the error doesn't occur. Can you explain why we need to register DLLs to work?

Thank you!

Interop - TypeConverter cannot convert from System.String

Posted: Thu Apr 19, 2012 9:38 am
by HighAley
Hello.

Possibly you did put all needed DLLs in your project folder and system had found different version of one of DLLs in your system. Please, try to remove all other DLLs from your system. They could stay in a temporary directory.

Thank you.

Re: Interop - TypeConverter cannot convert from System.Strin

Posted: Mon Dec 02, 2013 10:33 am
by HowieD
Hi all,

we have exactly the same error with our COM Integration.
We have only the current Stimulsoft Dll's (Version 2013.2.1700) in the program Folder but the error occurs until we Register the Dll's in the GAC.

What can be done to avoid registering the Stimulsoft Dll's in the GAC?

Best regards
H. Dederichs

Re: Interop - TypeConverter cannot convert from System.Strin

Posted: Thu Dec 05, 2013 6:59 am
by HighAley
Hello.

Try to put necessary assemblies in the project folder.

Thank you.

Re: Interop - TypeConverter cannot convert from System.Strin

Posted: Thu Dec 05, 2013 10:28 am
by HowieD
Hi Aleksey,

can you please be more specific!

Best regards
H. Dederichs

Re: Interop - TypeConverter cannot convert from System.Strin

Posted: Thu Dec 05, 2013 12:54 pm
by HighAley
Hello.

We didn't meet this error before.
Possibly you did put all needed DLLs in your project folder and system had found different version of one of DLLs in your system.
Please, try to remove all other DLLs from your system. They could stay in a temporary directory.
Please, read the How the Runtime Locates Assemblies article http://msdn.microsoft.com/en-us/library/yx7xezcf
As you could read there the common language runtime check for Previously Referenced Assemblies and the Global Assembly Cache.
So you should remove ALL old assembles from your system.
Please, replace assemblies from GAC with latest ones and search all over your system for any other our assemblies.

Thank you.