HTTP Error 500.19 - Internal Server Error The requested page cannot (WCF + REST + IIS7 + SSL) -
i having "dandy" time trying wcf rest service hosted on iis ssl.
environment: testing on windows7 box local iis server. have self-registered certificate on dev box , have:
- created site in iis purposes of exposing wcf service via https.
- created application under site , named "api"
- navigated site in iis
- clicked 'bindings...' in actions panel on right.
- clicked 'add'
- selected 'https' , selected certificate.
a lot of rest plumbing handled via extensions in wcf using wcfrestcontrib library. while has been useful programming point of view, there little out there in way of documentation when goes wrong.
the error getting is:
error summary http error 500.19 - internal server error requested page cannot
be accessed because related configuration data page invalid. detailed error information module iis web core notification beginrequest handler not yet determined error code 0x8007000d config error config file \?\c:\inetpub\emobile\api\web.config requested url https://172.xx.xx.254:443/api physical path c:\inetpub\emobile\api logon method not yet determined logon user not yet determined
config source -1: 0:
i not surew doing wrong here. far have tried resenting feature delegation site didn't work. ideas? odd in web.config?
thanks.
<?xml version="1.0"?> <configuration> <connectionstrings> <add name="e1connectionstring" connectionstring="data source=ussv112;initial catalog=e1;integrated security=true" providername="system.data.sqlclient" /> <add name="e2connectionstring" connectionstring="data source=ussv112;initial catalog=e2;integrated security=true" providername="system.data.sqlclient" /> <system.web> <httpruntime maxrequestlength="204800" executiontimeout="3600"/> <compilation debug="true" targetframework="4.0"> </compilation> <httpmodules> <add name="serviceanonymitymodule" type="wcfrestcontrib.web.serviceanonymitymodule, wcfrestcontrib, version=1.0.6.107, culture=neutral"/> </httpmodules> <pages controlrenderingcompatibilityversion="3.5" clientidmode="autoid"/> </system.web> <system.webserver> <rewrite> <rules> <rule name="users" stopprocessing="true"> <match url="^rest/users/(.*)$"/> <action type="rewrite" url="rest/users.svc/{r:1}" /> </rule> </rules> </rewrite> <validation validateintegratedmodeconfiguration="false" /> <modules> <remove name="serviceanonymitymodule"/> <add name="serviceanonymitymodule" type="wcfrestcontrib.web.serviceanonymitymodule, wcfrestcontrib, version=1.0.6.107, culture=neutral"/> </modules> </system.webserver> <system.diagnostics> <sources> <source name="system.servicemodel" switchvalue="information, activitytracing" propagateactivity="true"> <listeners> <add name="messages" type="system.diagnostics.xmlwritertracelistener" initializedata="d:\temp\wcfrestcontriberrors.log" /> </listeners> </source> <source name="system.servicemodel.messagelogging"> <listeners> <add name="messages" type="system.diagnostics.xmlwritertracelistener" initializedata="d:\temp\wcfrestcontribmessages.log" /> </listeners> </source> </sources> <trace autoflush="true"/> </system.diagnostics> <system.servicemodel> <servicehostingenvironment aspnetcompatibilityenabled="true"/> <extensions> <behaviorextensions> <add name="webauthentication" type="wcfrestcontrib.servicemodel.configuration.webauthentication.configurationbehaviorelement, wcfrestcontrib, version=1.0.6.107, culture=neutral, publickeytoken=89183999a8dc93b5" /> <add name="errorhandler" type="wcfrestcontrib.servicemodel.configuration.errorhandler.behaviorelement, wcfrestcontrib, version=1.0.6.107, culture=neutral, publickeytoken=89183999a8dc93b5" /> <add name="webformatter" type="wcfrestcontrib.servicemodel.configuration.webdispatchformatter.configurationbehaviorelement, wcfrestcontrib, version=1.0.6.107, culture=neutral, publickeytoken=89183999a8dc93b5" /> <add name="weberrorhandler" type="wcfrestcontrib.servicemodel.configuration.weberrorhandler.configurationbehaviorelement, wcfrestcontrib, version=1.0.6.107, culture=neutral, publickeytoken=89183999a8dc93b5" /> </behaviorextensions> </extensions> <bindings> <custombinding> <binding name="httpstreamedrest"> <httptransport maxreceivedmessagesize="209715200" manualaddressing="true"/> </binding> <binding name="httpsstreamedrest"> <httpstransport maxreceivedmessagesize="209715200" manualaddressing="true"/> </binding> </custombinding> </bindings> <behaviors> <servicebehaviors> <behavior name="rest"> <webauthentication authenticationhandlertype="wcfrestcontrib.servicemodel.dispatcher.webbasicauthenticationhandler, wcfrestcontrib" usernamepasswordvalidatortype="engage.mobile.webservices.runtime.securityvalidator, engage.mobile.webservices" requiresecuretransport="false" source="e mobile" /> <webformatter> <formatters defaultmimetype="application/json"> <formatter type="wcfrestcontrib.servicemodel.dispatcher.formatters.poxdatacontract, wcfrestcontrib" mimetypes="application/xml,text/xml" /> <formatter type="wcfrestcontrib.servicemodel.dispatcher.formatters.datacontractjson, wcfrestcontrib" mimetypes="application/json" /> <formatter type="wcfrestcontrib.servicemodel.dispatcher.formatters.formurlencoded, wcfrestcontrib" mimetypes="application/x-www-form-urlencoded" /> </formatters> </webformatter> <errorhandler errorhandlertype="wcfrestcontrib.servicemodel.web.weberrorhandler, wcfrestcontrib" /> <weberrorhandler loghandlertype="engage.mobile.webservices.runtime.loghandler, engage.mobile.webservices" returnrawexception="true" exceptiondatacontracttype="" /> <servicedebug includeexceptiondetailinfaults="true" /> </behavior> </servicebehaviors> </behaviors> </system.servicemodel> </configuration>
i posted similar answer in this thread, , there similar answers across these errors.
you have rewrite element in web.config, , without url rewrite installed iis not recognise element , throws error see. install url rewrite , should work.
Comments
Post a Comment