Click here to Skip to main content
15,894,540 members
Home / Discussions / C#
   

C#

 
AnswerRe: File Copy Problem (C# Newb) Pin
Guffa25-Apr-06 13:23
Guffa25-Apr-06 13:23 
GeneralRe: File Copy Problem (C# Newb) Pin
teejayem25-Apr-06 13:31
teejayem25-Apr-06 13:31 
Questionsum up values in DataTable Pin
kani9825-Apr-06 11:34
kani9825-Apr-06 11:34 
AnswerRe: sum up values in DataTable Pin
Robert Rohde25-Apr-06 19:52
Robert Rohde25-Apr-06 19:52 
GeneralRe: sum up values in DataTable Pin
kani9826-Apr-06 5:13
kani9826-Apr-06 5:13 
QuestionChange textbox to listbox at runtime Pin
oracleConvert25-Apr-06 10:03
oracleConvert25-Apr-06 10:03 
AnswerRe: Change textbox to listbox at runtime Pin
Christian Graus25-Apr-06 10:08
protectorChristian Graus25-Apr-06 10:08 
GeneralRe: Change textbox to listbox at runtime Pin
oracleConvert27-Apr-06 7:03
oracleConvert27-Apr-06 7:03 
GeneralRe: Change textbox to listbox at runtime Pin
Christian Graus27-Apr-06 10:53
protectorChristian Graus27-Apr-06 10:53 
QuestionWindows authentication Domainname\Userid Pin
krishna nimmalapudi25-Apr-06 9:56
krishna nimmalapudi25-Apr-06 9:56 
AnswerRe: Windows authentication Domainname\Userid Pin
tapsbin25-Apr-06 11:28
tapsbin25-Apr-06 11:28 
GeneralRe: Windows authentication Domainname\Userid Pin
krishna nimmalapudi25-Apr-06 17:01
krishna nimmalapudi25-Apr-06 17:01 
QuestionList groups of AD Pin
yuki1025-Apr-06 8:25
yuki1025-Apr-06 8:25 
AnswerRe: List groups of AD Pin
Christian Graus25-Apr-06 10:05
protectorChristian Graus25-Apr-06 10:05 
QuestionDebugging question. Pin
goldoche25-Apr-06 8:11
goldoche25-Apr-06 8:11 
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 

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.