Knowledgebase Home Page  >  RapidSpell Web ASP.NET
Search the Knowledge Base
404 status for .SVC calls (WCF web service trouble)
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=295&catId=43

Options

Print this page
Email this to a friend

Background

.svc files are related to WCF (which is .NET's framework for web services, but not to be confused with the older .asmx web services).  RapidSpell uses an .svc file for ASP.NET 4.0 upwards, and a .asmx file for ASP.NET 2.  If WCF is not setup correctly with IIS, this can lead to 404 errors when RapidSpell makes an AJAX call to the RapidSpellService.svc file under Keyoti_RapidSpell_Web_Common

 

Resolution

Unfortunately there isn't a hard and fast reason why WCF wouldn't be setup properly, instead there are a few areas to look at.

1. See http://stackoverflow.com/questions/2609377/http-404-when-accessing-svc-file-in-iis

There are several solutions outlined, including:

 

Run this command, (but beware that it has been known to break websites, if that happens run ServiceModelReg.exe -u)

 

C:\Windows\Microsoft.NET\Framework\v3.0\Windows\ServiceModelReg.exe -I

 

Do try the other solutions presented in that link.

 

2. You may need to enable HttpGet and HttpPost in your web.config, please see https://support.microsoft.com/en-us/kb/819267

 

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

 

3. If you just cannot get WCF to work, you can switch to ASMX Web Services.  Strictly speaking ASMX is deprecated with .NET 4, but it is still supported.
In JavaScript, call
rapidSpell.setServiceType('asmx'); 
If you get "Request format is unrecognized for URL unexpectedly ..." then please follow #2 above.
 

 


Related Questions:

Attachments:

No attachments were found.