.net

Are there or will be any hardware specially designed for managed code?

One of my colleagues told me something like that over a year ago. I was wondering if there is something like this available now or will be in the future? I think it was gonna have a separate GC core, and some memory management thing but I am fuzzy about it. Any clues? ...

Parameterized testing tools with automatic code exploration

I've checked and played a bit with Microsoft Pex. It's a very handy tool/library even though it's not as straight forward to write parametrized unit tests with it. But when used correctly it can provide much better test code coverage than writing manual unit tests. Not to mention time spent writing those tests either. And it integrates n...

Windows Workflow Delay Activity Behavior

I feel my question is somewhat straight forward, but I've added some details of my problem in the "Background Info" section in case it is too vague. Question How does the WorkflowServiceHost determine that a persisted activity, that is Idle due to Delay, has reached the Delay timeout? Does it load it into memory and check every so oft...

Missing PDB file and referenced output

My .Net Application, A, has a reference to library B. Library B has a reference to Library C. When I rebuild A (in debug mode), its output directory contains me the B.DLL and B.PDB files, but only the C.DLL file. C.PDB is missing, or rather it is not being copied from its project's debug folder. In fact, looking at B's output directory,...

ASP.NET Membership advantages

What advantages does Membership provide in the case when you have to write custom implementation? Is there any sense to implement membership interfaces or it would be easier to make your own UsersService with just things you need? ...

Late binding in child AppDomain (.Net)

I am trying to develop a plugin architecture in .Net. The application will be a .Net application. There will be directories which holds the plug-ins. Each directory will represent a plugin. Each plugin directory will also contain all the dependency dlls as well. The plugins need to be stored in separate AppDomain as the plugins may ...

Implementing new NHibernate type for POINT postgresql data type (or any COLUMN of a non-primitive analogous nhibernate type)

Hi everyone. I have a problem with NHibernate and the postgresql POINT data type (although I believe this is a common problem for all of those trying to map a SQL TYPE that is not covered by NHibernate SqlTypes). My Data.Point class has two public floats: xcoordinate and ycoordinate. My first attempt was trying to implement the IUserTy...

If using LINQ For Queries, Do We Need to Unit-Test Sorting?

Hi Guys, I have the following two methods on an interface for my service layer: ICollection<T> FindAll<T>(Expression<Func<T, bool>> predicate) where T : Post; ICollection<T> FindAll<T,TKey>(Expression<Func<T, bool>> predicate, OrderingOptions<T,TKey> orderingOptions) where T : Post; They are extremely similar. The first one (basica...

debugging VS 2005 prompts an "Operation not supported"

Hi! I've been debbugging VS 2005 and set the 'Start external program' to C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe But after hitting F5 I got this error: Error while trying to run project: Unable to start program 'C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe Operation not supported....

Windows 7 Jump List

I think that is what this is called: http://img163.imageshack.us/img163/9234/13016288.png I want to be able to add stuff like that to my program. Such as an open button and other buttons that would execute a method within the app. This is in C#, by the way. I DID look into the Windows 7 API Code Pack, but it.. doesn't work the way I wa...

c#: Enqueued event for Queue<T>

Hello, I am new to event and delegates. Could you point me to the right direction for implementing Enqueued event for an object of type Queue<T>? I am using C# and .Net 4.0 Thanks ...

any p2p libraries in .net

looking for a p2p library for peer to peer and peer to peer(S) so far I've come across Brunet http://boykin.acis.ufl.edu/wiki/index.php/Brunet // does not seem to have #2 above WCF P2P http://msdn.microsoft.com/en-us/library/cc297274.aspx // does not seem to have NAT / UPnP OpenServer http://openserve.codeplex.com/ // not truly ...

Why wont my application read my MyApplication.dll.config file?

I'm trying to use application settings with a C#.NET project I am working on. But I can't seem to get it to return anything other then the default values. Through the project properties I've added a single setting, DBConnectionString, and set its value to a connection string I want to use. Its scope is set to "application". Doing this c...

c#: lowering priority of Task.Factory.StartNew thread

Hello, If you are reading this (hoping you will be able to help me!), you most probably know that a code like below will start a new thread to do the job. Is there any way I can control the priority of that thread? Task.Factory.StartNew(() => { // everything here will be executed in a new thread. // I want to set the priority o...

Running .NET 3.5 built Mixed mode assemblies in .NET 4 using app config requires Framework 3.5 as well

This is similar to already created thread here: http://stackoverflow.com/questions/3179028/mixed-mode-assembly-in-net-4 Using the app config, I was able to force the assemblies to run on .NET 4. On an XP Machine, I installed just the .NET 4 (without .NET 3.5 or 2.0) and tried to run the built application. It fails to load the mixed mode...

management role and user in a application

hello i wana work on a windows forms application that several users can work with different roles, for example 3 roles ,that "A role" only to access some parts of the program and cannot see and access it and "B role" can acess to entire of application, but some parts are just right to access and view, "C role" full access to all parts ...

i want to make instant connection with web application (rails) with desktop application that build with C#.net

i have a web that provide a form to send SMS deployed on other server and a desktop application that is on my local machine serving as gateway. i wants when some user fill the form and submit it, then this sms delivered to desktop app to serve the request instantly. currently my local machine is interacting with the server after 30s then...

WPF datagrid cut a column (MVVM)

In WPF datagrid, is is possible to allow the user to cut or delete a column? If yes, is there any built in support for it? If no, how do I do it? A sample illustration will be very nice. ...

WebService authentication problem, in Android

Hi, I have an web service on developed .net The Url is : www.yemeksepeti.com/YemeksepetiCatalogWebService/CatalogExportMobile.asmx I want to use the service methods is : Mobile_GetCities SOAP 1.1 The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values. P...

How to implement two-phase commit in a .Net REST WCF service?

I'm building RESTful web service, and I want to allow it to participate in distributed transactions. An example scenario would be that my REST service might save a file on a server somewhere, and at the same time the caller marks this file as saved in its database. However, if either the file server is full, or if his database call f...