.net

Is it just me? I find LINQ to XML to be sort of cumbersome, compared to XPath.

I am a C# programmer, so I don't get to take advantage of the cool XML syntax in VB. Dim itemList1 = From item In rss.<rss>.<channel>.<item> _ Where item.<description>.Value.Contains("LINQ") Or _ item.<title>.Value.Contains("LINQ") Using C#, I find XPath to be easier to think about, easier to code...

how to overwrite the timezone of the server in a sub application

This is a quicky, what do I need to setup a different timzone in my application than that setup on IIS All i want is to show a specific date in AESP rather than SPT, ist here a way in C# .NET 3.5? ...

PHP SOAP client Consuming .Net 2.0 web service

I'm trying to set authentication headers and call a .Net 2.0 web service method, but it appears that the .Net web service is having an issue interpreting the Authentication Headers. Has anyone come across this issue? I'm using the PHP SoapClient class. ...

Exclude System.Diagnostics.Contracts When Using PartCover

I am trying out the .net Code Contracts fro .net 3.5 I have some unit test that I am running PartCover over to calculate the code coverage. PartCover keeps including the System.Diagnostics.Contracts in my report. Here are the rules I am using to include MyProject and exclude everything else. <Rule>+[MyProject.DomainModel]*</Rule> <...

Overloading LINQ's Add method for validation

I have an Email object and am attempting to validate the number of attachments that are in its List<Attachment> property. The trick is that we consume the Send() method across a WCF service. It's easy to validate it server side, but I want to validate it client side first. I have generated a library that others are supposed to use in ...

CodeRush Xpress: disable the locator carets?

I want to disable the "locator carets" put down by CodeRush when i execute one of it's commands, how can i do it? ...

SlimDX Directx 9 problem

I am getting the Following problem when i try to initialize the directx SlimDX.Direct3D9.Direct3D9NotFoundException was unhandled Message="Direct3D 9 was not found. Reinstalling DirectX may fix the problem code: Direct3DEx m_d3dEx = new Direct3DEx(); I checked the version of Directx installed on my PC via dxdiag utility ...

The power of .NET without the garbage collection?

I love C# because the powerful features of the .NET framework make it so easy to develop for Windows. However I also love standard C++ primarily because it gives me fine-tuned control over memory management. Is there a way to have the best of both worlds? Are there C++ libraries that can compete with the rich set of libraries in the .NET...

Associating custom ribbon with custom form region - Outlook 2007, C#

Hello, Is there any way how can I associate custom ribbon (custom tabs and buttons I created in VS designer) with a custom form region? I know that I can extend the existing windows with my ribbon (such as Compose message, Contacts...), but how can I create a new tab with custom ribbons at the top and custom form region at the bottom. ...

What overhead is associated with an extension method at runtime? (.NET)

In a data crunching application that is CPU and/or memory access bound, is the overhead of a one line extension method noticable? Is it any higher than a normal function call, or is it simply a compiler/IDE abstraction? For instance, would the following function be ill advised if it was being called upwards of several thousand times a se...

C# code to allow Proxy access (to get Google API C# example working)

Hi, Is someone able to assist in helping understand how to get this C# example working through my proxy server. I note there is a code sample at http://code.google.com/apis/gdata/articles/proxy%5Fsetup.html#dotnet, that provides some direction, however I'm having trouble regarding how to apply this to the DocListExporter example. In o...

WPF and external CSS file

Is it possible to store style definitions in one file (XXXXX.css) and then to use this file in XAML files? ...

Looking for Log4net compatible for .net 1.1 (1.14322)

I have been asked to add some logging to a legacy application using .net 1.1 and told to use Log4net ,can somebody tell me as I could not find out where I can find the download compatible with .net 1.1 (1.14322) ...

What cool frameworks are there on Java/Ruby etc. that don't exist on .NET?

I was just reading a post from Justin Etheredge in which he wrote "... I get so jealous when I talk to the Java guys at work and see all of the freaking awesome tools that they have for free on their platform. Since I use the NUnit, NCover, NHibernate, NAnt stack when doing most .NET development, sometimes I feel like we are just a bunch...

Filter properties returned by TypeDescriptor.GetProperties() depending on the class they are declared in

Hey guys. I have the following situation. I want to use a TypeDescriptor to get the properties of a certain type. The type's depth in the inheritance hierarchy may vary. I only want to get the properties declared in the type itself and not in its parents (base). The problem is that when I call TypeDescriptor.GetProperties() it would ret...

Is there any Document Management Component (Commercial or Open Source) for .NET?

Hi there We are building a .NET web application (case management) and one of the requirement it needs to have a Document Management System to store and manage the document and at the same time it can be used out side this application such as intranet. Rather than inventing the wheel to do this, is there any Document Management System c...

.net 64 bit reference problem

On a 32 bit Windows Server 2003 machine I have created a Visual Studio Class Library project and platform target configured to "Any CPU". The project has reference of System.Data. I changed the platform target to x64, built the project and put the DLL in GAC on a 64 bit machine. The 64 bit machine has both 64 bit and 32 bit versions of ...

In a Windows.Forms application, Properties.Resources always return neutral culture values

I have a Windows.Forms application and I change the resources at runtime with this code: Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture = new CultureInfo("it-IT"); What happens is that new forms appear correctly with the new culture, while Properties.Resources.* strings always appear with the neutral cultur...

.NET Deployment project: Custom Action that cancels uninstaller

I have a .NET deployment project. I would like to add a custom uninstall action that checks certain conditions and optionally cancels the uninstallation. Is that possible? As far as I figured out, it's only possible to define custom actions that cannot influence the main installer itself. ...

Using .NET for Windows Forms based Product Development

.NET has become a popular technology among software developers and comsumers. I was thinking if it would be a wise decision to develop a Windows Forms based product in .NET that can be downloaded by thousands of customers around the world. The real problem could be the framework installation that has grown considerably with the .NET vers...