?
Solved

Operation Time Out during the execution of the web request.

Posted on 2012-03-22
5
Medium Priority
?
406 Views
Last Modified: 2012-08-13
Hello Experts,
I have created a script for currency conversion which convert currency of the website to USD or Euro from base currency GBP.
I have used http://www.google.com/ig for currency conversion.
This script runs perfectly on my Local server and also on test server  : http://dotcompreview.com/website1/default2.aspx 
but gives error on live server : http://thats-the-look.com/default2.aspx.

Can you please suggest what changes i need to make to run script on the live server.

I have attached my .cs file and Error Screen.
Default2.aspx.cs.txt
error.jpg
0
Comment
Question by:dotsandcoms
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:gery128
ID: 37753173
You might want to try increasing Timeout of WebRequest.

webRequest.Timeout = 20000; //instead of
webRequest.Timeout = 10000;

Open in new window

0
 
LVL 9

Expert Comment

by:gery128
ID: 37753181
Also once you are done with use of response object. you should close/dispose it.
Check this link:

http://stackoverflow.com/questions/1215488/system-net-webexception-the-operation-has-timed-out
0
 

Author Comment

by:dotsandcoms
ID: 37755786
Hi,
I've increases timeout and added .close() but cannot resolve the error. Is there any hosting   side issues ?
0
 

Accepted Solution

by:
dotsandcoms earned 0 total points
ID: 37755877
Hi,
There is issue with Hosting Service. I took help from Microsoft KB [http://support.microsoft.com/kb/318140].
Then did proper settings in Web.Config and now its work perfectly.

thank you for your help.
0
 

Author Closing Comment

by:dotsandcoms
ID: 37770469
There is issue with Hosting Service. I took help from Microsoft KB [http://support.microsoft.com/kb/318140].
Then did proper settings in Web.Config and now its work perfectly.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will learn how to count occurrences of each item in an array.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question