.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Request time out while using WebClient .Net frame work 2.0

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :.NET Framework

In our application developed in .Net framework 2.0, we have a requirement to download multiple files from WebServer (IIS 6.0) simultaneously, the file count is not defined it can exceed 40 or 50 or more and the file size is less then 1 kb. We are using WebClient to download file one by one and “dispose” it as soon as the file is downloaded.


The issue here is sometime we get “Time out error” for some files and some files are downloaded successfully.


We have already tried setting ServicePointManager.DefaultConnectionLimit property but still the issue persists.

View Complete Post

More Related Resource Links

Why my application always complain request is time out??

Below is the configuration file, i didn`t do any modification on it. and i got a very weird situation. first my application run in this way, it was a back end library, every few second, it will send a web request to a central server for information update. but when i test it, after my back end library was launch for a while, it always complain timeout. and cannot send any message to the server. so what is wrong with my application?????  is there anything to do with the configuration file? <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <bindings> <wsHttpBinding> <binding name="WSHttpBinding_IEAVService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> <readerQuotas maxDepth="32" maxStringConten

Work with SOAP requests via Raw request

I will handle SOAP requests via IHttpRequest. What best way to work with raw SOAP requests (mean how desearialize etc)?

Can´t get the time intelligence filter to work in PerformancePoint Services/Sharepoint

Hi all, I have created a scorecard in Dashboard Designer based on an SSAS cube which looks ok in both DD and Sharepoint. As I want to connect a time filter to this I have created a TI filter in DD. In Sharepoint I have connected the filter to the scorecard with "send performancepoint values to". In "configure connection" I set source value to "PerformancePoint Values: Formula" and Connect to to "Endpoint_TIFormula". I only need to filter on year and have set the TI properties on the cube. Selected time dimension is "Year", Hierarchy level is set to Year, Member is 2008, reference date is 1/1/2008 and I have associated member level Year to Time aggregation Year. The filter is set up like this in DD: it uses the same data source as the scorecard and I use a list view. I do get the filter to work if I specify one formula for each year (e.g. Formula: "Year" and "Display Name: "2010", "Year-1" and "2009" making up two rows) but that can´t be the right way to do it, right? What i would like is a multiselect tree view where I can choose the year I want and have them display on columns. I have tried the formula Year:Year-2 and in the preview I see [Date].[Year].&[2008],[Date].[Year].&[2009],[Date].[Year].&[2008]. However, in Sharepoint the filter only show on

System.Net.WebException:an Exception occurred during a Webclient request.

Hi, I have a winforms application where in i want to access the application folder. I am workign on a vista pc. When i try to access the folder, i am getting he folllowing error: System.Net.WebException:an Exception occurred during a Webclient request. ---->System.UnauthorizedaccessException:Accessto the path "C:\ProgramFiles\...\setup.exe" is denied. How can i change this? Is there anyway i can give permissions from within the code? Or is there any other way to resolve this issue? Thanks

.NET developer, looking for a full time freelance work.

I am from Bangalore, India. I am looking for a full time freelance/part time software development job. I have expertise on C#, WPF and ASP.Net. For any further information please contact me @ saswas_san@yahoo.co.in     Thanks Saswati

Request.UrlReferrer does not work in Internet Explorer

Hi , i have a problem in my asp application . Im trying to protect the path for my application using this code : Uri t = Request.UrlReferrer;             bool op = false;             if (t.ToString().StartsWith("https://rim-sistem.com") || (t.ToString().StartsWith("http://www.rim-sistem.com")))             {                 op = true;             }Uri t = Request.UrlReferrer;            bool op = false;            if (t.ToString().StartsWith("My web site"))            {                op = true;            }This code work with Firefox , Chrome , etc . But it doesnt work in Internet explorer , when ill delete this piece of code it work in Internet explorer but the application is not secure and can be viewed by anyone who will type the path in them broswer . Can someone tell me what it is the problem ? Thanks Martin

Performance - page is being loaded for the first time vs SubSequent Request

Hello, I have some serious performance Issues with  Windows controls loading first time on IE Browser then subsequent request's. When ever i open Browser first time , mywebsite takes 7 seconds to load, but on subsequent request  without closing browser it loads with-in 2 seconds.I Knew IIS on first time it re-compiles the process and for subsequent request's  it wont perform and it cahches .I'm looking for better  options to improve performance,  when ever  first time reqest's  comes to web server. On IIS 7  Server,I was using both Dynamic and Static compression enabled.Also,On application pool ,I set "ShutDown Time(Limit)" and "Startup Time(Limit") to 90 (seconds).Here is web.config i disable below to improve performance issues.   <trace enabled="false" pageOutput="false" />    <compilation debug="false"/>   Here is the Server Configuration Windows 2008 ServerIIS 7 64   bit Upto Date patches..Net Framework  2.0,3.0,3.5   Need   inputs to improve performance when user call website for  first time...

Hotfix request links to Cumulative Updates 9 and 10 for SP1 do not work


Last week I was able to obtain CU9 for SQL Server 2008 SP1.  This week, I cannot even make a request for CU10 or CU9.  Since Saturday, I have received the following reply whenver I click on a hotfix link:  Hotfix Request
The system is currently unavailable. Please try back later, or contact support if you want immediate assistance.http://support.microsoft.com/contactus/?ws=support

If I attempt to contact support in any way, they want to charge me.  What is going on?

problem with ajax control while upgrading website from 3.5 to 4.0 frame work



i am working on asp.net website.

on my web page i  submit some data on click at button , this block is inside update panel.

this functionality working fine in 3.5 frame work.

Now  our website is using 4.0 frame work.

controls inside update panel giving following error on submting data :

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500.

 thanks in advance

Remember me next time doesn't work


In the login control, the "Remember me next time" checkbox does not appear to work.

If I check it when logging in, when I log in the next time, even a minute later, I go to the login page again.

It seems the cookie is not being written to the client.  Can't find it anywhere.

My web.config contains:

    <authentication mode="Forms">
      <forms slidingExpiration="true" timeout="525600"/>

Your help would be much appreciated (any code snippets preferably in VB, please).

Thanking you in anticipation.




Design time, unhandled exception occured, request is not available in the context


i am using a user control that has the html code with head tag is set to runat server. when i drop this control in main page, i am getting an error in the design time, Error rendering control, unhandled exception occured, request is not available in this context, but at runtime, everything is working fine. i can fix this by removing the ID and runat=server in the head tag, but how to make this to work without removing the runat server for head tag ?.. which request it means that is not available.

i am very new to C#, i hope what i am asking makesence, apologize if i am not clear, i highly appreciate any explanation ! thankyou !...

here is the code present in the user control...

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="header.ascx.cs" Inherits="user_controls_header" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">

Request time out (ping) from other subnet


We have production issue with our sql 2K5 cluster. Our configuration is :

- 2 node IBM x3850 (active/pasive)

  a) Node1 :  IP1 ( with mac address A, 4 nic teamed as public network - but only 1 is plugged into switch, 1 nic for private network
  b) Node2 :  IP2 ( mac address B, 4 nic teamed as public network- but only 1 is plugged into switch, 1 nic for private network

- OS : win 2008 enterprise R2
- DB : SQL 2005 SP3 enterprise
- Cluster Host IP (
- SQL Cluster IP (

SQL Cluster and Users segmented into different vlan. Server vlan is 172.16.0.x then User vlan is 172.16.4.x. Our sql cluster is functioning properly.

But when user accessed from user's vlan, sometimes they got ping request time out and sql general network error. But not from servers vlan. We've checked the switch device, and showed that ARP table for sql cluster ( is changing from mac address A to mac address B. When the active node is node1, and the ARP table points node2's mac address, user got request time out.

Please help. right now the customer shutdown one of the nodes in order to get static ip-mac translation in arp table.


Image button Click event is Not fiering after migrating from 3.5 to 4.0 frame work



I am facing a problem.my image button Click event is not firing after i migrate it from 3.5 to 4.0.It is working fine in 3.5.

I have page on which there is jquery flexigrid and html button to refresh data of flexgrid on basis of input provided through dropdown.

When i go to first time on  page and click on Image button it fires the Click event and do the job as.But when i click on html button to refresh new data or just refresgh data and click image button then it is not fiering the click event.I dont have any idea ..where i am wrong .

Please Guide me for this ....

thanks in advance...

Is it possible to disable all javascript functions which are set to work after a certain time, after


Is it possible to disable all javascript functions which are set to work after a certain time, after update panel asynchronous postback

as you alread know you can set certain functions to get executed after a certain time with setTimeout method

i want to disable all setTimeout method setuped functions after update panel asynchronous postback

is this possible

thank you

about "Request time out"

Sometime,ajax request will not be responsed when user's network delay is high.
So,if I want to stop the request and tell user "request  time out" in the client ,What sould I do with  asp.net ajax .
I want to an unified form to solve this problem.
any suggestion? 


ARR (Application Request Routing) doesn't work in SharePoint 2010 web application?


I'm trying to map a sub folder of a SharePoint 2010 web application to an asp.net web application on another server. For example, http://sharepointserver is a SharePoint 2010 web application and http://anotherserver/mapping is a non-sharepoint asp.net web site, and I want user access content of http://anotherserver/mapping via url http://sharepointserver/mapping.

What I did is:

1. I installed ARR 2.0 on Windows Sever 2008 R2 server which is hosting the SharePoint 2010 web application.

2. I enabled the server proxy in ARR module.

3. I defined a rule in SharePoint 2010 web application to catch request match mapping* and rewrite to url http://anotherserver/mapping{R:1}.

I will always get "404 NOT FOUND" error when I trying to access the url http://sharepointserver/mapping.

But if I do the same on a non-sharepoint website on the sharepoint server, it works, and it even works if I try on a SharePoint 2007 web application.

And if I use Redirect instead of Rewrite, it also works.

Anyone can help one this?


Wsdl.exe does not work for https request


Hi friends,

I am trying to create a proxy class for webservice which is https request using wsdl.exe tool. But it does not create.

Help me out.



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend