Asp.Net WebForm - Web Api RestFUL Service , Response Problem

Discussions about DocuVieware integration in GdPicture.NET.
Post Reply
mrhoso
Posts: 3
Joined: Sat Sep 12, 2020 11:35 am

Asp.Net WebForm - Web Api RestFUL Service , Response Problem

Post by mrhoso » Fri Sep 25, 2020 2:27 pm

Hi All,

I am working on an ASP.NET Webform (Framework 4.6.1) project for a long time. This project already had WebApi RestFUL service support.

After adding Document Viewer to my project, RestFUL service methods started to return unknown special chars only.
(GdPicture.NET.14.WEB.DocuVieware.dll version = 3.1.0.76)

I tried lots of things to try to understand and solve the problem.

If I added these two lines to Global.asax, Application_Start method, RestFUL methods returned unknown characters. I tried to write method response here but form not except it. So you can see the method response in attached file.

// Lines in global.asax
DocuViewareManager.SetupConfiguration(True, DocuViewareSessionStateMode.InProc, HttpRuntime.AppDomainAppPath + "\\Cache")
DocuViewareLicensing.RegisterKEY("<RegistrationKey>")

When I remove the lines from global.asax, here is the method response.

{
"Body": null,
"Result": false,
"Message": "Belirttiğiniz kategori bulunmamaktadır.",
"ErrorCode": 101
}

You can find Global.asax, Application_Start method content below:
----
DocuViewareManager.SetupConfiguration(True, DocuViewareSessionStateMode.InProc, HttpRuntime.AppDomainAppPath + "\\Cache")
DocuViewareLicensing.RegisterKEY("<RegistrationKey>");

RouteTable.Routes.MapHttpRoute("DefaultApi", "api/{controller}/{action}/{id}", defaults:=New With {.id = System.Web.Http.RouteParameter.Optional});

AreaRegistration.RegisterAllAreas();
---

Could you please help me?

PS : I wrote this message before under another topic. I could't get a response. So i thins it was wrong place, thats why i wrote te same message under this topic.
Attachments
Screen Shot 2020-09-12 at 12.48.50.png

User avatar
Fabio
Posts: 39
Joined: Thu Aug 27, 2020 9:57 am

Re: Asp.Net WebForm - Web Api RestFUL Service , Response Problem

Post by Fabio » Mon Oct 12, 2020 2:49 pm

[This issue has been corrected in our support service]

The issue was because of Telerik compression in the project which affects the webapi response.
The solution was to add a radcompression exclusion to the web.config for api folder.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests