.net

Which templating engine is this?

At my current place of work we have to use a web-service which works with a text template we feed to it. Now we would like to use those templates at other places in code and so I wondered what template language that could possibly be and if it's some off-the-shelf or off-the-net software. It's presumably something from Java or .NET world...

Is there an easy way to associate an event with a ListViewItem?

I have a WinForms ListView, obviously containing ListViewItems. I'd like to be able to attach a click event to each item, instead of to the entire ListView (and then trying to figure out what item was clicked). The reason for this is that I need to perform a different action based on which item was selected. The ListViewItem class seems ...

Image.SetResolution results in A generic error occurred in GDI+

Hello! For some reason if I call on a 600 dpi image: myImage.SetResolution(72, 72) It gives me "A generic error occurred in GDI+". Moreover, if I try to create a new 72 dpi bitmap, create graphics object from that and use DrawImage to draw original 600 dpi image in the graphics object created from the new bitmap, I also get this err...

Does Microsoft offer an automated tool for App Deployment?

Does Microsoft offer a tool where you can deploy a web application to multiple web servers in a load-balanced environment/web farm? My team is looking for a tool, preferably from Microsoft, where we can deploy our web application from development environment to production environment automatically. ...

Setting initial control focus in Silverlight

I'm looking for a way to automatically set the initial focus on a Silverlight UserControl to a specific control. I have a login page with a user name textbox and I'd like to have it so that as soon as the user goes to the page their cursor is already positioned and waiting in the username textbox instead of having to make them click the ...

Can any recommend a good book for learning WCF?

Can any recommend a good book for learning WCF? Ideally, the .NET 3.5 version. ...

Is it possible to programatically log access to a windows share (SMB share) using the .Net framework?

Just wondering if it is possible to figure out who has read files from a Windows share (using .NET ideally but win32 native will do)? What I'm try to do is create something like awstats for a windows share so I can see who is accessing what and which are the most popular files. I'm not interested in changes - I just want to log access ...

Where to get UniObjects for .NET?

I hate IBM's site. It is extremely hard to find anything on there let alone try to find it twice! I'm looking for the UniObjects for .NET. I did find the below files and have installed them (can't find them now on IBM's website) however when I go to install the database add-ins for Visual Studio (v9.7) it says the IBM Data Server Provid...

What free, portable .Net tools are available?

I'm starting a new .Net project, and I would like to know your recommendation for tools to use. In general, I would like to have the following: Somebody should be able to check out the project and build it with nothing more than mono or .Net installed It should build on as many platforms as possible (or at least Windows and Linux) Som...

OleDB vs ODBC: does one of them NOT require driver installation FOR ALL Oracle, MySQL, SQL Server?

I want my application to be able to work with multiple db vendors. In other words, depending on the DB infrastructure of the client, the db schema will be deployed on one of Oracle, MySQL, SQL Server. I am between using ODBC and OleDB, and the following key requirements that must be taken into account for the selection: the DB schema m...

How can I get the reference to currently active modal form?

I am writing a small class for driving integration testing of a win form application. The test driver class has access to the main Form and looks up the control that needs to be used by name, and uses it to drive the test. To find the control I am traversing the Control.Controls tree. However, I get stuck when I want to get to controls i...

Is ROWLEX supports natively IEnumerable<> ?

Hello! Is ROWLEX supports IEnumerable? Because when I use RdfProperty(true) with string[] it is working correctly, but when I write IEnumerable< string > type of property and return string[] (that is casting implicitly to IEnumerable) and it is not working. It is good if generic enumerables are supported, not only Array class. Example...

How can I auto increment the C# assembly version via our CI platform (Hudson)?

Myself and my group is horrendous at incrementing assembly version numbers and we frequently ship assemblies with 1.0.0.0 versions. Obviously, this causes a lot of headaches. We're getting a lot better with our practices via our CI platform and I'd really like to set it up to auto increment the values within the assemblyinfo.cs file so...

Multithreading on a multi core machines not maxing CPU

I am working on maintaining someone else's code that is using multithreading, via two methods: 1: ThreadPool.QueueUserWorkItem(New WaitCallback(AddressOf ReadData), objUpdateItem) 2: Dim aThread As New Thread(AddressOf LoadCache) aThread.Start() However, on a dual core machine, I am only getting 50% CPU utlilization, and on a dual...

How do I use AfxOleGetMessageFilter in a VB .NET program?

Hi. We have a program that calls a long-running (SolidWorks) API function. After a while, we get an error dialog saying that "the COM server is busy...". We've done some research and have found that you can control this by using a bit of C++ code similar to: COleMessageFilter *pFilter = AfxOleGetMessageFilter(); if(pFilter) ...

Passive Logging in an existing .NET Web Application?

I've just started working on a brownfield ASP.NET 2.0 Web Application. As with a lot of brownfield applications, the architecture, and specifically the exception logging architecture, is inconsistent and in some places, missing or incorrect (swallowing exceptions, re-throwing, using them for control logic etc) As a starting point for br...

How do I make an extension xsd for the web/app.config schema?

How do I make a schema for custom config sections? I tried making one, but when I used it, it said the only expected element was what I had in that schema, and complained about the standard web.config stuff, even though I was still using the normal DotNetConfig.xsd file too. ...

In ROWLEX is there a way to remove "rdf:datatype" from serialized object?

In ROWLEX is it possible to remove "rdf:datatype" attribute of each property and/or use common RDF Schema instead? Example: <MyOntology:Channel> <MyOntology:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string"&gt;My news</MyOntology:title> <MyOntology:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string"&gt;M...

C#: What would you name an IEnumerable class?

When reading this question I started to wonder a bit. Say you have these two: class ProductCollection : ICollection<Product> class ProductList : IList<Product> What would you call one that were an IEnumerable<Product>? class Product--- : IEnumerable<Product> Before I read that other question I might have called it a ProductCollecti...

Use right-click with Windows Forms Button

I am writing an app where the user should be able to alter the action of a button. The user should right-click a button, and choose an option from a pop-up context menu. Once the choice has been made the button will perform a different action when the user uses a normal click. I've already gotten the "Click" event working for a normal...