Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote WCF service hangs

Status
Not open for further replies.

Jimi2Cool

Programmer
Jul 30, 2007
25
0
0
US
ok, i have a service that fetches images from a database for me.the service is hosted in IIS and the service config is as follows



<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<diagnostics performanceCounters="All" wmiProviderEnabled="True">
<messageLogging logEntireMessage="True"
logMalformedMessages="True"
logMessagesAtServiceLevel="True"
logMessagesAtTransportLevel="True" />
</diagnostics>
<services>
<service behaviorConfiguration="MySite.ImageService.ImageFetchBehavior"
name="MySite.ImageService.ImageFetch">
<endpoint address=" binding="basicHttpBinding"
bindingConfiguration="bigBasicHttpBinding" name="ImageFetchHttpEndPoint"
contract="MySite.ImageService.ImageFetch">
<identity>
<dns value=" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" name="ImageFetchMexBinding"
contract="IMetadataExchange" />
</service>
<service behaviorConfiguration="MySite.ImageService.ImageSearchBehavior"
name="MySite.ImageService.ImageSearch">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="bigBasicHttpBinding"
contract="MySite.ImageService.ImageSearch">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<service behaviorConfiguration="MySite.ImageService.ImageUploadBehavior"
name="MySite.ImageService.ImageUpload">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="bigBasicHttpBinding"
contract="MySite.ImageService.ImageUpload">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MySite.ImageService.ImageFetchBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true"
serviceAuthorizationAuditLevel="SuccessOrFailure" messageAuthenticationAuditLevel="SuccessOrFailure" />
</behavior>
<behavior name="MySite.ImageService.ImageSearchBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true"
serviceAuthorizationAuditLevel="SuccessOrFailure" messageAuthenticationAuditLevel="SuccessOrFailure" />
</behavior>
<behavior name="MySite.ImageService.ImageUploadBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true"
serviceAuthorizationAuditLevel="SuccessOrFailure" messageAuthenticationAuditLevel="SuccessOrFailure" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="bigBasicHttpBinding"
closeTimeout="01:00:00"
openTimeout="01:00:00"
receiveTimeout="01:00:00"
sendTimeout="01:00:00"
maxReceivedMessageSize="10490000"
maxBufferSize="10490000" >
<readerQuotas maxDepth="10490000"
maxStringContentLength="10490000"
maxArrayLength="10490000" />
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>



the service functions just fine on my local machine. However, when i publish the service to a remote machine in the same network and try and browse to the svc file (or add a web refference from a remote client) the page just hangs pretty much indefinately. Any ideas where i may be going wrong?
 
Do you get any errors? Is there any error handling in your code that provides any further information? Does anything get written to the event log?

[!]
-------------------------------------------------------

Mark,

Join me at the new IT Community of the 21st Century: [!][URL unfurl="true"]http://lessthandot.com[/!][/url]

[/!]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top