A
A
Alexander Kosheverov2013-11-19 21:04:53
IIS
Alexander Kosheverov, 2013-11-19 21:04:53

Deploying a WCF Service on IIS

Actually, I wrote the simplest service in MS VS 2012 with the 1st function (.NET 4.5). It is not worth going into the details of the implementation, except that I note that when debugging, the WCF Test Client is launched, through which everything works fine.

I publish a project, I add an application on the same machine in IIS (6.1, went in 7ki components), I try to review, which I get an error
HTTP Error 500.19 - Internal Server Error The
requested page is not available due to incorrect data configuration for this page.

Configuration Error: Failed to read configuration section 'protocolMapping' due to missing section declaration

21:     </behaviors>
22:     <protocolMapping>
 23:         <add binding="basicHttpsBinding" scheme="https" />

Actually, in fact, everything is standard, but it does not unfold. There was a similar problem with the ASP.NET service (did not solve it)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Georgy Mogelashvili, 2013-11-19
@Iworb

1. Try running the aspnet_regiis.exe -i command. Located in "%windir%\Microsoft.NET\Framework\v4.0.30319". This will install (reinstall) ASP.NET and related settings.
2. Check in IIS that you have the server handlers set correctly. To do this, in IIS Manager, select your application (or the entire site or server) and the Handler Mappings section in it. Find if there is a line that has the Path column set to "*.svc". If not, then you need to get your hands on it. For example, on a 32-bit system, this would be "%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll". For 64 or other version of .NET, the paths will be roughly the same.
3. See if the WCF service is enabled in the Windows components. To do this, go to Control Panel -> Programs and Features -> Turn on Windows features (or something like that). There, in the .NET 3.5 and .NET 4.5 Advanced sections, there are checkboxes about WCF. Turn on.
In theory, these actions should help. If not, look in the eventlog, there is sometimes something useful there.
And also put yourself IIS 7 or even 8 (if it gets up to 7k).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question