.net

LINQ to SQL Could not find key member. Only fails on server.

I have a scenario where I am inheriting from an abstract class in my partial linq to sql auto generated class implementation. My base abstract class has an abstract property called ID which I have flagged inside my LINQ to SQL model with the instance modifier override. This works fine locally without any issues. I have also done some dev...

Free hierarchical DataGridView with DataBinding support

I'm searching for a DataGridView derrived class that show data in hierarchical way and supports DataBinding like regular DataGridView does. Do you any of this? Free? ...

How do i get a reference to all managed threads

I know there's nothing in the box ... but does anyone have any tricks. Managed threads not OS threads please. Cheers Answering the comments: Version is .Net 3.5. I want all managed threads in the current running process. I want them so I can get the call stack of everythread. Thanks ...

Consume a stateful .net web service from java

In C# I have methods that use [WebMethod(EnableSession = true)] I consume them in C# .net by using a cookiecontainer to maintain state. How do I do the same thing in java? I want to call a .net webservice with [WebMethod(EnableSession = true)] and have it maintain state between calls. ...

Toolkit for Windows Mobile?

Looking for a good toolkit for windows mobile development. So far, I looked into the Resco toolkit and I'm not so impressed with it. Especially the databinding. Anyother toolkit that is worth a try to have a rich user experience? ...

Handling partial/incomplete dates in .NET

I have the need to handle partial dates, so for example: 1 April 2009 (stored as 1, 4, 200) Jan 2000 (Stored as null, 1, 2000) March 90 (Stored as null, 3, 1990) 00 (Stored as null, null, 2000) and so on. Looking at it, I don't think it's a massive problem as it will only have to handle UK dates, so globalization is not a considerat...

Find min/max of a float/double that has the same internal representation

Refreshing on floating points (also PDF), IEEE-754 and taking part in this discussion on floating point rounding when converting to strings, brought me to tinker: how can I get the maximum and minimum value for a given floating point number whose binary representations are equal. Disclaimer: for this discussion, I like to stick to 32 bi...

What does Visual Studio offer that Monodevelop lacks?

What would a developer used to working in Visual Studio have to give up if they switched to Monodevelop? This hypothetical developer most often develops ASP.NET web applications with C#. I'm aware that Monodevelop has the basic Visual Studio features like syntax highlighting and support for Visual Studio solutions. What are the deficien...

Regular Expression for dd/MM/yyy or dd/MM/yyyy hh:mm:ss

I'll admit I'm rubbish at regular expressions and find some of the tools out there that are supposed to make generating them easier painfully difficult to use. That's my fault granted.. anyway.. Can anyone come up with a single regular expression that will allow both dd/MM/yyyy and/or dd/MM/yyyy hh:mm:ss Yes, I've Googled for it and se...

Best way to print CSV-like list data

I would like to print simple CSV-like list data from a .NET application. sometimes rows needs to be grouped together and a sum must be calculated and printed. which is the best way to do it? printing directly through printing/drawing namespace? con: IMHO doing the page/row/cell calculation and drawing borders will be hard to get right ...

What parts of .NET aren't available in Monotouch for IPhone dev?

What are some key bindings that aren't included? ...

How to Generate all the characters in the UTF-8 charset in .net

I have been given the task of generating all the characters in the UTF-8 character set to test how a system handles each of them. I do not have much experience with character encoding. The approaching I was going to try was to increment a counter, and then try to translate that base ten number into it's equivalent UTF-8 character, but...

What happens when a .NET thread throws an exception?

We have an interface IPoller for which we have various implementations. We have a process that will take an IPoller and start it in a separate thread. I'm trying to come up with a generic way of providing exception handling for any IPollers which don't do it themselves. My original thinking was to create an implementation of IPoller t...

Free syntax highlighting component in .NET

Hi Guys, Does anyone knows about good free syntax highlighting component for .NET? Thanks a lot, Adi Barda ...

Grouping similar objects in web cache (.NET)?

I have a bunch of objects all of one class which I want to store in the web cache. There could be a few hundred of these objects. I want objects to have their own individual expiry times, and expire from the cache individually. I want to be able to tell how many of these objects are in the cache, and iterate over these objects alone (re...

Application Data Folder and Company Name With Underscores

My VB.NET 2008, .NET 3.5 application is using an app.config with settings defined as User. As expected, it created the folder: C:\Documents and Settings\<user>\Local Settings\Application Data\<company name>\ In this folder are the sub-folders for the application to store the user settings. However, the folder of the company name has u...

Setting display in .NET code

I have a modal popup with a formview with a default mode of Edit. The controls inside the form are bound to data. I have JavaScript that shows a textbox and a label only if a certain value is selected from a dropdownlist. I want to do this on load also. <tr> <td align="left"> <asp:DropDownList ID=...

Getting the Out of Office status programatically from Exchange or AD?

When people use Outlook (in this case in a Windows AD Domain running Exchange 2003 and 2007), they can set an Out of Office reply. Office Communicator 2005 can access it as well, so I assume there has to be a way to access it programatically? Does anyone know how to? I assume that Exchange would be the place to ask as AD doesn't seem to...

Oracle instant client for .net on 64 bit windows server 2008

I installed Oracle 11g ODAC 11.1.0.6.21 with Oracle Developer Tools for Visual Studio and built my app. I installed Oracle 11g ODAC 11.1.0.6.21 with Xcopy Deployment on the 32 bit server and it runs great. But now I need to install on a 64 bit server. Where can one find the 64 bit Oracle 11g ODAC? The Oracle client is installed on the...

Signing an unsigned assembly

Hi, The recent upgrade of NHibernate 2.1 has brought a mega headache situation to the surface. It seems most of the projects build by default as signed assemblies. For example fluentnhibernate references the keyfile fluent.snk. Nhibernate.search builds unsigned from what I can gather and will not build signed that is if you ref...