Hi all, I have been wrestling with this for a few days and after tons of searching I can't find the path I should be on.
What I want to do is set up an MSBUILD project that will build our entire .NET application (constst of 8 solutions, and maybe 250 projects split up between them) with a number of settings overridden from the individua...
Is there a way to globally handle exceptions for a Windows Service? Something similar to the following in Windows Forms applications:
Application.ThreadException += new ThreadExceptionEventHandler(new ThreadExceptionHandler().ApplicationThreadException);
...
I know this is a very broadly scoped question, but what do I need to know to begin creating a branded, custom IDE for course-ware using the VS Shell in isolated mode. Very little useful info on this beast is available through searches, so I'm hoping for some tips and references from gurus that have been through the apparently difficult ...
C# doesn't allow structs to derive from classes, but all ValueTypes derive from Object. Where is this distinction made?
How does the CLR handle this?
...
Why is the following code not working?
if(EventLog.Exists("Foo"))
{
EventLog.Delete("Foo");
}
if(EventLog.Exists("Foo") == false)
{
EventLog.CreateEventSource("Foo", "Foo");
EventLog.GetEventLogs().First(x => x.Log == "Foo").ModifyOverflowPolicy(OverflowAction.OverwriteAsNeeded, 0);
EventLog.GetEventLogs().First(x ...
I am merging several .NET assemblies using ILMerge including some 3rd party assemblies. Since doing so, I've experienced several errors that all boil down to the fact that type definitions are tied to the assembly they are defined in.
A simple example is the log4net config section definition in my App.config. It uses type="log4net.Con...
I have been given an app written by someone else and the error I get when I try to just launch the thing and the first look at it is:
"There is no source code available for the current location."
I could care less about the source code to ASP.NET MVC. How do I tell my project to show me the location where it is breaking in "my" co...
I know it's possible to run a .NET application using a portable Mono executable without having .NET framework installed but is it possible to load and use an assembly is this situation?
thanks in advance.
...
I am using Memcache in my ASP.NET application. I have 3 memcache servers that it connects to. If all of them are down, there is a significant delay in loading the pages. When all servers are down, I would want to not use memcache.
When I was stepping through the code, I noticed that when the servers are down, memcache code does not thro...
I am trying to generate a PDF from a web page (or series of web pages). The pages contain, not only HTML/Javascript, but also Flash images (graphs/charts/etc). I have been searching diligently for a library (.NET), but I have still to come up with something that works. (Note: I did find Winnovative's solution, but that has a different...
How would you check the parameters on a function that accepts a Dictionary?
IDictionary<string, string> someDictionary = new Dictionary<string, string> {
{"Key1", "Value1"},
{"Key2", "Value2"}
};
Expect.Call(delegate {someService.GetCodes(someDictionary);}).Constraints(...);
Basically, I want to verify that the parameter for GetC...
Greetings, everyone. I consider myself to be an intermediate developer, but, to be candid, probably closer to novice than expert. In any case, I have more experience with C# and the .NET platform, but my current job has me working almost exclusively with Java. This in itself is sort of a problem, but I'm dealing with it fine and I'm not...
Hi, so I'm serializing an object that contains a List<Object> property, and it serializes it like this:
<Explorer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>Explorer1</Name>
<Items>
<anyType xsi:type="FolderObject">
<Name>Folder1</Name>
<Items>
...
I have written a command manager that uses reflection to make calls to various methods and it works wonderfully except that when an exception happens in one of the handlers the break into debugging happens in the command manager and not at the point the exception was originally thrown. Is there a way to get it to break into the exception...
How feasible is it(and some guidance) to build a WPF(Silverlight) app in such a way that it can be flipped back and forth from Web to Desktop?
Maybe some context is in order.
I am a lone developer at a non-profit. I only develop in house apps that have very long life cycles with constant modifications and changes to business rules...
I gave a button an attribute called notetype.
<asp:ImageButton ID="bttnSave" notetype="none" runat="server" ImageUrl="~/images/bttnSave.gif" onclick="bttnSave_Click" />
I have a function from a different button's click that sets that variable to some type.
function addnotes(Type,IncId,Acc,Wit,Claim,Inj,Prop,Media) {
var bttnopen...
I have 2 separate List and I need to compare the two and get everything but the intersection of the two lists. How can I do this (C#)?
...
Hi all,
I am working on an application suite comprising of multiple Automation servers written using MFC and this is legacy code. These apps inter communicate via COM interfaces and other events. Most of these apps provide multiple form views with various input controls to capture information. I was wondering what would be the best way ...
I'm working with an HttpListener. I can set the Authentication mode to basic using: listener.AuthenticationScheme = AuthenticationSchemes.Basic;
This works in IE, but Google Chrome doesn't seem to like empty realms. So the header should contain something like: WWW-Authenticate: Basic realm="The Byte that Overflew the Stack"
However, ...
What would be the best way to find dates that dont have events in a given time interval given that different events can overlap, span multiple days, start before the interval, and end after the interval.
ie:
event start end
e1 01/01/2009 02/01/2009
e2 01/15/2009 01/31/2009
e3 08/15/2008 01/16/2009
e4 ...