Asp.Net WebForm - Web Api RestFUL Service , Response Problem
Posted: 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.
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.