Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
QuestionHow to use timer control in c# Pin
sumikoshy18-Aug-09 16:14
sumikoshy18-Aug-09 16:14 
AnswerRe: How to use timer control in c# Pin
Tr@v18-Aug-09 16:27
Tr@v18-Aug-09 16:27 
AnswerRe: How to use timer control in c# Pin
Xmen Real 18-Aug-09 16:42
professional Xmen Real 18-Aug-09 16:42 
QuestionHelp reg Syste.diagnostic.EventLog Pin
rashmimansur18-Aug-09 14:04
rashmimansur18-Aug-09 14:04 
QuestionI need a quick fix. I need a way to access the domain's username list from the active directory.... [modified] Pin
JollyMansArt18-Aug-09 11:29
JollyMansArt18-Aug-09 11:29 
AnswerRe: I need a quick fix. I need a way to access the domain's username list from the active directory.... Pin
JollyMansArt18-Aug-09 16:36
JollyMansArt18-Aug-09 16:36 
GeneralRe: I need a quick fix. I need a way to access the domain's username list from the active directory.... Pin
JollyMansArt19-Aug-09 3:02
JollyMansArt19-Aug-09 3:02 
QuestionVS 2005 PropertyGrid do not refresh on ToolStripControlHost inherited items Pin
Xmen Real 18-Aug-09 8:48
professional Xmen Real 18-Aug-09 8:48 
Questionfile sending Pin
Vivek Vijayan18-Aug-09 8:14
Vivek Vijayan18-Aug-09 8:14 
AnswerRe: file sending Pin
Xmen Real 18-Aug-09 8:57
professional Xmen Real 18-Aug-09 8:57 
AnswerRe: file sending Pin
Ian Shlasko18-Aug-09 9:00
Ian Shlasko18-Aug-09 9:00 
AnswerRe: file sending Pin
N a v a n e e t h18-Aug-09 15:39
N a v a n e e t h18-Aug-09 15:39 
AnswerRe: file sending Pin
Rajesh R Subramanian18-Aug-09 17:41
professionalRajesh R Subramanian18-Aug-09 17:41 
QuestionDataTable Find Connected Object Pin
I Believe In GOD18-Aug-09 7:21
I Believe In GOD18-Aug-09 7:21 
AnswerRe: DataTable Find Connected Object Pin
Moreno Airoldi18-Aug-09 7:47
Moreno Airoldi18-Aug-09 7:47 
QuestionInvalid Padding when decrypting Pin
musefan18-Aug-09 6:29
musefan18-Aug-09 6:29 
AnswerRe: Invalid Padding when decrypting Pin
DaveyM6918-Aug-09 7:08
professionalDaveyM6918-Aug-09 7:08 
GeneralRe: Invalid Padding when decrypting Pin
Hristo-Bojilov18-Aug-09 7:21
Hristo-Bojilov18-Aug-09 7:21 
GeneralRe: Invalid Padding when decrypting Pin
musefan18-Aug-09 7:23
musefan18-Aug-09 7:23 
AnswerRe: Invalid Padding when decrypting Pin
musefan19-Aug-09 1:29
musefan19-Aug-09 1:29 
QuestionHow to identify the active tab in IE? Pin
Jacobb Michael18-Aug-09 6:22
Jacobb Michael18-Aug-09 6:22 
Questionsort list Pin
nikhil123418-Aug-09 5:13
nikhil123418-Aug-09 5:13 
AnswerRe: sort list Pin
Hristo-Bojilov18-Aug-09 5:46
Hristo-Bojilov18-Aug-09 5:46 
AnswerRe: sort list Pin
Luc Pattyn18-Aug-09 13:19
sitebuilderLuc Pattyn18-Aug-09 13:19 
QuestionGetting Authentication Failure error message. Pin
V K 218-Aug-09 5:10
V K 218-Aug-09 5:10 
I am getting mscorlib:Authentication Failure error message when I open my application. The below piece of code executes while my application opens.

I am not understanding why this error is coming up.

private void InitializeRemoting(out int RemotingPortNumber)
{
// Establish server channel sink provider
BinaryServerFormatterSinkProvider svrSinkProvider = new BinaryServerFormatterSinkProvider();

svrSinkProvider.TypeFilterLevel = TypeFilterLevel.Full;

// Create and register tcp server channel to listen on a port.
m_serverChannel = new TcpServerChannel( "ITViewAppOperations",0,svrSinkProvider);

ChannelServices.RegisterChannel(m_serverChannel,true);

string PortNumberString = m_serverChannel.GetChannelUri().Split(':')[2];

RemotingPortNumber = Convert.ToInt32(PortNumberString);

// Register "BridgeFactory.rem" as singleton well know service types.
WellKnownServiceTypeEntry entry1 = new WellKnownServiceTypeEntry(typeof(IdeWMBridge).FullName,
typeof(IdeWMBridge).Assembly.FullName, // "AA.IDE.IdeWmBridge" "IdeWMBridge.rem",WellKnownObjectMode.Singleton);

RemotingConfiguration.RegisterWellKnownServiceType(entry1);

// Get remoting singleton bridge instance.
m_ideWmBridge = (AA.IDE.WMBridge.Common.IaaIdeWmBridge)Activator.GetObject(
typeof(AA.IDE.IdeWmBridge.IdeWMBridge),
"tcp://localhost:" + RemotingPortNumber + "/IdeWMBridge.rem");
SetLifetime(m_ideWmBridge, TimeSpan.FromDays(365 * 100));
m_ideWmBridge.IdeProxy = m_ideProxy;
}


private void SetLifetime(object obj, TimeSpan LeaseTime)
{
((ILease)((MarshalByRefObject)obj).GetLifetimeService()).Renew(LeaseTime);
}


Please let me know if anyone knows the solution.

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.