Note that there are some explanatory texts on larger screens.

plurals
  1. POPublish WCF service to live website
    primarykey
    data
    text
    <p>I have only been playing w/ wcf stuff for about a week. I have it working on the dev server in Visual Studio, and now I want to put the project on the web. I used publish in Visual Studio to put it up w/ ftp. My FTP client confirms the files are there, but when I enter the address in a browser, I get the following error:</p> <p>Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. </p> <p>Requested URL: /EquipService.svc</p> <p>Is there some setting I need to change or some setup I need to do on the server? I don't know why it says the file is unavailable since FileZilla shows the files on the server. Any help would be appreciated. Thanks</p> <p><strong>EDIT:</strong> Here is the Web.config, but just as a preface, I don't know what any of this is doing, I just copied bits and pieces from another guys project until the errors stopped and it worked. :|</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; </code></pre> <p></p> <p> </p> <p></p> <pre><code>&lt;protocolMapping&gt; &lt;add scheme="http" binding="webHttpBinding" bindingConfiguration="webHttpBinding"/&gt; &lt;/protocolMapping&gt; &lt;behaviors&gt; &lt;endpointBehaviors&gt; &lt;behavior&gt; &lt;webHttp helpEnabled="true" automaticFormatSelectionEnabled="true"/&gt; &lt;/behavior&gt; &lt;/endpointBehaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="metadataSupport"&gt; &lt;serviceMetadata httpGetEnabled="true" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true"&gt; &lt;baseAddressPrefixFilters&gt; &lt;add prefix ="localhost"/&gt; &lt;/baseAddressPrefixFilters&gt; &lt;/serviceHostingEnvironment&gt; &lt;bindings&gt; &lt;webHttpBinding&gt; &lt;binding name="webHttpBinding"&gt; &lt;security mode="None"&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/webHttpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service name="EquipService.svc"&gt; &lt;endpoint address="~/EquipService.svc" binding="webHttpBinding" contract="Equipment.IEquipService" /&gt; &lt;endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" /&gt; &lt;/service&gt; &lt;/services&gt; </code></pre> <p></p> <p> </p> <p>Im still not quite understanding why the services work on the Visual Studio server, and not on a web server.</p> <p>But thanks for looking.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload