Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Can I Host A WCF App In IIS?

Tags:

c#

iis

wcf

I'm following Microsoft's tutorial on the topic here but it's not working and several items are unclear to me. http://msdn.microsoft.com/en-us/library/ms733766.aspx

  1. In step 2 it says, "ensure that ASP.NET has access to the contents of the folder". How can i do this?
  2. Is it correct that the .cs code not be compiled? I've never ran .cs as a script of any kind.

Here is my error:

HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

Thanks.

like image 804
glutz Avatar asked Sep 27 '13 03:09

glutz


1 Answers

Could you please ensure that your apppool in which your site is running in "Integrated" mode rather than Classic.

If the problem is not resolved after doing this, try to register your IIS with .netv4.0

For doing that

Go to Command Prompt
Go to the location C:\Windows\Microsoft.NET\Framework\v4.0.30319
Register the IIS using aspnet_regiis -i command

like image 67
wizzardz Avatar answered Sep 24 '22 04:09

wizzardz