.net

How can a Windows service be installed with visual basic.net express edition?

EDIT: I'm starting a bounty on this question. For the moment, I've moved on and am developing my application using VS2010 Pro Beta, but I'd really like it to be able to be built with express edition, since we are generally not a .net shop and even if one or two developers have VS PRO it will not be available to our entire team. To be ...

What versions of Windows will .Net 4.0 support?

What versions of Windows is Microsoft planning to support with .NET 4.0? ...

.NET Garbage Collection and Native Threads

It’s fairly well documented that when .NET's automatic garbage collector runs, it will temporarily pause all running managed threads associated with the application domain. What I haven't been able to discover are details on what happens to native threads created by the application when garbage collection occurs (ie. using _beginthreadex...

Step into another assembly?

In Visual Studio, is it possible to step into a loaded assembly when you don't have both solutions open? That is to say, I have two solutions, and I'm trying to find a bug that only shows up in the the second one. The second one references the assemblies output from the first. How would I load the symbols from that assembly? ...

Datamining library for .NET

Hi, Does anybody know about any dataming libraries for .net? ...

How to get TreeView behaviour for TreeNodes that when you check one, it checks all its children TreeNodes?

This is the same as how most apps behave. I thought TreeView worked like that by default. Is there a way to do this, or do I have to get all the children of a TreeNode that's checked and check them myself? This is winforms. ...

C# - What does "destructors are not inherited" actually mean?

Section 10.13, Destructors, of the C# Language Specification 3.0 states the following: Destructors are not inherited. Thus, a class has no destructors other than the one which may be declared in that class. The Destructors section of the C# Programming Guide contains an example demonstrating how destructors in an inheritance hierar...

Classic.ASP calling .NET component via COM

I have a Classic-ASP application running in IIS 7 (integrated mode) that needs to call a .NET library that was properly registered as COM. Everything seems to work find, but I cannot debug the library even if i put several breakpoints in it. The VS debugger seems to step over without breaking. This is my ASP code: Dim sso: Set sso = S...

Trying to save an object with the Entity Framework v4 - how?

Hi folks, I've using Entity Framework v4 (that comes with VS2010 Beta 2) + POCO's. I can load the data from the db into the poco's perfectly. Now, i have a single poco instance, and i don't know how to save it to the DB, using EF4. Can someone help please? I'm guessing it's because the EF4 doesn't know that the POCO has 'changed'? anyw...

.NET DateTime.Parse

When trying to use the Parse method on the DateTime class I get an exception thrown: String was not recognized as a valid DateTime. The string reads as "26/10/2009 8:47:39 AM" when outputted. This string is obtained from a group on a match from a regex. None of the strings obtained from this match group will parse to datetime. (WT...

What causes this MS DTC error to occur sporadically in .NET?

I receive this error sporadically throughout the day. According to the stack, it's thrown during enlistment. If it were getting this error every time I'd be able to troubleshoot and fix (typically a firewall or LMHOSTS issue). Since it's randomly happening, I can't for the life of me think about what would do this. Any ideas? System...

How to get the TreeNode under mouse cursor when the mouse is down?

Basically the TreeView has checkboxes, and I am able to get the TreeNode, but it gives me the TreeNode wherever I click on the TreeNode, from it's text to it's checkbox and a little beyond that (to the left). Can I restrict the hittest so I only get a TreeNode if the user click on the checkbox of the TreeNode? ...

n-tier architecture: best place to store business objects?

Say I have a 3-tier architecture (UI, Business, and Data). Usually, I create a 4th project called "Model" or "Common" to keep my data access objects and each of the other projects would then use this project. Now I'm working on a project where some of my data access objects have methods like Save() etc that need access to the Data pr...

Switching from Java to .NET from a career change point of view

Could anyone share with me their experience with switching from Java to .NET from a career point of view? I've been a Java developer for 12 years and am just getting tired of how fragmented the Java world has become. For my liking, there's just too many frameworks, tools, application servers, etc.. And it seems each new tool just add...

Resolving MSB3247 - Found conflicts between different versions of the same dependent assembly

A .NET 3.5 solution ended up with this warning when compiling with msbuild. Sometimes NDepend might help out but in this case it didn't give any further details. Like Bob I ended up having to resort to opening each assembly in ILDASM until I found the one that was referencing an older version of the dependant assembly. I did try using ...

C# PrintDocument Changed event

My issue is that I've created an "extended" RichTextBox control that uses native API to add many RichEdit features that are missing from the standard control (ie: modifying a single font property on a selection w/o changing the other font properties, word wrap to a printer [like WordPad], etc.). As part of the control I expose a PrintDoc...

Adding a Tab to the Outlook 2010 Ribbon?

I'm trying to create an Outlook 2010 addin that adds a new tab to the ribbon. I found out how I can add my groups to an existing tab by setting the OfficeId to "TabMail" or something built-in, but I don't want to modify existing tabs. I've now set the OfficeId that something of my own ("TabMyAddin"), but it doesn't show up in Outlook. I...

Adding a section to the To-Do bar in Outlook 2007/2010?

I would like to add a new section to the To-Do Bar in Outlook 2010 (or 2007). I found some code to create a new collapsible task pane and someone claiming you can't modify the To-Do bar, but I also found a product called Add-In Express that claims it can do it (although at $349 it's not worth it for a one-off project). Is is possible to...

A recommended ORM tool for asp.net or help with SubSonic3 simple repository

Hi, I'm wanting to use an ORM tool for an asp.net web app I'm working on. I've put together all my classes and just want to have the data persisted. I downloaded SubSonic 3.0 and began using the simple Repository...which was brilliant. I'm new to ORM tools as my first experience commercially was the DataSets/Stored Procs world for a few...

Coarse-Grained WCF Services

I have 2 WCF services now and I want to construct the WCF Service which will use 2 WCF Services(trying to make coarse-grained service).But as you know for making wcf service; create wcf service library and I construct all methods ,write on WCF Service Library.And then I create New Web Site which is WCF Service and I link it to WCF Servic...