Ajax enabled WCF Service not working under IIS


I

Ilyas

Hi all

I have a very simple ajax enabled wcf service that adds 2 numbers
together, created using Visual Studio 2008

This service is then called using javascript and it all works
perfectly under the built in visual studio web server

The problem arises when deploying under IIS in Vista. The service
doesnt work and I get the error TestServices is undefined

My service is called Math and resides in the TestServices namespace.

It appears that the browser is not seeing the javascript proxy objects
and methods under IIS but is seeing then under visual studio.

Can anyone shed any light on this?
 
Ad

Advertisements

J

Jeff Dillon

What happens when you simply point your browser at the web service address.
Do you get the wsdl?
 
I

Ilyas

What happens when you simply point your browser at the web service address.
Do you get the wsdl?












- Show quoted text -
If I point my browser at the svc file I get an HTTP Error 404.3 - Not
Found
The page you are requesting cannot be served because of the extension
configuration. If the page is a script, add a handler. If the file
should be downloaded, add a MIME map
 
Ad

Advertisements

Joined
Mar 20, 2017
Messages
1
Reaction score
0
I know this thread is very old, but I want to provide solution for those who are still having same problem on vista/windows 7. To solve the above problem , please register .NET framework 4 under IIS by typing the following on cmd prompt under .NET framework path or use visual studio command prompt tool.

aspnet_regiis.exe – i
 
Last edited by a moderator:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top