Hi MREcoolio, Thanks for your reply... I was able to transfer a stream to my client without any trouble when the file size is less than 64kb ("maxReceivedMessageSize" property of the "binding" element)... I understand that this is the default size limit and that we can change it to suit our requirements... But my problem is that no matter how large a number I specify for the "maxReceivedMessageSize" property, I get a communication fault exception. The following are the server and client config files for your reference.. The configuration as I said, works perfectly fine for files whose sizes are lesser than 64kb.. Am I missing something here? Server Side App.config:
<system.serviceModel>
<bindings>
<netNamedPipeBinding>
<binding name="MyNetNamedPipeBinding" closeTimeout="01:01:00" openTimeout="01:01:00" receiveTimeout="00:10:00" sendTimeout="01:10:00" transactionFlow="false" transferMode="Streamed" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxBufferSize="10333" maxConnections="10" maxReceivedMessageSize="9223372036854775807">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="Transport">
<transport protectionLevel="EncryptAndSign" />
</security>
</binding>
</netNamedPipeBinding>
</bindings>
<services>
<service name="MyService" behaviorConfiguration="metadataSupport">
<host>
<baseAddresses>
<add baseAddress="net.pipe://localhost/MyService" />
</baseAddresses>
</host>
<endpoint address="" binding="netNamedPipeBinding" bindingName="MyNetNamedPipeBinding" contract="MyContract" />
<endpoint address="mex" binding="mexNamedPipeBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="metadataSupport">
<serviceMetadata />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Client Side App.config:
<system.serviceModel>
<bindings>
Hi Eddy, Thanks a lot for the replies..
Eddy Vluggen wrote:
The simplest way would be to create a small application that writes the username to a file, and to drop it in the Startup-folder.
I shall use this... Thanks, ramz_g
Hi All, Thanks for all your replies... @Nagy Vilmos, Yes Nagy, I did think about what could be running.. It is just that I was not able to find what was running.. Debugging? Of course.. Anyways, thanks for your reply...
IE is a part of Windows itself and you can safely assume its existence on Windows. I personally won't go bothering about an usecase where the IE installation is corrupt for some unforeseen reasons. It may be negligible.
It is a crappy thing, but it's life -^ Carlo Pallini
Hi Henry, Thanks for your reply. Using the DataGridView was always one the options that I had. Maybe its time that I zeroed-in on using the DataGridView... Thanks, ramz_g
Hi Rolcr, :-) Ya.. Even i browsed through all these sites earlier today and found that there are some issues with GZipStream... Anyways, thanks for the replies... ramz_g