Interop - TypeConverter cannot convert from System.String

Stimulsoft Reports.NET discussion
Post Reply
marco.correa
Posts: 26
Joined: Wed Nov 16, 2011 12:33 pm
Location: Blumenau, Santa Catarina, Brazil

Interop - TypeConverter cannot convert from System.String

Post 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!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Interop - TypeConverter cannot convert from System.String

Post 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.
HowieD
Posts: 27
Joined: Fri Sep 17, 2010 8:29 am

Re: Interop - TypeConverter cannot convert from System.Strin

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Interop - TypeConverter cannot convert from System.Strin

Post by HighAley »

Hello.

Try to put necessary assemblies in the project folder.

Thank you.
HowieD
Posts: 27
Joined: Fri Sep 17, 2010 8:29 am

Re: Interop - TypeConverter cannot convert from System.Strin

Post by HowieD »

Hi Aleksey,

can you please be more specific!

Best regards
H. Dederichs
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Interop - TypeConverter cannot convert from System.Strin

Post 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.
Post Reply