Developer Forum [ All Topics | New Topic ]

Thread: Increase timeout Period to login of rapnet

when we can upload the lot to rapnet side,it's required we should use webservices for that.
i.e  WebServiceManager.UploadLots(WebServiceManager.Login(RapNetUserId, RapNetPassword), UploadManager)

but some time we arise the following error

"The request channel timed out while waiting for a reply after 00:00:58.5302734. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout."

So how to increase the time?

>> add a comment
03/22/2011 02:26

5 Replies:

DiamondManager webServiceManager = new DiamondManager();
webServiceManager.Timeout = 600000;

>> add a comment
ahaliav fox
3/23/2011 8:56:00 AM
we are Using following vb line for create an object

Dim WebServiceManager As New DiamondXml.DiamondManagerSoapClient

After that we write the following line as your reply but there is a error
WebServiceManager.timeout = 60000

"timeout is not a member of   DiamondXml.DiamondManagerSoapClient"

so help us How to increase it? 

>> add a comment
3/31/2011 3:33:00 AM

Hi Denish
if you are using FW 4.0 or 3.5
the setting is in your app.config of Web.Config file


    <compilation debug="false"/>

    <httpRuntime executionTimeout="200000"/>


Dim WebServiceManager As New DiamondXml.DiamondManagerSoapClient

Dim tic As

tic = WebServiceManager.Login("user", "pass")



>> add a comment
ahaliav fox
3/31/2011 4:44:00 AM
How to use This class in ?
Any Dll File is Required or not??

DiamondManager webServiceManager = new DiamondManager();

>> add a comment
3/28/2014 9:37:00 AM
you have to add web reference or service reference to you project. only then you can use the DiamondManager  class

>> add a comment
3/30/2014 4:42:00 AM