Advertisement
Guest User

Untitled

a guest
Sep 17th, 2013
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.85 KB | None | 0 0
  1. I am recving the exception while i try to upload a file of size grater than 50MB using the WCF service.
  2.  
  3. <?xml version="1.0"?>
  4. <!--
  5. Note: As an alternative to hand editing this file you can use the
  6. web admin tool to configure settings for your application. Use
  7. the Website->Asp.Net Configuration option in Visual Studio.
  8. A full list of settings and comments can be found in
  9. machine.config.comments usually located in
  10. WindowsMicrosoft.NetFrameworkv2.xConfig
  11. -->
  12. <configuration>
  13. <configSections>
  14. <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  15. <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  16. <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  17. <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  18. <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
  19. <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  20. <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  21. <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  22. </sectionGroup>
  23. </sectionGroup>
  24. </sectionGroup>
  25. </configSections>
  26. <appSettings/>
  27. <connectionStrings/>
  28. <system.web>
  29. <!--
  30. Set compilation debug="true" to insert debugging
  31. symbols into the compiled page. Because this
  32. affects performance, set this value to true only
  33. during development.
  34. -->
  35. <compilation debug="true">
  36. <assemblies>
  37. <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  38. <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  39. </assemblies>
  40. </compilation>
  41. <!--
  42. The <authentication> section enables configuration
  43. of the security authentication mode used by
  44. ASP.NET to identify an incoming user.
  45. -->
  46. <authentication mode="Windows"/>
  47. <!--
  48. The <customErrors> section enables configuration
  49. of what to do if/when an unhandled error occurs
  50. during the execution of a request. Specifically,
  51. it enables developers to configure html error pages
  52. to be displayed in place of a error stack trace.
  53.  
  54. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  55. <error statusCode="403" redirect="NoAccess.htm" />
  56. <error statusCode="404" redirect="FileNotFound.htm" />
  57. </customErrors>
  58. -->
  59. <pages>
  60. <controls>
  61. <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  62. </controls>
  63. </pages>
  64. <httpHandlers>
  65. <remove verb="*" path="*.asmx"/>
  66. <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  67. <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  68. <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
  69. </httpHandlers>
  70. <!--Buffer Size Upload-->
  71. <httpRuntime maxRequestLength="2048576"/>
  72. <httpModules>
  73. <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  74. </httpModules>
  75.  
  76. </system.web>
  77. <system.codedom>
  78. <compilers>
  79. <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  80. <providerOption name="CompilerVersion" value="v3.5"/>
  81. <providerOption name="WarnAsError" value="false"/>
  82. </compiler>
  83. </compilers>
  84. </system.codedom>
  85. <!--
  86. The system.webServer section is required for running ASP.NET AJAX under Internet
  87. Information Services 7.0. It is not necessary for previous version of IIS.
  88. -->
  89. <system.webServer>
  90. <validation validateIntegratedModeConfiguration="false"/>
  91. <modules>
  92. <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  93. </modules>
  94. <handlers>
  95. <remove name="WebServiceHandlerFactory-Integrated"/>
  96. <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  97. <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  98. <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  99. </handlers>
  100. </system.webServer>
  101. <system.serviceModel>
  102. <bindings>
  103. <basicHttpBinding>
  104. <binding name="basicHttpBinding_IVideoUpload" transferMode="Buffered" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="11:30:00" sendTimeout="11:01:00"
  105. bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"
  106. maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
  107. <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
  108. <!--<security mode="Transport">
  109. <transport clientCredentialType="Basic"/>
  110. </security>-->
  111. </binding>
  112. </basicHttpBinding>
  113. <customBinding>
  114. <binding name="Soap12">
  115. <textMessageEncoding messageVersion="Soap12WSAddressing10" />
  116. <httpTransport transferMode="Streamed" maxReceivedMessageSize="67108864"/>
  117. </binding>
  118. </customBinding>
  119. </bindings>
  120. <services>
  121. <service behaviorConfiguration="UplaodVideoService.VideoUploadBehavior" name="UplaodVideoService.VideoUpload">
  122. <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_IVideoUpload" contract="UploadVideoProtocol.IVideoUpload">
  123. <identity>
  124. <dns value="localhost"/>
  125. </identity>
  126. </endpoint>
  127. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
  128. </service>
  129. </services>
  130. <behaviors>
  131. <serviceBehaviors>
  132. <behavior name="UplaodVideoService.VideoUploadBehavior">
  133. <serviceMetadata httpGetEnabled="true"/>
  134. <serviceDebug includeExceptionDetailInFaults="true"/>
  135. <serviceThrottling
  136. maxConcurrentCalls="16"
  137. maxConcurrentInstances="2147483647"
  138. maxConcurrentSessions="10"/>
  139. </behavior>
  140. </serviceBehaviors>
  141. </behaviors>
  142. </system.serviceModel>
  143. </configuration>
  144.  
  145. An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full
  146. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
  147.  
  148. Exception Details: System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement