.net

Quadratic Programming in C# / .NET

Does anyone know of a free package that will solve quadratic programming problems in C#? I've googled and found a few. But its hard to tell which is the best and fastest so I was just wondering if anyone had a favorite. ...

How to manage maintenance/bug-fix branches in Subversion when setup projects need to be built?

We have a suite of related products written in VB6, with some C# and VB.NET projects, and all the source is kept in a single Subversion repository. We haven't been using branches in Subversion (although we do tag releases now), and simply do all development in trunk, creating new releases when the trunk is stable enough. This causes no ...

Html string reader

Hi all, I need to load HTML and parse it, I think that it should be something simple, I pass a string with a "HTML" it reads the string in a Dom like object, so I can search and parse the content of the HTML, facilitating scraping and things like that. Do you guys know about any thing like that. Thanks ...

How to programmatically detect Cipher type and Encryption level from a wireless network device from windows 2003 server

Now my team working in a network project using windows application c#. I didn't know how to programmatically detect Cipher type and Encryption level from a wireless network device from windows 2003 server. After searching i got WMI (Windows Management Instrumentation) for solving the problem.+ Please suggest example/reference for findi...

Please help. Creating threads and wait till finsh

Hi I have two method calls that I want to call using two threads. Then I want them to wait till method executions get completed before continuing. My sample solution is something like below. public static void Main() { Console.WriteLine("Main thread starting."); String[] strThreads = new String[] { "one", "tw...

What is a service provider?

Sorry if this is a silly question but I am a C developer who just happen to be in a meeting with a bunch of .NET guys and over heard their conversation. They were sketching out a design and constantly talk of service provider, services and spring. Instead of looking silly by asking them, I just decided to post here. BTW, I am doing dev...

How to send and receive file on Silverlight application?

Hi. I am writting Silverlight client-server application. Server part is WinForm application an client part is Silverlight. I use TCP connction. I use sockets for sending and receiving information. But now I need to send a file, size of which may be greater then 1 Mb, so I can't use socets to send that file as bite stream. I wont to send ...

Ajax request (from .NET) give me unexpected results

I wanted to learn a little more about web and .NET so i decided to write a program to download binaries, webpages and does a little ajax. The first download site i tried was too easy. So i went against uploading.com. It seemed good, no captcha, some ajax use required, you cant guess all the data, it was perfect. After 2hours of messing...

How should I associate a ListBox item with an item in a list of mine?

I have a listbox which has all the names for a list of "Gesture" objects I have. I want to make it so if I double click on a ListBox item I can then do something with its associated Gesture instance. What is the best way in C# to associate a ListBox item with an instance of a class of mine? I'm using WPF. ...

Performance of .NET ILMerged assemblies

I have two .NET libraries: "Foo.Bar" and "Foo.Baz". "Foo.Bar" is self-contained, while "Foo.Baz" references "Foo.Bar". Assuming I do the following: Use ILMerge to merge "Foo.Bar.dll" with "Foo.Baz.dll" into "Foo1.dll". Create a new solution containing the entirity of both "Foo.Bar" and "Foo.Baz" (since I have access to their source co...

ListView images just not showing up. Why (Drooping my head in shame that I have to ask)

I am trying to display images in a WinForms ListView that is in details view mode, but images are just not showing up. I have added a SmallImageList (and a large one for good measure, added images to them, added my items to the ListView, but when I set the ImageIndex nothing happens. Images do not show up. I have also tried using the Im...

.Net use WSDL for other communication protocol (TCP, etc)

Hi, Is it possible to generate a proxy class from WSDL and use the proxy class for other communication protocol? For example, my application generate the new proxy class and then use this class as a standard for sending request and receiving response messages on TCP, JMS, etc. Thanks ...

What is the way to go to fake my database layer in a unit test?

Hi, I have a question about unit testing. Say I have a controller with one create method which puts a new customer in the database: //code a bit shortened public actionresult Create(Formcollection formcollection){ client c = nwe client(); c.Name = formcollection["name"]; ClientService.Save(c); { Clientservice would call ...

Setting up an ASP.NET MVC View to work in VB.NET

How would I write the following ASP.NET MVC C# code in VB.NET? <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcGridSample .ViewModels.Shared.Grid<Customer, CustomerSearchForm>>" %> ...

How to close all running threads?

When i used foreach (Form form in Application.OpenForms) { form.Close(); } Application.Exit(); It not exit Application? How can I exit the application making sure all running thread are closed? ...

How to convert culture specific double using TypeConverter?

Hi, I have a problem with the TypeConverter class. It works fine with CultureInvariant values but cannot convert specific cultures like English thousands separators. Below is a small test program that I cannot get to work. Here's the problem :) - ConvertFromString throws an exception with the following message "2,999.95 is not a valid v...

Webservice parameter value encoding

We have a webservice created in WCF and presenting itself as a basicHttpBinding. One of the parameters is a string which takes an xml string. Looking at the soap the client generates to send to the webservice, the xml is encoded, with all < and > swapped into &lt; and &gt;. My question is, is this all that is encoded, or has the paramete...

Remove PostSharp reference after build?

Is is possible to get postsharp to remove references to the postsharp assemblies during a build? I have an exe i needs to have a very small footprint. I want to use some of the compile time weaving of postsharp but dont want to have to deploy PostSharp.dll with the exe. I am using PostSharp 2 (2.0.4.1074 specifically) ...

Detailed change history of .NET framework versions?

I am looking for a detailed change history (including bugfixes) of all .NET framework versions, especially the changes between 2.0 and 3.5 SP1. I know that something like that exists for v2.0 and v1.1, and for v4.0. However, I could not find a history for v3.0 and v3.5/SP1. Background: (slightly edited) We are having issues somewhere b...

System.Management.ConnectionOptions always requires a password in text?

Hi, I'm using WMI in .NET to connect to remote machines in a web app. When I initialize the connection, the Management ConnectionOptions always require a username and password in text. I was wondering if there was a way for it to use the context of the current Windows user, eg via page.user.identity. If I leave the connectionoptions ...