In java it is possible to get a snapshot of the stacktraces of all running threads.
This is done with java.lang.Thread.getAllStackTraces() (it returns Map<Thread,StackTraceElement[]>).
How can the same thing be done with .net?
...
I would like to extend ContextMenu from System.Windows.Forms namespace to have some event indicating that the menu has been closed e.g. user has selected some item or just clicked somewhere and the system has closed the menu. I know ContextMenuStrip has such events but I don't want to use it.
I though ContextMenu have WndProc method lik...
One of the boasts I've heard of unit testing is that you can run 2000+ tests in a minute or so.. because the only limit is cpu speed and ram. I, however like to include external dependency assertions/testing in my test projects (such as: does the user account the application logs on with have insert/update/delete permissions on the appr...
I am looking into using a side bar menu option. This will only be displayed on some aspx pages. Can I insert in the site master, with a toggle condition, or do I go the tedious route of adding menu.ascx on each aspx page? I know how to add individually, but can I go the simpler Site.Master route?
...
I am using asp.net and the .net framework 2.0. I may be able to upgrade the servers to 3.5 if the solution is compelling enough.
Here is the problem.
I have two pieces of xml.
I'll refer to piece number 1 as the template and piece number 2 as the actual.
Here's a basic example:
template:
<questions>
<question1 msg="1234">
<answe...
I watched the DNR TV episode with Glenn Block and it looks like MEF would be useful for my company. I am trying to find out more information on it's strengths and weaknesses and some sample projects that use it. Are there any good blogs/tutorials on using MEF?
Note: I use C#, so if the examples are in C#, that would be awesome.
...
I have PNG and need to know if it has an alpha (or if the alpha is completely white)?
How can I accomplish this in vb.net code.
...
I am thinking about a plugin model for my client-server application. A plugin will have a UI part(for configuration, runs on client) and an execution part(does the work, runs on server). For simplicity, I'm trying to figure out if I can locate my plugin DLL on the server side, but still show the UI on the client side.
I thought about ...
----> I have datatable which is passing to another page in session variable.
----> Now on another page i take the session variable into datatable.
datatable ds_table = new datatable();
ds_table = (datatable)session["table_value"];
----> so problem, is that , when i filtering some rows from ds_table . that taking effect in the s...
I have an xml file that is like this:
<xml>I need this text<notthistext>blahblah<notthistext></xml>
I get the text by doing something like this:
var mycollection = from myNode in myDoc.descendents("xml") select new { test = Convert.ToString(myNode.Nodes().First())}
but the problem is that there are carrige returns and spaces that d...
I need to create a function to return the next processing date for a given item. An item has a number that represents the month within a quarter that it is processed, as well as a number that represents the week within that month when it is processed. So, given a particular item's create date, I need to get the next processing date for...
I have implemented a queuing mechanism including UI for running specific types of workflows (WF 3.5), where I wanted to include a possibility for a user to cancel / terminate the workflow. The termination doesn't have to be synchronous, it would be enough to show that the cancellation is in progress and let him refresh the state later.
...
Why is ReadOnlyObservableCollection.CollectionChanged protected and not public (as the corresponding ObservableCollection.CollectionChanged is)?
What is the use of a collection implementing INotifyCollectionChanged if I can't access the CollectionChanged event?
...
I have read in MSDN that is require to Unsubscribing every events an object has to be able to dispose it from memory. I always used -= to remove all references to event inside my object (like MSDN show).
Now, I have to maintain code and it has some memory leak on it. I see that the previous developer simply set the object that has all e...
Hi,
I'm using Quartz.NET and am facing the following task:
Schedule a job to be fired every 10 minutes, with a reminder 1 minute before each occurrence.
Do you know if it's possible to design a trigger to do that?
I'd like to avoid if possible to handle 2 triggers (one for the reminders and one shifted for the jobs).
I'll use the s...
I recently bought Ayende's book Building DSLs in Boo (buy it, read it, it's awesome) but I'm coming up against an implementation problem and I want to see what the generated code looks like. I would normally use reflector to look at the code but in this case the assemblies are dynamic and only in memory. Is there a way to save dynamic ...
Anybody know how to start trying to figure this error out? This is the only error I get when debugging the app. I get no errors during the compile phase. This is an ASP.NET 3.5 App. Breaking on my local machine and a server.
Line 149: public new ASP.masterpage_master Master {
Line 150: get {
Line 151: r...
I have a situation where I need to format an integer differently depending on whether or not it's zero. Using custom numeric format strings, this can be achieved with the semicolon as a separator. Consider the following:
// this works fine but the output is decimal
string format = "{0:0000;-0000;''}";
Console.WriteLine(format, 10); // ...
Hi guys,
during an update command I was received the following error:
Operation is not valid due to the current state of the object
I had tried to remove one column from the update command and it works fine.
This column is a FK that is similar to the other FK that works fine.
Any idea?
tnx
this is the code that execute the update:
...
I have two ASP.NET Web projects (ProjectA and ProjectB). When class in ProjectA is instantiating a class of ProjectB which uses a resource file Blah.resx, I get this error:
An exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll but was not handled in user code.
Could not find any res...