.net-3.5

Performance of .Net 2.0 vs .Net 3.5

Microsoft claims that the .Net 3.5 framework has many speed improvements over 2.0. Is anyone able to verify this claim? I am especially interested in computational type stuff (math, graphics, etc), but also more generally? ...

Run c# 3 app without .Net Framework installed????

This may seem like a dumb question, but can an app build with c# 3 (.Net Framework 3.5) be built and deployed to a machine that does not have the 3.5 framework installed? i.e. does bin deployment work for System.Core and other 3.5 dlls? I would really like to build my app using lambdas, linq, Func etc. but my client is not allowed to in...

Looking for a .NET 3.5 / J2EE architecture concept comparison article/chart

We are thinking about combining .NET technology with Java technology (WCF, JBoss/ESB, MOM, WPF, WF) and I need to have a high-level idea of what are the apples and oranges in the .NET 3.5 and Java worlds. Does anyone know of a good, clear article or better yet a simple chart which answers questions such as: WCF in the Java world is _...

Offline .NET 3.5 Documentation

Where can I download a chm file containing .NET 3.5 API Documentation? It seems is not available in msdn! ...

need wcf and wpf application source code for beginer

Hi, I am beginner for .net 3.5, have to work on app where I need to build desktop version as well as web version for selected modules like reporting. I think WCF will help me out to create a base from where I could call functions in both(desktop as well as web ) Please let me know the any available source code sample projects to go thr...

<ColumnDefinition Width="*" /> not respected in DataTemplate

I have a WPF ListBox with a defined DataTemplate. In that template, I have a grid, where the first column width should take up all remaining room in the grid. This seems to work outside the ListBox, but not inside. Why is that, and how can I get it to behave the same? Here is my code. See line 36, and line 70 <UserControl x:Class="Ru...

Upgrade to 3.5 SP1 & 3.5 Family Update on client systems can break my code?

I have a server hosting a remoting application using .NET 3.5. It has been running fine. In the last couple of days I have had numerous reports of users not being able to access the application after running the "Microsoft .NET Framework 3.5 Service Pack 1 and .NET Framework 3.5 Family Update (KB951847) x86" update. I am tempted to ru...

Linq to SQL and Collection operations

I have a Dictionary which I'd like to use like an IN clause within a SQL query. I have a Linq-To-SQL query where I would like to use this Dictionary's Keys to check fields in the rows for the query. E.g. bool result = DataContext.Table.Any(res => MyDictionary.ContainsKey(res.field1)); In effect this is similar to exists(sel...

Creating an installer, error The Folder path '.' contains an invalid character.

I am trying to make an installer for a project I did not write, and I use the wizard to create the setup. Program Files Folder contains a favicon.ico, a custom dll, and Primary output from the project. Whenever I build the installer and try to run it I get a, "The folder path '.' contains an invalid character." and the installer aborts....

Can I handle a key up event even when grid view isn't focused?

I have a Data Grid View inside a control that is displayed in a certain area in an application. I'd like this activity grid to refresh when F5 is pressed. It's easy enough to do this when the Activity Grid View is the currently focused element on the screen by handling the Key Up event, but this obviously doesn't work when another elem...

Running an installer or checking to see if a program is installed

I have a program that I want to use as an autorun. I want it to be able to do three things. It needs to check to see if a specific program is installed, if it is not, present the user with the option to install it. Second, if the program is installed, present the user with the option of running it and uninstalling it, third, present the ...

Using PowerShell with .NET 3.5 runtime/libraries

Is it possible to run PowerShell 1.0 (or 2.0 CTP) backed by the 3.5 runtime instead of 2.0? We're building a .NET 3.5 solution, and I'd still like to use PowerShell as our scripting engine for scheduled tasks, etc. I don't need LINQ syntax or anything, just the 3.5 libraries and runtime. FOLLOWUP: thank you for the reply about dynam...

Saving Install Path to registry

I'm creating an installer and I want it to set a registry value with the location of were the user installs the program at. How can I do that? ...

Self-Updating .NET client application which needs to write in the Program File folder

Similar to: http://stackoverflow.com/questions/17533/request-vista-uac-elevation-if-path-is-protected#17544 I have a .NET Client Application installed in c:\Program Files (Windows Vista). This application should update itself, but it doesn't because of permission issues. The auto-updater should simply replace a couple of assemblies, but...

ClickOnce: The required version of the .NET Framework is not installed on this computer

I have been getting the error "The required version of the .NET Framework is not installed on this computer." (Event Id 4096 in Event log) when trying to install a VSTO application from both a ClickOnce deployment and a local copy. This is interesting as the .NET framework is installed (on my 32bit Windows 7 PC) and the VSTO application ...

How To Write CRUD Unit Tests for Moq and Linq-to-Sql

I am just getting involved in Moq and unit testing, so forgive me if this seems obvious (a quick search through SO didn't show me anything like this). I have an interface with the following proposed member: void AddFeed(Feed feed); That I would like to write a unit test for this functionality. The test class has a Moq Repository decl...

Is there a function that returns the root letter for special chars?

Hi guys, in .NET is there a function that returns the root letter (the letter without special attributes like cedilla), kinda: Select Case c Case "á", "à", "ã", "â", "ä", "ª" : x = "a" Case "é", "è", "ê", "ë" : x = "e" Case "í", "ì", "î", "ï" : x = "i" Case "ó", "ò", "õ", "ô", "ö", "º" : x = "o" Case "ú", "ù", "û", "ü" : x = ...

Google and Microsoft install applications in the AppData Folder, why not me?

Is it acceptable to install an application in the AppData folder? Both Google Talk & Chrome are not installed in the default Program Files folder. They get installed in user's AppData folder. Microsoft does the same thing with ClickOnce... I would like to my application to self-update, but when installed in Program Files folder, it fai...

Selectively filling a dataset

I need to change what rows are grabbed from the database based upon a few flags. How can I do this? My current code is like this: this.tblTenantTableAdapter.Fill(this.rentalEaseDataSet.tblTenant); Say if I wanted only rows that the id was greater than 50, how would I do that? Edit: The code to access the database was autogenerated b...

LINQ: Using INNER JOIN, Group and SUM

I am trying to perform the following SQL using LINQ and the closest I got was doing cross joins and sum calculations. I know there has to be a better way to write it so I am turning to the stack team for help. SELECT T1.Column1, T1.Column2, SUM(T3.Column1) AS Amount FROM T1 INNER JOIN T2 ON T1.T1ID = T2.T1ID INNER JOIN T...