ActiveSizer Support

Started by Yesugey at 07-28-2008 2:53 AM. Topic has 8 replies.

Print Search Rate
Sort Posts:    
   07-28-2008, 2:53 AM
Yesugey is not online. Last active: 7/28/2008 11:42:17 PM Yesugey



Not Ranked
Joined on 07-28-2008
Turkiye
Posts 8
oField gives NullReferenceException

Attachment: errr.JPG

I have a little problem with main ASP.NET example of DynaCube.

You know the example is simply creating a cube, saving it and showing it on the webpage. My cube cannot be created, when i commented out the try-catch parts, i getting this error: "oField" needs Constructor to be used, but i cant create one because it have no constructor anyway. I bet some of you guys saw this error before.

 

I converted for VS2005 myself, if anyone have a sample for how to use DynaCube in VS2005, it will be great help.



   Report 
   07-28-2008, 5:47 AM
Andrey - DD is not online. Last active: 2/2/2010 6:17:12 PM Andrey - DD

Top 25 Posts
Joined on 08-01-2007
Russia, Novosibirsk
Posts 561

DDStaff
Re: oField gives NullReferenceException

Attachment: WindowsApplication3.zip
Yesugey,

In order to use DynamiCube3 with VS2005 you should nstall DynamiCube 3.0 Primary Interop Assembly first.
This KB article should be helpful:
http://www.datadynamics.com/forums/97491/ShowPost.aspx

Also, I've attached a simple sample which shows how to use DynamiCube3 in VB 2005.

Install DynamiCube 3.3.0.1215, install DynamiCube primary interop assembly and open this sampple in VB 2005.

Thank you,
Andrey T.
   Report 
   07-28-2008, 7:42 AM
Yesugey is not online. Last active: 7/28/2008 11:42:17 PM Yesugey



Not Ranked
Joined on 07-28-2008
Turkiye
Posts 8
Re: oField gives NullReferenceException

Attachment: DynaCube_AspNET.rar

Hi Andrey; Thanks for your answer.

I already installed the .bat file you gave me. But i forgot to tell you it is not Windows application, it is a Web Site i want to create. I sent you the source code as an attachment.

The code is simply creating a cub file first, then showing it on the webpage. I commented out the try-catch part of it, so you will be able to see the nullReference error..


   Report 
   07-28-2008, 10:43 AM
Andrey - DD is not online. Last active: 2/2/2010 6:17:12 PM Andrey - DD

Top 25 Posts
Joined on 08-01-2007
Russia, Novosibirsk
Posts 561

DDStaff
Re: oField gives NullReferenceException

Attachment: WebApplication5.zip
Yesugey,

I've updated the sample and now it uses DynamiCube's interop assembly
(using DataDynamics.DynamiCube.Interop;). Sample works fine for me now. Please see the attachment.

Thank you,
Andrey T.
   Report 
   07-29-2008, 4:18 AM
Yesugey is not online. Last active: 7/28/2008 11:42:17 PM Yesugey



Not Ranked
Joined on 07-28-2008
Turkiye
Posts 8
Re: oField gives NullReferenceException

Attachment: 6giC06.tmp.jpg

Hi Again Andrey;

I tried to run your Web Application this time, but i getting same error again, scrshot is in the attachment..

By the way i installing all patches of Dynacube before install the Service Pack2, (i mean 2.5 first, then Service Pack 1, etc.) maybe that can cause the problem?

 



   Report 
   07-29-2008, 5:07 AM
Andrey - DD is not online. Last active: 2/2/2010 6:17:12 PM Andrey - DD

Top 25 Posts
Joined on 08-01-2007
Russia, Novosibirsk
Posts 561

DDStaff
Re: oField gives NullReferenceException

Attachment: dcUtil.zip
Yesugey,

I recommend you to take the following steps:
Uninstall DynamiCube3 from your system, make sure all instances of DCube3.ocx and DynamiCube.Interop.dll are deleted.
Install the latest DynamiCube3 3.3.0.1215 build again.
Install the DynamiCube 3.0 Primary Interop Assembly in the global assembly cache (GAC):
http://www.datadynamics.com/forums/97491/ShowPost.aspx
(Unzip the attached file to C:\Program Files\Data Dynamics\DynamiCube3 (where DynamiCube.Interop.dll and Install DynamiCube Primary Interop Assembly.bat files are located) and run .bat file again.)
Run Visual Studio 2005 and open sample.

Thank you,
Andrey T.
   Report 
   07-30-2008, 7:48 AM
Yesugey is not online. Last active: 7/28/2008 11:42:17 PM Yesugey



Not Ranked
Joined on 07-28-2008
Turkiye
Posts 8
Re: oField gives NullReferenceException

Attachment: newdynacube.JPG

Hi again Andrey;

I cleaned old versions of DynaCube, installed it again. Also installed Global Assembly Cache.

And i noticed you attacked 2 .exe files in your last post, i executed them too. Now i building your sample, i getting this new error:

Maybe i did not implemented your sample well, but my boss intalled DynaCube again on his computer also, and we getting both same errors.

What we do wrong to take same errors on two different computers? I bet it is about our dll references, but i need your opinion.



   Report 
   07-30-2008, 11:15 AM
ericc is not online. Last active: 4/4/2009 9:32:14 AM ericc

Top 10 Posts
Joined on 03-01-2005
Posts 1,857

DDStaff
Re: oField gives NullReferenceException
Thank you for your reply. It appears the file version used in Andreys sample uses build 3.3.0.1215. Please ensure you have the latest build available installed. You can find the update here:

http://www.datadynamics.com/forums/40/ShowForum.aspx

Thanks,
    Eric


   Report 
   07-31-2008, 3:30 AM
Yesugey is not online. Last active: 7/28/2008 11:42:17 PM Yesugey



Not Ranked
Joined on 07-28-2008
Turkiye
Posts 8
Re: oField gives NullReferenceException

Hi ericc;

I always tried to add the DynaCube Reference, from "COM Components". Today i just selected "Browse", and found "DynamiCube.Interop.dll" on the Common Files. So now i managed to run the Andrey's sample. Thanks for your and Andreyy's help :)

 

 


   Report 
GrapeCity » Product Support » ActiveSizer Sup... » Re: oField gives NullReferenceException

Privacy Policy | Copyright © 1997-2010 - GrapeCity, inc.