I got the fortune to further develop an in-house console application written in C#. The purpuse of this application is to synchronize multiple files from one server to another, basically copy files from one to the other. The application works for files up to 4 MB and I can't find it anywhere in the application itself that limits the filesize to 4 MB other than for the log file.
This console application is apart of a webapplication that stores forms that the users have created. I have managed to limit the webapplication to allow files no bigger than 100 MB in size and that works but the synchronization application won't transfer the bigger files from the depot to their respective places on the other server.
Unfortunately I have no other log than the one that says the files (that aren't over 4 MB) where transfered OK. Debugging the application is a no go since it only runs on the server and I can't get it to work on my local machine.
My question is thus, is there any posibility to set anything in the app.config file to allow the application to also synchronize files bigger than 4 MB?
In the webapplication part of this big project I have used the following code:
<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout="1200"/>
</system.web>
But since this part isn't a webapplication it (appears) to not care about that line of configuration.
This is the configuration file for the console synchronization application:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="SynchConfiguration" value="C:\Documents and Settings\My Documents\Visual Studio 2010\Projects\DepotSynch\Depot.Synch\DepotSynchConfiguration.xml"/>
<add key="SynchLog" value="C:\Documents and Settings\My Documents\Visual Studio 2010\Projects\DepotSynch\Depot.Synch\DepotSynchLOG.txt"/>
<!-- Int Size in MB -->
<add key="MaxLogFileSize" value="4"/>
<!-- SHS Web Service API Configuration -->
<add key="Status" value="test"/>
<add key="From" value="1234567890"/>
<!-- Identification Nummer -->
<add key="To" value="1234567890.web"/>
<add key="CertLocation" value="certificate\test\test.p12"/>
<!-- placeing of certet i filsystemet -->
<add key="CertPwd" value="test234test"/>
<!-- cert -->
<!-- <add key="ShsUrl" value="Is set ini DepotSynchConfiguration.xml for each environment"/> -->
<!-- URL to Shs Service -->
<add key="ConnectByCertAndPwd" value="true"/>
<!-- True/False - for certificate -->
<add key="SendFileBySHS" value="false"/>
<!-- For test. Won't send the file/s. -->
</appSettings>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="MyWsHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:50232/Depot.svc" binding="wsHttpBinding" bindingConfiguration="MyWsHttpBinding" contract="DepotReleaseServiceReference.IDepot" name="MyWsHttpBinding">
<identity>
<servicePrincipalName value="
 " />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>
Unfortunately I can't go and ask the original developer for help in this matter since he quit working here some 2 years ago.