Asp.Net WebForm - RestFUL Service

Discussions about document viewing.
Post Reply
mrhoso
Posts: 3
Joined: Sat Sep 12, 2020 11:35 am

Asp.Net WebForm - RestFUL Service

Post by mrhoso » Sat Sep 12, 2020 11:56 am

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
}

Could you please help me?
Attachments
Screen Shot 2020-09-12 at 12.48.50.png
RestFUL method response (Unknown Chars)

mrhoso
Posts: 3
Joined: Sat Sep 12, 2020 11:35 am

Re: Asp.Net WebForm - RestFUL Service

Post by mrhoso » Sat Sep 12, 2020 12:19 pm

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();

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests