.net

Merging GUI changes

In the projects I work in, it seems the biggest problem with Merging changes is in the Windows Forms/GUI changes. We use Araxis Merge to compare the changes, but it can be hundreds of changes per file. And you have have to make notes and/or rename items to make sure you know what you are merging. A big problem is if developers allow n...

ItemsSource type requirements for Silverlight 3 DataForm automatic Add/Delete buttons

What types can I bind to the ItemsSource property of the DataForm control in the Silverlight 3 Beta and automatically get the Add and Delete buttons to show on the control? I am making an application with RIA Services. I do have working add and delete methods in my domain service. I bound an EntityList of Contacts from the DomainContex...

How to restrict .Net Assembly to Run on Particular Machines

We have a server application that we want to restrict non-users from triggerring it off from other machines or even by double-clicking from any share. However, it should be easy for dev's to run it on their boxes. What are the various ways to enforce this policy? ...

How to attach the new Process instance to the existing process?

Hello, I have some process running. And I know its processId. I need to create a new Diagnostics.Process instance to attach to that known process. How to do that? Languages - VB.Net or C# ...

Why doesn't this WPF code generate a context menu?

Perhaps I'm having a Post-Ballmer-Peak Moment. I'm hoping that someone can help point out the obvious to me. Why does this code generate a context menu on right click: <Canvas Background="Transparent"> <Canvas.ContextMenu> <ContextMenu> <TextBlock>WTF?</TextBlock> </ContextMenu> </Canvas.ContextMenu> </Canvas> And ...

Hudson Continuous Integration Server with .Net 1.1

Has anyone successfully used hudson to build .Net 1.1 Projects? If so, can you share the configuration. I am having trouble. Hudson uses MSBuild which was introduced with .Net 2.0. I found MSBee which is a MSBuild toolkit for 1.1 but so far I have not got it to work with Hudson. I point Hudson at the 2.0 MSbuild after installing MSBee a...

Is there a .net library for parsing relative web addresses?

I am writing a search engine (why not hey?) and need to handle navigating relative urls such as "../about.aspx", "/about.aspx" "about.aspx" etc Is there anything out there or in the .Net Library's which can convert these to absolute addresses? ...

best Obfuscation tool for asp.net

Duplicate Best .NET obfuscation tools/strategy I used dotfuscator community edition to obfuscate my sample application with some third party tool(like Telerik RadGrid controls) ,but it showing some errors,which has no solutions for that . i want to know which one is the best obfuscation tool for dotnet . ...

Where and how should I save license related information?

I have an application (C#) and I am tasked with putting some simple licensing scheme in it. While doing that I need to save that information somewhere in computer to limit the usage. I need to save a date and a counter. How and where I should save the information which, on Windows Vista, doesnt require administrative privileges to run?...

Why does the .NET tab in the 'Add Reference' dialog in Visual Studio not list the contents of the GAC?

Duplicate of: Getting assemblies to show in the .NET tab of Add Reference So, I'm using Visual C# 2008 Express Edition and I've just been on a bit of a detour as I found out that my assumption that the .NET tab of the 'Add Reference' dialog lists the contents of the GAC was incorrect. This was a bit of a problem for me as the assembly...

Uninstall_Init / Uninstall_Exit How do i get access to them in C#

To get your windows mobile certified one of the requirements is that you implement these functions to get certified. I personally would love to use these functions to clean up the application data folder. I have been searching the Internet and i was only able to find a sample that was based on c++ / vb( link ) and is from 2004. Is there...

Where to find .Net ORMs comparison with numbers or charts?

Where to find .Net ORMs comparison with numbers or charts? I am building a new websites, will work on arranging images and manipulate images online, so it will contain a lot of images, and sure many images make the website pages load slower. So the speed of the data access layer very important for me, and i am searching for an ORM beca...

Castle Windsor resolving and generics

Hi guys I have the following: public interface ISubject { ... } public class Subject<T> : ISubject { ... } public class MyCode<T> { ... pulic void MyMethod() { var item = container.Resolve<ISubject>(); //????? how do I pass in T } ... } In this case how do i do the resolve. Cheers Anthony ...

Handling same event in more than one states in Workflow Foundation

I'm using StateMachine Workflow. There are scenarios where same event can be fired in more than one states in workflow. I want to know if i can handle same event in more than one states? ...

Repeat mstest test run multiple times

Some of my mstest unit tests help detect multi-threading race conditions, and as such they are most useful when run many times in a row, but I only want to do this for specific test runs -- not all the time. Is there a way to configure mstest (in the Test List Editor preferably) to run a test multiple times? ...

.net 3.5 Client Profile. Completly useless? Am i missing something?

(NOTE: sory for my not so good English) I'm currently evaluating the .net client profile for a future project, and there are some things I've found that I think make it pretty useless, unless I am missing something of course. I've installed the client profile on a clean xp vm. When I developed a small test winform app (with compilation...

LINQ performance - deferred v/s immediate execution

I have seen that sometimes the performance of LINQ to Objects queries can be improved significantly if they forced to execute immediately by using .ToArray(), but can't quite understand why. For example, in the sample below, the execution of the function Deferred() is much slower than the function Immediate(), and grows exponentially wit...

Saving a web page from IE using Powershell

I use the automation interface of Internet Explorer from Powershell to open a web page in a supported format. I want to save this page back to disk in one of the formats supported by IE. Opening the page is easy: $ie = New-Object -ComObject "InternetExplorer.Application" $ie.Navigate("C:\MyFile.mht") How do I save it back in another f...

Dynamically generating RDLC - What stops me from using a StringBuilder for building the XML

Hi I'm building a Local Report. Because of some limitations of the Hidden property, I need to dynamically generate the report. I found some documentation here. The ReportViewer Control needs a stream. I don't really like the method that's used in the documentation. And building an XmlDocument isn't very readable imo. Is there some...

Better way to do this LINQ to XML query?

So say I have this XML file: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <Root> <Category Name="Tasties"> <Category Name="Pasta"> <Category Name="Chicken"> <Recipe Name="Chicken and Shrimp Scampi" /> <Recipe Name="Chicken Fettucini Alfredo" /> </Category> <Category Name="Beef"> ...