Cannot run ASP.net service on IIS (Windows 10) - error 404 (not found) -


here's scenario: windows 10, vs2015 update 3.

create new blank 'empty' asp.net project, .net 4.5.2, , add dummy 'index.html'. run project iis express (the default): runs fine.

change server iis: http error 500.19 - internal server error, error code    0x80070021. suggests invalid section 'modules' in web.config. comment out section , run again. gives 404 error.

my javascript working fine on iis, appears iis not starting asp.net service - every ajax call service results in error 404. guess there's missing web.config. have in system.servicemodel

<services>   <service behaviorconfiguration="servicebehavior" name="webmap.webmap">     <endpoint address="" behaviorconfiguration="endpbehavior" binding="webhttpbinding"       contract="webmap.iwebmap" />     <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange" />   </service> </services> 

and file service1.svc consists of

<%@ servicehost language="c#" debug="true" service="webmap.webmap" codebehind="service1.svc.cs" %> 

notes: (1) 2 different pc's doing same thing. (2) if create new 'webapi' project, rather 'empty' one, same results, except more sections need commenting out of 'web.config'

in addition answred here iis - configuration section cannot used @ path (configuration locking?) add http activation shown below

enter image description here


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -