oField gives NullReferenceException


07-28-2008, 2:53 AM

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.


Re: oField gives NullReferenceException


07-28-2008, 5:47 AM
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.

Re: oField gives NullReferenceException


07-28-2008, 7:42 AM

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

Re: oField gives NullReferenceException


07-28-2008, 10:43 AM
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.

Re: oField gives NullReferenceException


07-29-2008, 4:18 AM

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?

 


Re: oField gives NullReferenceException


07-29-2008, 5:07 AM
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.

Re: oField gives NullReferenceException


07-30-2008, 7:48 AM

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.


Re: oField gives NullReferenceException


07-30-2008, 11:15 AM
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

Re: oField gives NullReferenceException


07-31-2008, 3:30 AM

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 :)

 

 

Re: oField gives NullReferenceException


11-10-2010, 4:48 AM
hello guys

Web Design , guaranteed facebook fans , auto insurance quote

Re: oField gives NullReferenceException


08-03-2011, 7:46 PM
i learn useful thing from this

flex belt stores
hydroxatone woman
phen375 diet