+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / 404 Responses from /Admin/Services/ asmx Services

404 Responses from /Admin/Services/ asmx Services

13 posts, 0 answered
  1. Montane Hamilton
    Montane Hamilton avatar
    10 posts
    Registered:
    25 Apr 2004
    29 Dec 2009
    Link to this post
    Trying to manually install sitefinity. I've got logged in, database created etc. The Generic Content  and news pages are calling the 'GetContentItems' service the the service is returning a 404 response.

    2009-12-29 21:33:46 W3SVC721372733 127.0.0.1 POST /Sitefinity/Admin/Services/ContentService.asmx/GetContentItems - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.2;+WOW64;+Trident/4.0;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+InfoPath.2) 404 0 0

    This is IIS 6 on win server 2003 x64. I am running a 32bit worker process. The isapi filter is on and the site works. The 404 mapping to /project/sf404.aspx is done also. I can browse the the service's asmx page no problem but once we add the method name onto the end of it I get a 404. Any ideas?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Dec 2009
    Link to this post
    Hi Montane Hamilton,

    We are not able to reproduce this problem with the web service. If you can reproduce the same problem on our demo website demo.sitefinity.com and write back to us with the steps you have followed we could try to come up with a solution.
    Most probably something blocks the web service and it cannot be executed - it could be firewall, proxy or special character or empty space in the url ( host name, virtual directory name or project name).

    You should be able to access the service as shown below:

    ~/Sitefinity/Admin/Services/ContentService.asmx?op=GetContentItems
    or
    ~/Sitefinity/Admin/Services/ContentService.asmx

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Montane Hamilton
    Montane Hamilton avatar
    10 posts
    Registered:
    25 Apr 2004
    30 Dec 2009
    Link to this post
    From the IIS log I provided it's clear there is nothing stopping IIS from receiving the request. Fiddler shows.

    Request:

    POST /Sitefinity/Admin/Services/ContentService.asmx/GetContentItems HTTP/1.1

    Accept: */*

    Accept-Language: en-us

    Referer: http://clientadminportal.local.staywellsolutionsonline.com/sitefinity/admin/Modules.aspx?module=News&route=NewsControlPanel.NewsItemsView

    Content-Type: application/json; charset=utf-8

    Accept-Encoding: gzip, deflate

    User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Host: clientadminportal.local.staywellsolutionsonline.com

    Content-Length: 206

    Connection: Keep-Alive

    Pragma: no-cache

    Cookie: __unam=7639673-124bbdc8d69-2cc5d4a7-5; ASP.NET_SessionId=bdmdydj1lxfq4m55amriszqm; .ASPNET=DCE3AB544AD029BF858D0378C14628C22E6E26A079C1B67BD6C6BFD662766A837ABEE6C55EB86E2D3A336F1B2863D5511509D68A4332E4D5CD5123DFCC7BF49C0726B15B686A0E1C2100BAB167611DA0C51741D7E7929F0525F2C308EB04A0C6; .ASPXROLES=t5TlCcg3vRamy77N9rGf6Jj_3tnUkNq0WL3tn_kIvshomr7T9e5P3WRq6uBp4t-qq0HJuNIl4eH_UoGL0lZB6WSDTK9KWG-2o4AB2-qAOF-akQ-8RsuLMkeLNrVavU6jA3XJNCOiqkEG9Ceb6Qmqvg387QYDdGcVG52S2bMJsjWskmPfuuk-n8E40ZU1j0k6Tz-fcimqFR6a5ec-mhxEgY8GBGuu_E-5XbJuICpS2gHGHzguBYN5T-oZnBXOd69vJNbMBDJp0JWjAWKyOkiX1Qnv-KwNtHJaiGmB1bwU68G7UhPHysNKVDK2-ALv7KnK5eplncVrmv9sJfeACoZYqv-327Kr-7X16IWBiMc7fntrVldZjiafh92frEUDgyMIu0A3Et_cE2UkXVc5Y4vCysWC7OCcSPud6ufYZM4XL1kvZnU-T7mBwDiJI0WeBz9J0

    {"startRowIndex":0,"maximumRows":50,"sortExpression":"","filterExpression":"","requiredMetaFields":["Title","Author","Source","Publication_Date","Expiration_Date"],"currentCulture":"1033","provider":"News"}

    Response:

    HTTP/1.1 404 Not Found

    Content-Length: 103

    Content-Type: text/html

    Server: Microsoft-IIS/6.0

    Date: Wed, 30 Dec 2009 16:49:47 GMT

    <html><head><title>Error</title></head><body>The system cannot find the path specified.

    </body></html>

  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    04 Jan 2010
    Link to this post
    Hi Montane Hamilton,

    What we wanted to determine is when the 404 error is thrown. What happens is you try to access the url from the browser?

    Please check if you have the following handlers in the web.config file:

    <handlers>
    <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    ...
    </handlers>

    and

    <httpHandlers>
     <remove verb="*" path="*.asmx"/>
     <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    ...
    </httpHandlers>

    Looking at the error, it seems that the request is reaching IIS, but not Asp.Net. Most probably the handlers are missing from the config file, or the asmx is not mapped in IIS.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Montane Hamilton
    Montane Hamilton avatar
    10 posts
    Registered:
    25 Apr 2004
    04 Jan 2010
    Link to this post
    Both of those web.config settings are included. Seems like the second would not be necessary based on me running this on IIS6? Regardless both are in there. Based on the error I believe the requests are reaching asp.net and the generic error seems to be produced by sitefinity.

    Montané

  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    04 Jan 2010
    Link to this post
    Hello Montane Hamilton,

    Once again, what happens if you request the services through the browser -

    http://project/Sitefinity/Admin/Services/ContentService.asmx

    Make sure that you are logged in when you request the url above. 

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    05 Jan 2010
    Link to this post
    I am having this problem as well now, after migrating to a new windows server 2008 r2 box (we were on windows server 2003 before, running iis6, where everything worked fine)

    I went to the url http://project/Sitefinity/Admin/Services/ContentService.asmx as specified above and it shows me a list of methods, including the getcontentitems which is throwing the error...

    however, when I click the link for getcontentitems it says "Method Not Found"

    I am logged in as the administrator

    when I go to any module, it says

    An attempt was made to call the method 'GetContentItems' using a GET request which is not allowed. Code: 500 Exception Type: System.InvalidOperationException

    the handler is defined in my web.config, what else can I try to set here?

    thanks
  8. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    05 Jan 2010
    Link to this post
    okay this was appartenly my fault (AGAIN!) I have a httpmodule that rewrites urls to be lowercase, apparently I need to add an exclusion for urls that contain "asmx"

    doing so fixed the problem right away. sorry about that, thanks!
  9. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    05 Jan 2010
    Link to this post
    Hi SelArom,

    Thanks for the follow up. Yes, the error is different than the default one. 

    Similar could be the reason why Montane could experience errors, that's why I asked what happens if he request the url directly in the browser.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  10. Montane Hamilton
    Montane Hamilton avatar
    10 posts
    Registered:
    25 Apr 2004
    05 Jan 2010
    Link to this post
    Having a problem with a new custom module right now and working on a unrelated project. When I tested before the asmx page comes up, the test forms come up for each method, when invoking the method through those forms even I get a 404... 
  11. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    05 Jan 2010
    Link to this post
    Hello Montane Hamilton,

    Is it possible to check the requests with Fiddler, and the response as well? 

    We can do it for you, if you want. Just provide us with access to your administration area, and we will be happy to inspect the project. 

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  12. Montane Hamilton
    Montane Hamilton avatar
    10 posts
    Registered:
    25 Apr 2004
    13 Jan 2010
    Link to this post
    I think in the end it was due to some needing to reinstall .net correctly to the IIS sites. I had switch form running in 64bit to 32bit and in the process left some things in a bad state. It is working correctly now. Thank you.
  13. Apptain
    Apptain avatar
    30 posts
    Registered:
    20 Aug 2012
    21 Jul 2010
    Link to this post
    I had the same issue, and was able to resolve it by going to Handler Mappings and adding a module mapping for *.svc to the .NET 2 aspnet_isapi.dll
Register for webinar
13 posts, 0 answered