API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Economic.Api.Dll and framework 4.0

Why Economic.Api.Dll don't works on 4.0 framework? Or may be exist new version of this library?
created Jul 6, 2012 by anonymous

8 Answers


I am having the same problem i upgraded my project to .NET 4.0, and now when i run I craches

I get no exception or anything it just dies.

I also tried with the sample project which is running .NET 3.5, before upgrading this to .NET 4.0 it worked fine after the upgrade, it crashed.

I am running VS2012 (RTM Release), there might be som new limitation or something in VS2012, i haven't tried in VS2010, but i think it worked in VS2010
answered Aug 21, 2012 by jesper@netlinq.dk
I have a similar issue.

After upgrading to VS2012 running on a win2008r2 server 64bit, calls to new EconomicSession() crashes VS2012 if the project is set to x86.
It looks like the call causes a memory leak. At crash time the devenv process has used approx. 3500MB of ram.
answered Sep 4, 2012 by thomas fra focus it
Hi All,

The SDK is not supported on .NET 4.

The only work-around that is certain to work is not using the SDK and going directly on the webservice using the built-in tools of Visual Studio and .NET.

We are considering upgrading the SDK for .NET 4, but since the tools available for .NET are an equally good alternative we are not prioritizing this.
answered Sep 5, 2012 by nkn
I have been checking the documentation on how to connect using the webservice but I cannot find the answer, I have tried the following (C#):

1 var proxy = new EconomicWebServiceSoapClient();
2 var response = proxyConnect(123456, something, secret);
3 var handles = proxyCompany_Get();

But I get an authentication error at line 3:
Economic.Api.Exceptions.AuthenticationException(E02250): User is not authenticated. Access denied. (id=783959717)

Nikolaj, can you advise how we should connect using the webservice?
answered Sep 6, 2012 by uffeuffe
You need to allow cookies

EconomicWebServiceSoapClient client = new EconomicWebServiceSoapClient();
((BasicHttpBinding)client.Endpoint.Binding).AllowCookies = true;

See. post13.html?hilit=authentication#p13
answered Sep 13, 2012 by thomas fra focus it
Economic send me a newsletter in the end of august, which linked to a blog post, where they stated that they were working on a faster API, so I wonder why the Economic employee here states that:

We are considering upgrading the SDK for .NET 4, but since the tools available for .NET are an equally good alternative we are not prioritizing this.

Besides from this the blog stated, we are introducing a ?REST-API?, when this is fully implemented this will replace the ?SOAP? webservice, this makes me think that turning to the SOAP interface does not sound like the way to go.

Could an Economic employee comment on this?
answered Sep 17, 2012 by Jacob_2500
Hi Jacob,

Let me try to answer your questions.

We are not prioritizing upgrade the SDK to .NET 4, because there is a fully valid work around using the tools in .NET (Using VS directly or WSDL - there is a little trick with allowing cookies though).

Actually, I have talked with multiple customers who prefer to work that way. Thus, we would prefer to write better examples on how to build integration using the different tools on the .NET platform than maintaining the SDK.

Regarding replacing the SOAP API this will not happen anytime soon. It is true that we are looking at building a REST API, but this does not mean the SOAP API will disappear anytime soon, and the SDK will not work with the REST API.

Most likely when the REST API is exposed we will run with 2 API's which are equally valid from a business perspective, but the REST API will be easier to integrate against, especially for those where the SOAP is not that well supported in the language and/or framework they are using. When the REST API is ready and fully functional is another matter (I simple do not know).
answered Sep 18, 2012 by nkn
Hi Nikolaj
Thank you for clarifying this.
answered Sep 18, 2012 by Jacob_2500
Visma e-conomic A/S