.net

Log4Net multiple SMTP appenders?

I have configured a SMTP appender to send an email whenever there's an error. <appender name="EmailAppender"> <bufferSize value="50" /> <lossy value="false" /> <threshold value="ALL" /> <evaluator type="log4net.Core.LevelEvaluator,log4net"> <threshold value="ERROR" /> </evaluator> </appender> I need to also get an email...

Clickonce: setup.exe opens .application file in browser. Normal?

Hey :) I've just deployed our first ClickOnce application. Unfortunately it requires far more than one click to install our application. The user downloads the setup.exe and executs it The default browser pops up (e.g. Firefox) and the user has to download an ourapp.application file Afterwards he can start this file and after some sec...

How do you chain together two Asynchronous Operations with the Reactive Framework?

All I really want to do is complete two async operations, one right after the other. E.g. Download website X. Once that's completed, download website Y. ...

P/Invoke and Mono: EntryPointNotFoundException

I'm trying to access the Wine implementation of some user32 functions on Kubuntu Linux. I have the Wine 1.1.31 package installed. When try running this simple test program in MonoDevelop, I get a System.EntryPointNotFoundException. using System; using System.Runtime.InteropServices; using System.Windows.Forms; namespace PinvokeTesting...

Connect to a web service which is behind an HTTPS proxy.

What is the .NET code to connect through the internet to a web service which is behind an HTTPS proxy. I am given: https:// - the url of the proxy https:// - the url of the webservice from the WSDL. two certificates - theirs and mine. ...

ArgumentNullException during remoting application

I've got a .NET application that uses Remoting between an Administration Console and a Server application. During a particularly long running remoting call, I will get an error message, displayed below. I have added the Sponsor to the client to prevent the Remoting connection from being closed, and I have verified the Renew() method is...

.NET developer starting a social networking site, suggestions?

I am a relatively new programmer; a bachelors in CS, about 2 years out of college, working mostly with .NET in C#. I am fairly fluent with SQL interaction/scripting, and have done a little work with ASP.NET (mostly maintaining an existing site). I'm interested in starting a website in my free time, the closest thing I can describe to i...

Proper naming convention for a .NET Delegate type?

By convention classes are often named like nouns, methods like verbs and interfaces like adjectives. What is the common naming convention for a delegate? Or what's a good way to differentiate its name when delegates are listed among types and other things? My immediate assumption is to name a delegate more like an adjective because a ...

Use interface inheritance or just implement all the interfaces directly?

I don't necessarily see a grandiose benefit of interfaces inheriting interfaces. Consider the following three interfaces, the third inheriting the other two interface IOne { } interface ITwo { } // interface inheritance interface IAll : IOne, ITwo { } Is it best to class C : IOne, ITwo { ... } or class C : IAll { ... } If th...

Looking for a freeware tree/grid hybrid winform control for .NET

Has anyone seen one? ...

Does .NET have built-in functions mapping between character entities and their unicode values?

& Eacute ; \u00C9 & egrave ; \u00E8 & eacute ; \u00E9 & apos ; \u0027 something like: f("&apos;") = '\u0027' where f :: string -> char g('\u0027') = "&apos;" where g :: char -> string Or is there a third-party library with a BSD or MIT style permissive free license with something of this sort? Otherwise I'll have to create my ...

Did you know System.Collections.Generic.List is implemented with an array?

I had a performance problem today that showed up after some profiling. Calls to List<>.RemoveAt(0) were taking a long time. I'd assumed System.Collections.Generic.List would be implemented with a list data structure, but actually its implemented as an array. Does anyone else find that surprising? ...

PerformClick() Event Of The Button.

I have a button on the window form and and one method I am calling button's PerformClick() event. Now if I make this button visible false.Then that PerformClick() event is not performed. Is it ok? And if yes then I want to make the button invisible on the form what should I do ? I already make the background color of the button same as...

NHibernate Insert Ignore

Hello, I need use Insert Ignore for my table, which have Unique index on several fields. How can i do it? Thank you ...

AssemblyInfo.cs: Is there any point in specifying a Guid when using ComVisible(false)?

When you create a new C# project in Visual Studio, the generated AssemblyInfo.cs file includes an attribute specifying an assembly GUID. The comment above the attribute states that it is used "if this project is exposed to COM". None of my assemblies contain types which need to be visible to COM, so I have marked my assembly with [assem...

How to connect to Mailman mailing list using .Net

Hai Everyone, I have to develop a .Net application in which i have to add or remove a user from Mailman mailing list.My Question is whether there is any .Net connector or Dll to connect to mailman mailing list using .Net. Thanks & Regards Chaithu ...

WPF threading help needed .

Hi all, Hopefully you can help. Scenario WPF Application calling a wcf Service to buy products etc... A customer can select 20 products in the UI and press buy,now for each product that is processed I need to report a status EG("OK","Out of stock","Busy" etc...) I have a txtReportProgress that is bind to a BuyCommand. Problem Even t...

should I switch from .Net to Java ?

During my 4.5 years of experience in software development I have worked on .Net for 2.5 yrs then next 2 yrs on XUL/Javascript(Thunderbird addons development)....and my current employer needs me to work on JSP/Servlets(its a legacy application around 10 yrs old). I would like to know if it would be a good idea to shift to Java or it wou...

Hidden features of Mono?

Mono is a software platform designed to allow developers to easily create cross platform applications. What are some of the hidden features of Mono? ...

ASP.Net Forms authentication issue

Hello everyone, I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I have deployed a collaboration portal template based SharePoint site collection. I am developing using ASP.Net web application using VSTS 2008 + C# + .Net 3.5 + ASP.Net + SharePoint Server 2007 SDK. I am devloping a custom Forms authentica...