.net-3.5

Change .NET Framework version of application pool to 3.5?

I've installed .NET Framework 3.5 SP1 on web server (Server 2008 Enterprise), so running IIS 7.0. I want to change the version of .NET Framework used by an existing site. So I right-click on appropriate Application Pool and selected Edit Application Pool. The .NET Framework dropdown does not include an explicit entry for framework 3.5...

Named string formatting in C#

Is there any way to format a string by name rather than position in C#? In python, I can do something like this example (shamelessly stolen from here): >>> print '%(language)s has %(#)03d quote types.' % \ {'language': "Python", "#": 2} Python has 002 quote types. Is there any way to do this in C#? Say for instance: String.Fo...

Generic GDI+ Error

I have a Form being launched from another form on a different thread. Most of the time it works perfectly, but I get the below error from time to time. Can anyone help? at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) at System.Drawing.Bitmap..ctor(Int32 width, Int32 height) at System.Drawing.Icon.ToBitmap()...

Learning about Auto-Implemented Properties

I have the simple class using auto-implemented properies: Public Class foo { public foo() { } public string BarName {get; set;} } I obviously use the variable BarName throughout my class and now need to add logic when the property value is set (it must be all upper case, go figure). Does this mean that I need to now crea...

Using .Net Framework Source debugging

I'm getting a null-object exception deep within XsltCompiledTransform, and I'd like to use the .Net Framework Source debugging feature to see what isn't being initialized, but even after following the directions for enabling it, I can't figure out how to step into the .Transform() method and start spelunking. The tutorials I've found on...

Problems executing compiled 3.5 code on a server which only has the 2.0 framework.

EDITED WITH ANSWER I have been able to prove that you can in fact get LINQ to work running on a 2.0 sp1 server. It will not work at all without at least 2.0 SP1. But all you need is to include the following assemblies in your project. System.Core.dll System.Data.DataExtensions.dll System.Data.Linq.dll System.Web.Extensions.dll System...

What's the difference between ASP.Net MVC Routing and the new ASP.Net DynamicData Site routing?

I've only started playing with both ASP.Net MVC and the new-to-VS2008 Dynamic Data Website Templates. I note that they both use routing in their URL handling, and I'm given to understand that because of routing, ASP.Net MVC won't work under IIS6. However my DynamicData site works just fine on IIS6. I've had to temporarily abandon my e...

Where can I find a good tutorial describing how to leverage a SOAP web service from a Winforms application in .NET 3.5?

C# is my language of choice... rest is in the title ...

Is .NET WCSF the way to go?

We are in the process of building a web site which would display news headlines and news. It would be a public site to start with but going forward might include portal functionalities like personalized web pages. The site also needs to build web 2.0 features around the news stories being displayed, and needs to be extensible and highl...

Autocomplete Dropdown - too much data, timing out

So, I have an autocomplete dropdown with a list of townships. Initially I just had the 20 or so that we had in the database... but recently, we have noticed that some of our data lies in other counties... even other states. So, the answer to that was buy one of those databases with all towns in the US (yes, I know, geocoding is the answe...

What's new in SP1 for .NET 3.5

Is there an exact overview what has changed in the SP1 for .NET 3.5? New classes, methods, etc. For example, I've noticed there is a new WaitOne(TimeSpan) and WaitOne(int) overloads in the WaitHandle class. ...

Resources for working with video feeds in C#

I'm starting to get into a side project that I hope to pull in frames from several small IP cameras, perhaps do a bit of motion detection and redisplay them in a form with alerts. Does anyone have some good resources or similar projects that I could use to get acquainted with the ins and outs? I'm using C# 3.5 with SP1 in VS2008 ...

Method parameters value through Reflection

I am trying to log a method's parameters by using reflection. I read the earlier question posted about this issue on StackOverflow as well which pointed me to CLR API's. Is it possible, someone can point me to the right direction, as to how will I get the values of parameters passed using API? ...

Tools to develop WPF or Silverlight applications

List out the Tools and Utilities to develop Rich Interactive Application on Microsoft platform The recommendations should have some sort of direct relationship with either XAML or Silverlight/WPF and not the common .NET utilities. Expression Blend - XAML Development Expression Design - Graphic asset creation KaXaml, A cool and handy X...

Trouble deploying code written on VS2008 to server running .NET Framework 2.0

When I created the project I'm trying to deploy I selected that I wanted to target .NET Framework 2.0. After deploying the project I try to brows to it and get and error page that shows: <compilation debug="true"> <assemblies> <add assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089...

Initialized event of WPF UserControl not firing.

Hello, I've got a very simple WPF UserControl that looks like this: namespace MyUserControl { /// <summary> /// Interaction logic for UserControl1.xaml /// </summary> public partial class UserControl1 : UserControl { public UserControl1() { InitializeComponent(); } protected override void OnRender(Drawi...

Newely explained concepts in .net Framework 3.5.

We have developed our website(Business users website) in .net Framework 2.0 Our client us to migrate to .net Framework 3.5. I am not interested in developing the same thing in both the frameworks. Please anyone tell me some of the new features like card space, work flow, presentation foundation concepts in .net framework 3.5 and how w...

Is there a way to extract .NET 2.0 from the .NET 3.5?

.NET Framework 3.5 SP1 installs the .NET Framework 2.0 SP2 and the .NET Framework 3.0 SP2 behind the scenes. These installation packages (especially .NET Framework 2.0 SP2) are not available directly from Microsoft. Is there a way to extract them from the .NET Framework 3.5 SP1 installation package? ...

What is an efficient way to check the precision and scale of a numeric value?

I'm writing a routine that validates data before inserting it into a database, and one of the steps is to see if numeric values fit the precision and scale of a Numeric(x,y) SQL-Server type. I have the precision and scale from SQL-Server already, but what's the most efficient way in C# to get the precision and scale of a CLR value, or ...

How do I tell if .NET 3.5 SP1 is installed?

How can I find out if SP1 has been installed on a server which has .NET 3.5? ...