Click here to Skip to main content
15,901,368 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: WinXP Home Can't Use Subfolder as Source for Picture Pin
Henry Minute26-Aug-09 5:19
Henry Minute26-Aug-09 5:19 
GeneralRe: WinXP Home Can't Use Subfolder as Source for Picture Pin
Hypermommy26-Aug-09 6:09
Hypermommy26-Aug-09 6:09 
QuestionInstall software microphone Pin
TripShock24-Aug-09 2:11
TripShock24-Aug-09 2:11 
QuestionWhy does backgroundworker complete event is fired in other thread, instead of the one started it? [modified] Pin
Carl00723-Aug-09 22:53
Carl00723-Aug-09 22:53 
AnswerRe: Why does backgroundworker complete event is fired in other thread, instead of the one started it? Pin
Alan N24-Aug-09 1:17
Alan N24-Aug-09 1:17 
AnswerRe: Why does backgroundworker complete event is fired in other thread, instead of the one started it? Pin
Luc Pattyn24-Aug-09 1:46
sitebuilderLuc Pattyn24-Aug-09 1:46 
AnswerRe: Why does backgroundworker complete event is fired in other thread, instead of the one started it? Pin
Luc Pattyn26-Aug-09 0:05
sitebuilderLuc Pattyn26-Aug-09 0:05 
QuestionGetting mscorlib.Authentication Failure error Pin
V K 223-Aug-09 21:13
V K 223-Aug-09 21:13 
Hi,
I am getting mscorlib:Authentication Failure error while trying to invoke my applicaiton. My code is below


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);
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(IdeWMakerBridge).FullName,
typeof(IdeWMakerBridge).Assembly.FullName, // "Arch.IDE.IdeWmBridge"
"IdeWMakerBridge.rem",WellKnownObjectMode.Singleton);
RemotingConfiguration.RegisterWellKnownServiceType(entry1);

// Get remoting singleton bridge instance.
m_ideWmBridge = Arch.IDE.WMakerBridge.Common.IaaIdeWmBridge)Activator.GetObject(typeof(Arch.IDE.IdeWmBridge.IdeWMakerBridge),
"tcp://localhost:" + RemotingPortNumber + "/IdeWMakerBridge.rem");
SetLifetime(m_ideWmBridge, TimeSpan.FromDays(365*100));
m_ideWmBridge.IdeProxy = m_ideProxy;
m_ideWmBridge.Name = "TestNameABC: " + m_ideProxy.GetType().ToString();
}


I am getting exception at SetLifetime function.
private void SetLifetime(object obj, TimeSpan LeaseTime)
{
((ILease)((MarshalByRefObject)obj).GetLifetimeService()).Renew(LeaseTime);
}

Can I know why this exception is happening and what could be the fix for this.
QuestionVB.NET PropertyGrid Categories Pin
NFranks23-Aug-09 15:06
NFranks23-Aug-09 15:06 
AnswerRe: VB.NET PropertyGrid Categories Pin
0x3c023-Aug-09 21:00
0x3c023-Aug-09 21:00 
GeneralRe: VB.NET PropertyGrid Categories Pin
NFranks24-Aug-09 4:04
NFranks24-Aug-09 4:04 
General[SOLVED] VB.NET PropertyGrid Categories Pin
NFranks24-Aug-09 5:25
NFranks24-Aug-09 5:25 
QuestionTimeout Error While Taking Database Back-up using Code Pin
VikashGohil21-Aug-09 19:44
VikashGohil21-Aug-09 19:44 
QuestionHow to detect when an application is about to exit Pin
CodeBerserker21-Aug-09 15:30
CodeBerserker21-Aug-09 15:30 
AnswerRe: How to detect when an application is about to exit [modified] Pin
Luc Pattyn21-Aug-09 16:17
sitebuilderLuc Pattyn21-Aug-09 16:17 
AnswerRe: How to detect when an application is about to exit Pin
VikashGohil21-Aug-09 22:05
VikashGohil21-Aug-09 22:05 
AnswerRe: How to detect when an application is about to exit Pin
Jack Vanderhorst22-Aug-09 12:02
Jack Vanderhorst22-Aug-09 12:02 
AnswerRe: How to detect when an application is about to exit Pin
qmartens22-Aug-09 19:01
qmartens22-Aug-09 19:01 
GeneralRe: How to detect when an application is about to exit Pin
Luc Pattyn22-Aug-09 22:28
sitebuilderLuc Pattyn22-Aug-09 22:28 
QuestionAllowPartiallyTrustedCallers not working on Shared Assembly Pin
Tristan Rhodes21-Aug-09 1:43
Tristan Rhodes21-Aug-09 1:43 
AnswerRe: AllowPartiallyTrustedCallers not working on Shared Assembly Pin
Dave Kreskowiak21-Aug-09 5:15
mveDave Kreskowiak21-Aug-09 5:15 
GeneralRe: AllowPartiallyTrustedCallers not working on Shared Assembly Pin
Tristan Rhodes23-Aug-09 22:56
Tristan Rhodes23-Aug-09 22:56 
RantThrow it like you mean it... Pin
Adriaan Davel21-Aug-09 1:32
Adriaan Davel21-Aug-09 1:32 
GeneralRe: Throw it like you mean it... Pin
Dave Kreskowiak21-Aug-09 2:19
mveDave Kreskowiak21-Aug-09 2:19 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel21-Aug-09 2:38
Adriaan Davel21-Aug-09 2:38 

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.