Jump to content
Xtreme .Net Talk

amir100

Avatar/Signature
  • Posts

    191
  • Joined

  • Last visited

Personal Information

  • Occupation
    System Analyst
  • Visual Studio .NET Version
    Visual Studio .NET 2002, 2003, 2005
  • .NET Preferred Language
    C#, VB.NET

amir100's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I am assuming you're doing a client side validation. That is you're doing the validation using client side scripting. That's why I suggested using an HTML Button Control instead of the usual Server Button Control. If you're using the HTML Control then you don't have to worry about any postbacks.
  2. How about using the HTML Controls?
  3. Re: Two ideas I'd try the second suggestion first. Then I move on to the first suggestion. :)
  4. I've found the source of the problem. The problem lies within the "Connection Timeout" property of the Website. My testing server sets that property to 120 seconds. Which means I only got 2 minutes to send a request for a web service, execute the requested method, and retrieve the response from the web server. Since the average time of execution for the web methods is 4 minutes, the HTTP connection is closed by the server before the client retrieve the response. Hence I got the "Underlying Connection was Closed" WebException. It looks like setting the Timeout property of each web service objects in the client to -1 isn't doing anything to prevent the web server from closing the HTTP connection. I believe this has something to do with persistent connection and what-not. I've tried a few trick to disable persistent connection from the client side but it's not working. In the end the best fix was setting a higher "Connection Timeout" property in the IIS. I set it to 900 seconds (15 minutes). Any comments? I was wondering what are the effects of increasing the "Connection Timeout" property. That and I'm still looking for a better solution. Anyone have a better idea?
  5. 4 minutes in average. Mind you that the exception only occured from time to time. It doesn't always throws the WebException I mentioned above. I've tested it in three different clients. Thanks for the reply.
  6. I'm currently developing client windows applications accessing web services. I'm using VS.Net 2002. Now for the problems. Timeout It is to my understanding that sending synchronous web request will have a probability of experiencing time out. I'm creating an instance of my web service with the name "mywebservice". :D Now I'm accessing a web service method; let's say Method1. When I'm executing mywebservice.Method1(), I get "The operation timed out" exception message. An immediate solution to this problem was setting the timeout property of mywebservice to -1: mywebservice.Timeout = -1 Done. Too bad that solution doesn't last long enough. It leads to problem number two. Underlying Connection was Closed Yupe. It's a System.Net.WebException. The client cannot retrieve the response because the connection to the web server is closed. Closed? After reading a few references I discovered that it is due to the connection being timed-out but the client still thinks its open. What the ... @_@ Adding to the confusion is that the exception doesn't always occurred. Sometimes the code works perfectly fine without a single exception. What's with this behavior? I'm kinda stuck here. I'd appreciate any help you have to offer. But I've already set the time
  7. I can see the problem now. However I can't find a decent clue to solving this problem. Since you're using a dropdownlist, I don't think there's any property available to set the number of items to display. I check it's counterpart HTML control. It is a fact that you cannot set the number of items to display on a dropdownlist. It is only possible with a listbox. Maybe you should consider another method of showing the "real estate" items. Btw I don't get your reason for not using the listbox. CMIIW.
  8. owner draw?
  9. It's possible in TextBox. But I don't think it's possible in ListBox. Have you seen it working somewhere? CMIIW.
  10. Does the "fill" work? Have you set your crystal report "database fields" correctly? Is it to late for me to reply? :D
  11. Welcome Donyell. :D
  12. I'm back using VS .Net 2002. :( Okay so I'm trying to connect to SQL Server 2000. It's a simple deal. Piece of cake. No sweat. But ... Why is it that everytime I disconnect from my network, my connection to SQL Server always failed? This has given me some hard time. Any hints? Thx.
  13. Yes, you can. Take a look at alreadyused's explanation. :D Hope it helps.
  14. I was thinking of proposing hash tables to handle the problem. But I guess I got it wrong. I thought the problem was checking the evaluated string to the collection. But I guess it goes the opposite. Mondeo was asking how to check each item in the collection to the string. :D My deepest apology. :D
  15. How about using hash tables? Judging from your code. It's like you're planning to use arrays as your collection. I don't think that would be wise since you have to iterate everytime you need to check your collection. CMIIW.
×
×
  • Create New...