kartrisServices,asmx 500 (Internal Server Error)

Posted By BORNXenon Thu 11 Sep 2014
Add to Favorites0
Author Message
BORNXenon Marked As Answer
 Posted Thu 11 Sep 2014
Supreme Being

Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)

Group: Forum Members
Last Active: Mon 23 Apr 2018
Posts: 59, Visits: 291
OK, fixed.For anyone having the same issue, here goes....

You need to put the following lines into the <system.web> section of your web.config..

<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>


This changes the "System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/GetCategories'. " error to:


System.InvalidOperationException: Request format is invalid: application/json; charset=utf-8. at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest

To fix that you then need to add the following lines of code to the <handlers> section of the web.config file.

<add name="ScriptHandlerFactory" verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory" />



BORNXenon
 Posted Thu 11 Sep 2014
Supreme Being

Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)

Group: Forum Members
Last Active: Mon 23 Apr 2018
Posts: 59, Visits: 291
More info
The following appears in the Error Log:



-----------------------------------------------------------------------------
>> Unhandled Error occurred in Page:http://teststore.birchwoodtrading.co.uk/Admin/kartrisServices.asmx/GetCategories
-----------------------------------------------------------------------------
>> 9/11/2014 2:06:15 PM
>> Version:2.7001
>> URL:http://teststore.birchwoodtrading.co.uk/Admin/kartrisServices.asmx/GetCategories
>> 62.49.119.169
>> DESCRIPTION:
System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/GetCategories'.
at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

==================================================



-----------------------------------------------------------------------------
>> Unhandled Error occurred in Page:http://teststore.birchwoodtrading.co.uk/Admin/kartrisServices.asmx/GetProducts
-----------------------------------------------------------------------------
>> 9/11/2014 2:06:55 PM
>> Version:2.7001
>> URL:http://teststore.birchwoodtrading.co.uk/Admin/kartrisServices.asmx/GetProducts
>> 62.49.119.169
>> DESCRIPTION:
System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/GetProducts'.
at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

==================================================
BORNXenon
 Posted Thu 11 Sep 2014
Supreme Being

Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)Supreme Being - (34,937 reputation)

Group: Forum Members
Last Active: Mon 23 Apr 2018
Posts: 59, Visits: 291
When trying to add a product to Categories through the product page, or adding a related product, the list of Categories / products is not appearing for me to select one and therefore I am unable to add them.

Using the 'Inspect this element' Console feature of Chrome, or the F12 Console of Internet Explorer, I get the following when trying to add a category/related product:


POST http://teststore.birchwoodtrading.co.uk/Admin/kartrisServices.asmx/GetProducts 500 (Internal Server Error) ScriptResource.axd?d=8L1dIw-Rw4fm0nOxlRwl8XDR1oth-19GyRRvbpArS9BiPj2zFlqQbUMq0Tq6cHD9mP-m0uJIFAci0L…:2H.w.executeRequest ScriptResource.axd?d=8L1dIw-Rw4fm0nOxlRwl8XDR1oth-19GyRRvbpArS9BiPj2zFlqQbUMq0Tq6cHD9mP-m0uJIFAci0L…:2H.w.executeRequest ScriptResource.axd?d=8L1dIw-Rw4fm0nOxlRwl8XDR1oth-19GyRRvbpArS9BiPj2zFlqQbUMq0Tq6cHD9mP-m0uJIFAci0L…:2H.w.invoke ScriptResource.axd?d=8L1dIw-Rw4fm0nOxlRwl8XDR1oth-19GyRRvbpArS9BiPj2zFlqQbUMq0Tq6cHD9mP-m0uJIFAci0L…:2H.w.invoke ScriptResource.axd?d=8L1dIw-Rw4fm0nOxlRwl8XDR1oth-19GyRRvbpArS9BiPj2zFlqQbUMq0Tq6cHD9mP-m0uJIFAci0L…:2Sys.Extended.UI.AutoCompleteBehavior._onTimerTick _ModifyProduct.aspx?_TSM_HiddenField_=scrManager_HiddenField&_TSM_CombinedScripts_=%3b%3bAjaxContro…:29(anonymous function) ScriptResource.axd?d=8L1dIw-Rw4fm0nOxlRwl8XDR1oth-19GyRRvbpArS9BiPj2zFlqQbUMq0Tq6cHD9mP-m0uJIFAci0L…:2(anonymous function) ScriptResource.axd?d=8L1dIw-Rw4fm0nOxlRwl8XDR1oth-19GyRRvbpArS9BiPj2zFlqQbUMq0Tq6cHD9mP-m0uJIFAci0L…:2Sys.Timer._timerCallback _ModifyProduct.aspx?_TSM_HiddenField_=scrManager_HiddenField&_TSM_CombinedScripts_=%3b%3bAjaxContro…:7(anonymous function)


Any ideas? I'm excruciatingly close to going live, but need this issue fixed!!

I should also say that it worked on my local PC, it only since uploading to the hosting that I am getting the issue.

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top