.NET client and console application

Questions about the WURFL Cloud service.
wayncom
Posts: 2
Joined: Mon Jul 21, 2014 5:36 am

.NET client and console application

Postby wayncom » Mon Jul 21, 2014 5:40 am

Hello,
We want to create a .NET console app to process our logs of user agent strings and to get information about them from WURFL Cloud service. I have downloaded .NET client, but couldn't get library to work in console app. It only works in ASP.NET environment. In the app, I get an exception:

Code: Select all

Attempt by security transparent method 'ScientiaMobile.WurflCloud.Http.CloudClient.MapJsonToResponse(System.String)' to access security critical method 'System.Web.Script.Serialization.JavaScriptSerializer..ctor()' failed.
Is it possible to use the library in non-web project?

Regards,
Michal

Elliotfehr

Re: .NET client and console application

Postby Elliotfehr » Mon Jul 21, 2014 3:05 pm

Michal,

I have notified our engineering team and they are currently looking into this issue at the moment. I the meantime, are you able to let me know which version of the cloud client you are using?

Thank you,

Elliot

wayncom
Posts: 2
Joined: Mon Jul 21, 2014 5:36 am

Re: .NET client and console application

Postby wayncom » Tue Jul 22, 2014 2:38 am

I am using WURFL-Cloud-Base-NET4-1.1.0.0

support-all
Posts: 32
Joined: Mon Oct 08, 2012 2:47 am

Re: .NET client and console application

Postby support-all » Tue Jul 22, 2014 9:15 am

At the moment the Cloud Client is only supported in an ASP.NET environment.

A possible suggestion would be to write a web app that performs the queries on UAs and exposes results back to the console app via a plain HTTP endpoint.

Please let us know how it goes.

Regards

digitalturbine
Posts: 3
Joined: Mon Jun 22, 2015 4:08 am

Re: .NET client and console application

Postby digitalturbine » Mon Jun 22, 2015 4:33 am

In visual studio, right click on your project and select properties.

In the properties page go to "Debug" tab and uncheck "Enabled visual studio hosting process"


Who is online

Users browsing this forum: No registered users and 4 guests