c# - Deployed WCF Silverlight application returns 404 Error -


i have silverlight 5 web application host in iis 8. can run application fine in vs 2013 on deploying windows 2012 server running iis 8, app fails run. fiddler gives me following: description: http 404. resource looking (or 1 of dependencies) have been removed, had name changed, or temporarily unavailable. please review following url , make sure spelled correctly.

my web.config file shown below:

<?xml version="1.0" encoding="utf-8"?>  <configuration>    <configsections>      <sectiongroup name="system.servicemodel">        <section name="domainservices" type="system.servicemodel.domainservices.hosting.domainservicessection, system.servicemodel.domainservices.hosting, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" allowdefinition="machinetoapplication" requirepermission="false" />      </sectiongroup>    </configsections>    <appsettings>      <add key="applicationname" value="......" />    </appsettings>        <system.web>      <httpmodules>        <add name="domainservicemodule" type="system.servicemodel.domainservices.hosting.domainservicehttpmodule, system.servicemodel.domainservices.hosting, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />      </httpmodules>      <httpruntime targetframework="4.5" maxrequestlength="10000000" executiontimeout="120" />      <compilation debug="true" targetframework="4.5">        <assemblies>          <add assembly="system.data.entity, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" />        </assemblies>      </compilation>      <rolemanager enabled="true" />      <authentication mode="forms">        <forms name=".abcd_aspxauth" timeout="20" />      </authentication>      <profile>        <properties>          <add name="friendlyname" />        </properties>      </profile>      <pages controlrenderingcompatibilityversion="4.0" />            <customerrors mode="remoteonly" defaultredirect="defaultredirecterrorpage.aspx">        <error statuscode="403" redirect="accessdenied.htm" />        <error statuscode="404" redirect="http404errorpage.aspx" />      </customerrors>          </system.web>    <system.web.extensions>      <scripting>        <webservices>          <authenticationservice enabled="true" requiressl="false" />          <roleservice enabled="true" />        </webservices>      </scripting>    </system.web.extensions>        <system.webserver>      <validation validateintegratedmodeconfiguration="false" />        <modules runallmanagedmodulesforallrequests="true">        <add name="domainservicemodule" precondition="managedhandler" type="system.servicemodel.domainservices.hosting.domainservicehttpmodule, system.servicemodel.domainservices.hosting, version=4.0.0.0, culture=neutral, publickeytoken=31bf3765ad364e35" />      </modules>    </system.webserver>        <system.servicemodel>      <client />      <behaviors>        <servicebehaviors>          <behavior name="appservicesbehavior">            <servicemetadata httpgetenabled="true" />          </behavior>          <behavior name="reportservicebehavior">            <servicemetadata httpgetenabled="true" />            <servicedebug includeexceptiondetailinfaults="false" />          </behavior>        </servicebehaviors>        <endpointbehaviors>          <behavior name="webbehavior">            <webhttp />          </behavior>        </endpointbehaviors>      </behaviors>      <bindings>        <basichttpbinding>          <binding name="userhttp">            <security mode="none" />          </binding>        </basichttpbinding>      </bindings>      <services>        <service name="system.web.applicationservices.authenticationservice" behaviorconfiguration="appservicesbehavior">          <endpoint contract="system.web.applicationservices.authenticationservice" binding="basichttpbinding" bindingconfiguration="userhttp" bindingnamespace="http://asp.net/applicationservices/v200" />        </service>        <service name="system.web.applicationservices.roleservice" behaviorconfiguration="appservicesbehavior">          <endpoint contract="system.web.applicationservices.roleservice" binding="basichttpbinding" bindingconfiguration="userhttp" bindingnamespace="http://asp.net/applicationservices/v200" />        </service>        <service name="telerik.reporting.service.reportservice" behaviorconfiguration="reportservicebehavior">          <endpoint address="" binding="basichttpbinding" contract="telerik.reporting.service.ireportservice">            <identity>              <dns value="localhost" />            </identity>          </endpoint>          <endpoint address="resources" binding="webhttpbinding" behaviorconfiguration="webbehavior" contract="telerik.reporting.service.iresourceservice" />          <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange" />        </service>      </services>      <servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true" />    </system.servicemodel>    <connectionstrings>      ''''''''''''''''    </connectionstrings>    <system.diagnostics>      <sources>        <source name="system.servicemodel" switchvalue="critical, error, warning" propagateactivity="true">          <listeners>            <add name="tracelistener" type="system.diagnostics.xmlwritertracelistener" initializedata="c:\projects\log\traces.svclog" />          </listeners>        </source>      </sources>    </system.diagnostics>    </configuration>

can tell me why configured win 2012 server not load deployed application when can still run vs 2013? or there way fiddler give more detailed error?

i set tracing on, log not give better clues.

thanks.

chances have ria services installed on development machine not installed on server.

you have 2 choices:

  1. remember install ria services on each server deploy to

  2. add riaservices.server nuget package *.web project. add private local copies of riaservices dll solution.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -