Error "Method:[CreateInstance]" when running report in designer

Stimulsoft Reports.NET discussion
Post Reply
mb019
Posts: 7
Joined: Tue Feb 20, 2007 3:51 am

Error "Method:[CreateInstance]" when running report in designer

Post by mb019 »

Hi!

I create a solution in visual studio 2005 as ActiveX component dll that has 2 interfaces, the first one displays the report and the second runs the report in the designer.
In addition I create an application in VB 6.0 where i use to test the report from the ActiveX component

In the application I use the second inteface to run a report in the design but unfortunately, I get a message "Method:[CreateInstance]" when clicking the preview tab.
I know that my defined class named "GLOwnerCollection" causes the error but I do not know how to solve the problem.

Here is a source in c# and in VB6.0
http://www.megaupload.com/?d=H5VDKHNU

Any help would be appreciated

Thanks
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Error "Method:[CreateInstance]" when running report in designer

Post by Vital »

Please send source code to support [at] stimulsoft [dot] com.

Thank you.
mb019
Posts: 7
Joined: Tue Feb 20, 2007 3:51 am

Error "Method:[CreateInstance]" when running report in designer

Post by mb019 »

Thanks for support

I'll send them today.

Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Error "Method:[CreateInstance]" when running report in designer

Post by Vital »

This error occurs because c# compiler (which called when you click on preview tab) can't find GLReport.dll assembly. Copy file GLReport.dll to directory where located GLStimulReport.exe.

Thank you.
mb019
Posts: 7
Joined: Tue Feb 20, 2007 3:51 am

Error "Method:[CreateInstance]" when running report in designer

Post by mb019 »

Thanks for the great help and my report is working great now.

But I am wondering if it is possible to locate my GLReport.dll in another place instead of located in the same place as application. Do you have any ideas?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Error "Method:[CreateInstance]" when running report in designer

Post by Vital »

Place this dll to GAC.

Thank you.
mb019
Posts: 7
Joined: Tue Feb 20, 2007 3:51 am

Error "Method:[CreateInstance]" when running report in designer

Post by mb019 »

From now on my report can find the dll after moving that to GAC ... BINGO!!! working such as I desired ...

I just would like to say many thanks for the GREAT support.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Error "Method:[CreateInstance]" when running report in designer

Post by Vital »

Thank you for your words.
Post Reply