Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: Debugging question. Pin
Guffa25-Apr-06 8:18
Guffa25-Apr-06 8:18 
QuestionMultithreading issue Pin
sreevid25-Apr-06 8:00
sreevid25-Apr-06 8:00 
AnswerRe: Multithreading issue Pin
Judah Gabriel Himango25-Apr-06 11:00
sponsorJudah Gabriel Himango25-Apr-06 11:00 
QuestionInter App Domain Question Pin
Joel Holdsworth25-Apr-06 7:13
Joel Holdsworth25-Apr-06 7:13 
AnswerRe: Inter App Domain Question Pin
Judah Gabriel Himango25-Apr-06 11:08
sponsorJudah Gabriel Himango25-Apr-06 11:08 
GeneralRe: Inter App Domain Question Pin
Joel Holdsworth25-Apr-06 22:25
Joel Holdsworth25-Apr-06 22:25 
AnswerRe: Inter App Domain Question Pin
Nicholas Butler25-Apr-06 21:20
sitebuilderNicholas Butler25-Apr-06 21:20 
QuestionRemoting timeout Issue Pin
kotteeswaran25-Apr-06 7:11
kotteeswaran25-Apr-06 7:11 
Hi All,

I have a requirement, where my web application before redirecting to a particular page, need to validate a business rule. the business rule logic is running in a different server other than the webserver but in same domain.

The business logic runs as a Remoting service and exposes a public method to validate the logic. Code looks like this.

----------------------

namespace MyNamespace

Class Class1

string xmlPath = appReader.GetValue("RemoteConfigPath", typeof(System.String)).ToString();

//configuring the Remote server.

RemotingConfiguration.Configure(xmlPath, false);

private void CalculateAverage()

public Int Average() -- method exposed to client

------

in the client :

string remoteUrl = @"tcp://" + ServerName of the remoteservice+ ":" + port + "/MyNamespace.Class1";

remoteObj= (Class1)Activator.GetObject(

typeof(Class1),remoteUrl);

int i = remoteObj.Average(); ---------if the service is unavailable, this line takes 15 or more seconds to timeout

Ideally i want to timeout if the call is un successful for 3 seconds.

How can i achieve it. ??

I' m not registering any port or tcp channel in client. the config file for remoting configuration looks like this :

<configuration>

<system.runtime.remoting>

<application name="MyRemoteService">

<service>

<wellknown type="MyNamespace,Class1"

objectUri="MyNamespace,Class1" mode="Singleton" />

</service>

<channels>

<channel ref="tcp" port="8085">

<serverProviders>

<formatter ref="binary" />

</serverProviders>

</channel>

</channels>

</application>

</system.runtime.remoting>

</configuration>

it works fine if the service is available Smile | :) , problem when service is not available.. needs to timeout..

QuestionCustom controls localization Pin
Dario Solera25-Apr-06 5:27
Dario Solera25-Apr-06 5:27 
AnswerRe: Custom controls localization Pin
Ed.Poore25-Apr-06 11:30
Ed.Poore25-Apr-06 11:30 
GeneralRe: Custom controls localization Pin
Dario Solera25-Apr-06 20:42
Dario Solera25-Apr-06 20:42 
QuestionPlug-in with C# Pin
hung_ngole25-Apr-06 5:20
hung_ngole25-Apr-06 5:20 
QuestionWhat is difference Between Function Overloading and delegates in C# Pin
Ut Rahul25-Apr-06 5:03
Ut Rahul25-Apr-06 5:03 
AnswerRe: What is difference Between Function Overloading and delegates in C# Pin
Guffa25-Apr-06 5:10
Guffa25-Apr-06 5:10 
AnswerRe: What is difference Between Function Overloading and delegates in C# Pin
Tom Larsen25-Apr-06 5:22
Tom Larsen25-Apr-06 5:22 
GeneralRe: What is difference Between Function Overloading and delegates in C# Pin
Guffa25-Apr-06 7:15
Guffa25-Apr-06 7:15 
QuestionConvertion of String to HTML Pin
VenkataRamana.Gali25-Apr-06 4:48
VenkataRamana.Gali25-Apr-06 4:48 
AnswerRe: Convertion of String to HTML Pin
leppie25-Apr-06 6:48
leppie25-Apr-06 6:48 
AnswerRe: Convertion of String to HTML Pin
malharone25-Apr-06 6:54
malharone25-Apr-06 6:54 
QuestionRead date from Excel worksheet Pin
shultas25-Apr-06 4:31
shultas25-Apr-06 4:31 
AnswerRe: Read date from Excel worksheet Pin
Drew McGhie25-Apr-06 7:58
Drew McGhie25-Apr-06 7:58 
AnswerRe: Read date from Excel worksheet Pin
Ed.Poore25-Apr-06 11:32
Ed.Poore25-Apr-06 11:32 
QuestionHow to connect to a BCM via TAPI Pin
Wayne Eastaugh25-Apr-06 4:30
Wayne Eastaugh25-Apr-06 4:30 
AnswerRe: How to connect to a BCM via TAPI Pin
Michael P Butler25-Apr-06 4:47
Michael P Butler25-Apr-06 4:47 
Questiongetting handle to applications icon Pin
g00fyman25-Apr-06 4:01
g00fyman25-Apr-06 4:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.