Note that there are some explanatory texts on larger screens.

plurals
  1. POWcf Endpoint and configuring challenge , please help a WCF newbie
    primarykey
    data
    text
    <p>I am new to WCF so please bear with me.</p> <p>I have StudentData.svc.vb that implements 2 interfaces from the same IStudentData.vb</p> <p>The 2 Interfaces are IStudentData and IHeartbeat Heartbeat is a 1 way Operational Contract _</p> <p>I am using IIS 7.5 to host this service the web.config is</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;appSettings&gt; &lt;add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /&gt; &lt;/appSettings&gt; &lt;system.web&gt; &lt;compilation debug="true" strict="false" explicit="true" targetFramework="4.5" /&gt; &lt;httpRuntime targetFramework="4.5"/&gt; &lt;/system.web&gt; &lt;system.serviceModel&gt; &lt;bindings /&gt; &lt;client /&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior&gt; &lt;!-- To avoid disclosing metadata information, set the values below to false before deployment --&gt; &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/&gt; &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --&gt; &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;protocolMapping&gt; &lt;add binding="basicHttpsBinding" scheme="https" /&gt; &lt;add binding="basicHttpBinding" scheme="http" /&gt; &lt;/protocolMapping&gt; &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /&gt; &lt;/system.serviceModel&gt; &lt;system.webServer&gt; &lt;modules runAllManagedModulesForAllRequests="true"/&gt; &lt;!-- To browse web app root directory during debugging, set the value below to true. Set to false before deployment to avoid disclosing web app folder information. --&gt; &lt;directoryBrowse enabled="true"/&gt; &lt;/system.webServer&gt; &lt;/ </code></pre> <p>my app.config after creating the service reference is </p> <pre><code> &lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;startup&gt; &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt; &lt;/startup&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="BasicHttpBinding_IStudentData" maxReceivedMessageSize="2147483647" /&gt; &lt;binding name="BasicHttpBinding_IHeartbeat" maxReceivedMessageSize="2147483647" /&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address="http://www.ortho-sync.com:8080/StudentData.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IStudentData" contract="oStudentData.IStudentData" name="BasicHttpBinding_IStudentData" /&gt; &lt;endpoint address="http://www.ortho-sync.com:8080/StudentData.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IHeartbeat" contract="oStudentData.IHeartbeat" name="BasicHttpBinding_IHeartbeat" /&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre> <p>IStudentData has a class with a datamember of byte array that I am using to transfer an image. If I use a small file it transfers and everything works if I use a 1 meg image I get (413) Request Entity Too Large </p> <p>I have played with the bindings and end points til I am blue in the face, anyone please help.</p>
    singulars
    1. This table or related slice is empty.
    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.
    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