.net

Creating standalone, console (shell) for domain-specific operations

Say that I have a system service, and I want to offer a low-level maintenance access to it. For that purpose, I'd like to create a standalone, console application that somehow connects to server process and lets user type in commands, allow it to use auto-completion and auto-suggestion on single/double TAB press (just like linux bash sh...

Does Comvisible-enabled attribute slow down .NET App?

Please help me to answer whether Comvisible-enabled attribute slows down .NET App? ...

Programatically creating a Site Workflow in SharePoint 2010?

I'm trying to create a new Site Workflow, but not through SP Designer or Visual Studio. Instead, I would need to create it entirely through code (The logic is customizable and dynamic - Initiation Forms or Conditionals won't help much). Do I have to build the .xoml and .rules files by hand? Or is there an API for designing workflows? ...

Detecting if MSBuild/.net 4 is installed from C# code running on 3.5?

I have an application that is running on .net 3.5 SP1 and that is supposed to check if .net 4 is installed. Actually, I'm more interested if MSBuild v4 is installed, which would boil down to a simple File.Exists(@"C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"); However, apart from the fragility of the 4.0.30319 Version (an...

What movie website allows people to scrape it?

I've wanted to make a C# library to scrape movie information and return it to the application, but someone told me that it's against the TOS. RottenTomatoes seems to have no problems with it from what I've read on their licensing page, but I'm not quite sure. Where could I aquire movie information legally and without cost? It's for an ...

What's the best way to transfer a large dataset over an ASMX web service?

I've inherited a C# .NET application which talks to a web service, and the web service talks to an Oracle database. I need to add an export function to the UI, to produce an Excel spreadsheet of some of the data. I have created a web service function to run a database query, load the data into a DataTable and then return it, which work...

Index out of bounds exception while iterating through a List<string>.

I have a List of the location of images on a folder. I have five pictureBoxes that emulate a coverflow type area for users to skim through the images of a given folder. I know that the error is fired because the first image in the collection is set to the first picturebox, then if I click on cycleLeft(), there is a negative number. H...

Unknown Publisher problems

I have a VS 2008 Setup Project created. I am trying to install this on a Windows 7 machine as a Standard User. I am getting a warning during install about an unknown publisher. I have used makecert to create a certificate, then converted it to a password pfx file. I have digitally signed the msi and setup.exe with the pfx file. When...

How can you trace an object back to the DLL that provides it?

The Object browser doesn't tell where the object came from. ...

Where do I handle asynchronous exceptions?

Consider the following code: class Foo { // boring parts omitted private TcpClient socket; public void Connect(){ socket.BeginConnect(Host, Port, new AsyncCallback(cbConnect), quux); } private void cbConnect(IAsyncResult result){ // blah } } If socket throws an exception after BeginConnec...

How to draw an unfilled square on top of a stream video using a mouse and track the object enclosed in the square automatically in C# ?

Hi, I am making an object tracking application. I have used Emgucv 2.1.0.0 to load a video file to a picturebox. I have also taken the video stream from a web camera. Now, I want to draw an unfilled square on the video stream using a mouse and then track the object enclosed by the unfilled square as the video continues to stream. T...

Parsing Lisp S-Expressions with known schema in C#

I'm working with a service that provides data as a Lisp-like S-Expression string. This data is arriving thick and fast, and I want to churn through it as quickly as possible, ideally directly on the byte stream (it's only single-byte characters) without any backtracking. These strings can be quite lengthy and I don't want the GC churn ...

microsoft.office.server.search.query not found

I have added reference to my application of Microsoft.Office.Server as well as Microsoft.Sharepoint . but while importing the namespace in program , there is no option like microsoft.office.server.search.query after microsoft.office.server.search. I am getting there Microsoft.Office.Server.Search.PortalCrawl;. Why this is?? please guid...

LINQ problem on remote machine

I am using LINQ expressions in my code like this var obj = Collection.Single(collection => (collection.ShortName.Equals("AAA"))); The problem is that this line works fine for me, no problems. But when I upload the same executable to some remote machine with same 32 bit Windows XP. The code execution is just stopping at this line of s...

Subsonic. Ambiguous column name using Group By

Hi, I'm using subsonic 2.2 with .net 2.0 and I'm having an error when I included "Group By". Originally I had this code, and it worked perfectly: SqlQuery etResourceTitle = new Select(ResTitleOngoing.Columns.ResourceTitleID, ResTitleOngoing.Columns.ResourceTitle, ...

Development enviroment for .NET

I'm about to create an development enviroment for a little developer company(3-4 developers + some testers). Our development platform is .NET and Oracle. My question is how to structure the whole enviroment.How many servers do I need ? Should be one server for developers and one for testers ? I'd like to have one build server (TeamCity)...

the problem of redirecting stdout in c#

Could you please explain why the shell redirection doesn't work with System.Diagnostics.Process class? I am trying to redirect the output streams to file with the following snippet: Process p = new Process(); p.StartInfo = new ProcessStartInfo(); p.StartInfo.FileName = "java.exe"; p.StartInfo.Arguments = @"> c:\Temp\test.log 2>&1"; p.St...

Search images using c# in local images folder

We have a images folder which has about a million images in it. We need to write a program which would fetch the image based upon a keyword that is entered by the user. We need to match the file names while searching to find the right image. Looking for any suggestions. Thanks N ...

Where is the Bonjour COM library?

I've downloaded and installed the Bonjour SDK for Windows on my Win7 64bit machine. I've tried to build both of the the projects in C:\Program Files\Bonjour SDK\Samples\CS. However they both reference Bonjour, causing me to get the following build error 'Cannot load type library for reference "Bonjour". Library not registered.' Bonjou...

MVC2 or WCF for an XML/JSON REST API?

I spent a long time learning how to customise WCF from the point of view of adding authentication etc over a RESTful service; I built some custom service hosts, then added the ability to use an IOC container to actually create the service instance etc etc. We have iPhone/iPad apps plus some other gadgety-type things (technical term!) th...