I am using this DebugActiveProcess to debug an already running process.
http://msdn.microsoft.com/en-us/library/ms233510.aspx
Right after calling the method, the debugee is suspended. How can I resume it ?
I tried ICorDebugProcess.Continue, no effect.
I also tried the managed debugger sample (mdbg). Same behavior: "at" suspends the pr...
When running Process.Start in a .NET application we wait until the process has started or failed rather than continuing in the calling program/method - is this correct?
...
In Visual Studio, you can require that an assembly reference match a specific version of the assembly. Is it possible (maybe by directly editing the csproj or vbproj file in a text editor) to reference a range of versions.
My specific example is I want to reference version 2.5.x of nUnit in my test projects at work. People run differen...
I have a simple unit test which tests that a validation function picks up a specific validation issue. The validation item returns a simple object with Item & Message properties. I've written a unit test for this function but this always fails even though I know the function works as expected.
<TestMethod()> Public Sub ContractNote_Vali...
This seems odd to me. I'm using FolderBrowserDialog to select a folder which will be the destination of a bunch of files. Whenever create and select a folder within the dialog, the resulting folder always seems to be read-only when I view the folder in Explorer afterwards.
I've checked the documentation for the FolderBrowserDialog.Sh...
I have a service that is hosted in WAS. I am trying to inject this service with dependencies, but have been having trouble finding where to do this. In a WCF service hosted in IIS you can use the application_onstart event to instantiate the castle container, but this isn't available in my scenario. So, I am trying to create a custom host...
I have been using XML comments to document my source code in VB.Net (and C# when I get to). I seem to remember someone telling me a long time ago that there was a way to automatically export the XML comments into a text document or other format for easy reference outside of Visual Studio. Is there? What is it, or are they?
Thank you in ...
I've installed ELMAH 1.1 .Net 3.5 x64 in my ASP.NET project and now I'm getting this error (whenever I try to see any page):
Could not load file or assembly
'System.Data.SQLite, Version=1.0.61.0,
Culture=neutral,
PublicKeyToken=db937bc2d44ff139' or
one of its dependencies. An attempt
was made to load a program with an
inc...
We'd like to generate xml using xstream implemented with java. We'd then like to consume that xml in a .net application and have it deserialized into c# classes.
has anyone had success in doing this? is there a framework available on the C# side that will make it easier and more robust than something we'd have to roll-up?
...
I have this delegate in C#.
public delegate string ACSharpDelegate(string message);
How would I go about creating a Managed C++ .dll that will accept this delegate as a parameter so the C++ .dll can call it?
...
I'm trying to create a function that takes any table from my ADO.NET Data Model in Silverlight. I can't figure out what the base class is for the Entity Objects that it creates for me. Each Entity in the model is of this type:
global::System.Data.Objects.DataClasses.EntityObject
but that type wasn't working in SilverLight.
I'd li...
I'm wondering if anyone knows if xVal will work as expected if I define my system.componentmodel.dataannotations attributes on interfaces that are implemented by my model classes, instead of directly on the concrete model classes.
public interface IFoo
{
[Required] [StringLength(30)]
string Name { get; set; }
}
and then in my ...
Let's say I want to move a part of an array right by 1. I can either use Array.Copy or just make a loop copying elements one by one:
private static void BuiltInCopy<T>(T[] arg, int start) {
int length = arg.Length - start - 1;
Array.Copy(arg, start, arg, start + 1, length);
}
private static void ElementByElement<T>(T[] arg, int...
Any good way to preserve ASP.NET Application state across restarts?
I want to be able to set some values restart the app and have them still be there.
I want to primarily do this for small "throw-away" test web apps that don't even need a database.
Is there some way to do it with static members and serialization? web cache?
UPDATE:
Ap...
Ii have a web method that looks like this:
[WebMethod]
public int ImportData(System.Collections.Generic.List<Record> importRecords)
{
int count = 0;
if (importRecords != null && importRecords.Count > 0)
{
DataLayer datalayer = new DataLayer();
foreach (Record rec in importRecords)
{
datala...
SO users,
I have 3 threads running simultaneously at any given time, trouble is after thread 1 tries to connect to a server by passing a username to it thread 2 is being invoked and by the time its thread 1's turn the server closes its connection on the code.
Is there anywhere I can implement sending username and password simultaneousl...
For the given text:
This text A,is separated,by a comma A,unpreceded by the uppercase A,letter A,ok?,
Expected matches:
This text A,is separated,
and
by a comma A,unpreceded by the uppercase A,letter A,ok?,
Please write a regex that would work like described. Preferably one that will work with .NET
...
I have a TableAdapter filling a DataSet, and for some reason every select query populates my timestamp column with the value 1/1/2000 for every selected row.
I first verified that original values are intact on the DB side; for the most part, they are, although it seems a few rows lost their original timestamp because of update queries ...
I need to write a class for different "configuration objects" that hold something like "if xyz = 5 then .." to transfer some Rules and Actions to those Rules.
Can anybody please help me with a clever design of a class like that?
I'm using C#.NET 3.5
...
I'm working on a multi-threaded C# Windows application that makes frequent calls into a native dll. These are blocking calls which can sometimes last quite a long time.
In certain situations, I'd like to cancel these blocking calls on some worker threads from the main thread The native API I'm using provides a function for this purpo...