Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

BO 4 SDK for .Net

$
0
0

I am loathing this experience.

 

So, we have quite a few .Net apps which use BO 3.x, which we're now upgrading to BO 4.1, but I'm struggling.

 

I have read your horribly-outdated, painful, BO 4 SDK  (which you have to download as a "xi4_wssdk_dg_en.zip" file, and unzip onto your laptop in order to read... and which was last updated in November 2011)  but I still can't get past the first problem:

 

We have lots of legacy C# code using the BO3 SDK .dll files, but to demonstrate my problem, let's start from scratch.

 

- I create a brand new empty ASP.Net project in Visual Studio 2013.

- I add a "Lib" folder containing the five BO 4 SDK .dll files.

 

  • BusinessObjects.DSWS.BICatalog.dll
  • BusinessObjects.DSWS.BIPlatform.dll
  • BusinessObjects.DSWS.dll
  • BusinessObjects.DSWS.Publish.dll
  • BusinessObjects.DSWS.Session.dll

 

- I add these 5 .dlls to the References

- Now, I create an .aspx page, and simply include these libraries at the top of my .cs file:

 

using BusinessObjects.DSWS;

using BusinessObjects.DSWS.BICatalog;

using BusinessObjects.DSWS.BIPlatform;

using BusinessObjects.DSWS.Session;

using BusinessObjects.DSWS.Publish;

 

(That's all I've done - I just added the "using" statements, but not actually used of the the library functions anywhere.)

 

This project couldn't be more simple if I tried.

But when I run it, I get a webpage showing this error:

 

Could not load file or assembly 'BusinessObjects.DSWS.BICatalog' or one of its dependencies. An attempt was made to load a program with an incorrect format.

 

I wanted to attach a 142Kb .zipped up copy of this entire, pointless, empty VS2013 project, which demonstrated this error, but apparently, these Discussion pages don't allow .zip files to be attached (!!!)  so instead, here's a copy of my project on DropBox:

Dropbox - BO4LibraryProblem.zip

 

Do you have a working, up-to-date, Visual Studio project, which demonstrates how to use these 5 BusinessObjects.*.dll files ?

 

I should say, I have also experimented with the REST Services, and these work fine.

Badly documented, as usual, but I did manage to put together an Angular example, which I might post on CodeProject at some point.

It'd be good for other BO 4 developers to have a decent modern working example to learn from.

 

But... we have a lot of legacy C# code which used the BusinessObjects*.dll files from the BO 3.x SDK, and it would be much less work to just get this code to use the BO 4 versions of these files, if its possible.


Viewing all articles
Browse latest Browse all 9129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>