Questions tagged [.net-2.0]

The 2.0 version of the .NET Framework. For questions on .NET Framework generally, use the .net tag.

The 2.0 version of the .NET Framework.

What's New in the .NET Framework 2.0
.NET Framework 2.0 System Requirements

Released by Microsoft Corporation
Version Number: 2.0.50727.42
Release Date: 2005-11-07

2578 questions
1
vote
2 answers

How can I get a list of all users that belong to a specific department from Active Directory?

Here's what I'm trying to do: I want to get a list of all users and groups that belong to a specific department (entered by the user) from Active Directory using VB.Net and DirectoryServices. Any suggestions?
Jason Towne
  • 8,014
  • 5
  • 54
  • 69
1
vote
2 answers

.Net Equivalent of set_unexpected()

Is there a .net equivalent to the C++ unexpected()/set_unexpected() functionality? Edit: Sorry--I omitted some details previously: Language: C# 2.0 I have some legacy apps that seem to be throwing some unhandled exception somewhere. I just want…
Onorio Catenacci
  • 14,928
  • 14
  • 81
  • 132
1
vote
1 answer

DateTime encryption and decryption, System.Text.Encoding.Unicode.GetBytes and System.Text.Encoding.Unicode.GetString not working as expected?

I have a minimal class to encrypt and decrypt DateTime objects without a time component. The test below would work for 1988 Jan 01, but fail for 1988 Jan 02, ie. the first iteration passes but the second fails already. It seems my problem is…
BuZz
  • 16,318
  • 31
  • 86
  • 141
1
vote
3 answers

Visual Studio 2008 - .NET 2.0 targeted application won't run in XP (mscorwks.dll could not be loaded)

I have a .NET 2.0 targeted C# windows forms application that is running fine on XP when .NET 3.5 is installed. However, when .NET 2.0 only is installed I get the error: "WindowsFormsApplication1.exe - .NET Framework Initialization Error" -…
Alan Spark
  • 8,152
  • 8
  • 56
  • 91
1
vote
1 answer

Amazon EC2 multiple servers share session state

I have a bunch of EC2 servers that are load balanced. Some of the servers are not sharing session, and users keep getting logged in and out. How can I make all the server share the one session, possibly even using a partitionresolver solution …
Theofanis Pantelides
  • 4,724
  • 7
  • 29
  • 49
1
vote
2 answers

running asp.net 3.5 and asp.net 2.0 in same site

We're running ASP.Net 2.0 on our corporate web site, and I'd like to get it up to ASP.Net 3.5 as smoothly as possible. The project/solution architecture in VS 2005 is an ASP.Net 2.0 web project and an .Net 2.0 data access layer project which is…
cori
  • 8,666
  • 7
  • 45
  • 81
1
vote
2 answers

Strongly Typed Resources Causing Problems?

In the middle of some refactoring and I've moved a resources file from one project to another. I think I clicked a warning telling me to Strongly type the resource file at one point and now I'm getting: Could not find any resources appropriate…
Rob Stevenson-Leggett
  • 35,279
  • 21
  • 87
  • 141
1
vote
1 answer

can we use ColorPicker Ajax Control in asp 2.0?

Use of ColorPickerExtender in asp 2.0 Provide Example
Khilen
  • 1,009
  • 2
  • 15
  • 27
1
vote
1 answer

What is the most efficient way signal to multiple consumer threads that there is data available from a single producer thread?

I have a data source which will provide data regularly for N listeners. I can control access to the data using a ReaderWriterLock but what should be used to signal all listeners that they can simultaneously acquire a copy of that data for their own…
Jon Cage
  • 36,366
  • 38
  • 137
  • 215
1
vote
0 answers

Force whitespace escape in XML serialization

Is it possible to force the XmlSerializer to serialize a class like the following: public class Dummy { public string SomeString = " hello world "; } in something like this:
sblandin
  • 904
  • 4
  • 11
  • 25
1
vote
3 answers

What is the best way to print a report to PDF in ASP.Net?

I have a complicated report that I need to draw with GDI+ (I don't know of a better way) with multiple pages and have it save to PDF so the user can download. What is the best way to do this?
Max Schmeling
  • 12,363
  • 14
  • 66
  • 109
1
vote
2 answers

How can one change a Windows 2000 computer name in .NET 2.0?

I'm trying to change a computer's name (host name) on Windows 2000 using .NET 2.0. The computer is not joined to a domain. Windows XP and higher provides the WMI method Win32_ComputerSystem.Rename, but this is not available in Windows 2000…
Stephen Jennings
  • 12,494
  • 5
  • 47
  • 66
1
vote
1 answer

How to Xml serialize a LinkedList?

.NET 2 Actually there are methods to XML serialize a List. What if I have an object that has a public LinkedList member? Without creating a public duplicate as List from LinkedList. Maybe a way to control the Xml serialization like…
serhio
  • 28,010
  • 62
  • 221
  • 374
1
vote
2 answers

.Net CF Initialization Error

I have a windows CE app that built it with MS VS 2008 smart device .NET 3.5. after transmit this app to hand held i see below error. .Net CF Initialization Error "the application field to load required components. if the .NET compact…
Hamid Talebi
  • 1,298
  • 2
  • 24
  • 42
1
vote
1 answer

Is there a recommended ASP.NET 2.0 method to serve HTML snippets via XHR to the client?

Here is my desired flow: A static web page (html) uses XHR calls to an ASP.NET page The .NET page retrieves information from a remote server using web services The .NET page returns an HTML "snippet" that is inserted into the static HTML page I'm…
JayTee
  • 2,776
  • 2
  • 24
  • 27
1 2 3
99
100