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?
Asp.Net WebForm - RestFUL Service
Re: Asp.Net WebForm - RestFUL Service
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();
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();
Re: Asp.Net WebForm - RestFUL Service
[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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests