.net

SOA: Biztalk ESB candidates for .Net

Letting BizTalk aside - I like it, but only for variety purposes. Which others ESB solutions would you use in a SOA .Net arquitecture? thanks in advance : ) ...

Adventurous: Patching VS.NET to include line numbers in release builds

I am distributing with VS 2008 .NET and obfuscation. I am up against the frustrating problem of not being able to see line numbers in stack traces. Whilst there are workarounds eg. http://stackoverflow.com/questions/1328836/include-line-numbers-in-stack-trace-without-pdb when the stack traces are returned (holding PDB files locally et...

Money data type for .NET?

Looking for a good Money data type for .NET that supports currencies and exchange rates (with related behaviour & operations). Note: I started searching for the source code seen in print in the book Test-Driven Development By Example by author Kent Beck - he develops a nice Monetary concept. Unable to find the complete source online. ...

.NET Unit Testing - How to Test applicationSettings

I have a class library that is using application settings to determine the behavior of a particular method. I realize that the argument could be made that this is a Bad Thing, but we know that the behavior of the site is going to change about a week after launch (no real definitive time), and it will be easiest to just change the sett...

C# Expression Trees and Invoking a Delegate

So I have a delegate which points to some function which I don't actually know about when I first create the delegate object. The object is set to some function later. I also then want to make an expression tree that invokes the delegate with an argument (for this question's sake the argument can be 5). This is the bit I'm struggling wi...

best approach for multithreaded server on .net?

Hi , I want to develop a server which will listen on some specific ports to receive requests from device.While processing a request following steps are followed. Read data from socket stream(sent from device) Parse byte data in to business objects Use business objects process request using database through ado.net layer Send response i...

Why Doesn't My VB.NET WinForms WebBrowser Program Work?

Imports System.Windows.Forms.WebBrowser Public Class Form1 Dim browser As WebBrowser browser.navigate("http://www.google.com") End Class This code will not work.... I have web programming background and trying to learn windows programming....any guide or tutorial to make the transition smoother ? ...

Can I get number of opened tabs in Internet Explorer 8?

In C#, can I get the number of opened tabs? ...

How can I most effectively take advantage of multiple cores for short computations in .NET?

Here is the context: I am writing an interpreter in C# for a small programming language called Heron, and it has some primitive list operations which can be executed in parallel. One of the biggest challenges I am facing is to distribute the work done by the evaluator across the different cores effectively whenever a parallelizable ope...

Good resources for learning how to use the Entity Framework 4.0?

I am starting a new module on a project and hear the Entity Framework 4.0 is coming along nicely with its POCO support, lazy-loading, and many other great features. The problem I have is trying to find good resources for learning the technology that isn't geared towards version 1.0 I am following Julie Lermans blog where she is working o...

Detect mapped virtual directories from an ihttpmodule in a c# .net application

I have a .net website which contains an IHttpModule I wrote to do certain tasks (authorisation etc). But within the website there are a number of virtual directories that are mapped to third party applications which unfortunately I can't change or move (e.g. community server forums, adxstudio cms and others). I am looking for a way to p...

XNA - Why does it use Vector2 and not Point?

I'm used to WinForms graphics, but I've been dabbling in XNA, and one thing I've noticed is that the Point object isn't very useful, and doesn't seem to be used very much. For positioning, the various SpriteBatch Draw methods use either a Rectangle or a Vector2. And Vector2 has a lot of useful static and instance methods, whereas Point...

Is this a good way to implement the Asynchronous Programming Model?

I've been on a tear lately trying to learn everything I can about .Net Multithreading. (Getting better at it, but still feel like there's lots to learn). Right now I'm focusing on the APM (Asynchronous Programming Model) which is commonly known as this: //non async method public int DoSomeWork(int arg) { //do something and return res...

Visual Studio on Mac OS X

Hello Friends, Can we run Visual Studio on Mac OS X. Actually, I have planned to buy apple mac book pro, but am not sure is Visual Studio IDE work on it or not. Thanks... Nirajan ...

com+ alternative in .net?

What is the com+ alternative in .net? Is it .net remoting or WCF or something else. ...

How to insert a time between the two dates

Using VB.Net and SQL 2005 Table1 Name FromDate ToDate Sched1 20091201 20091231 Sched2 20090515 20090613 ..., In table2 i want to add a time for a date between the FromDate and ToDate Table2 Name Date StartTime EndTime Sched1 20091201 080000 120000 ..., In my application am using "AddTime" Button. In the click event ...

Loading managed dll into AppDomain from native c++ code.

Hi, I want to load managed assembly into the AppDomain from native c++ code. If it worth something the native code is a CLR profiler so I get notification each time AppDomain is created. ...

Add Inherited Controls to a Panel

I have a base form with two buttons (e.g. OK and Cancel). I want to use a TableLayoutPanel and have the two buttons in it. Child forms should be able to add more controls to the table as well as modify its layout itself via the designer. So far I can't get this to work. I have tried the following: Adding the TableLayoutPanel to the ch...

How to update or add a column in datagridview

Using VB.NET and SQL Server 2005 In DataGridView n number of rows was displaying. Suppose I edit some value in the datagridview cell then I click save means it should update in the table also. Suppose I click add button means it should add a new row in datagridview. How to write a code for this? ...

.net C# FirebirdSql Inetr Base transaction scope : transaction abort exception

I am using FirebirdSql for Interbase database in C# .net environment. My application is divided into 3 parts, 1. Handler 2. Connector 3. DBLayer In Handler I set all my fields property, Like Decimal name = payment.name; Decimal convRate = payment.ConvRate; string remark = "Some Text"; retValue = Payment.Insert(name,convRate,remar...