.net-2.0

IEnumerable.GetEnumerator() returns IEnumVariant in Delphi 6

I am using a .Net2.0 Assembly in Delphi 6 via COM. One of the methods in one of the interfaces returns IEnumerable. As long as I import mscorlib.tlb located in "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727" , I can reach both IEnumerable and IEnumerator interfaces in Delphi 6. Here is the part where IEnumerable is defined in mscorlib...

Rendering Nested Server Controls

This should be relatively easy. I do not know why I am struggling with it, but Google cannot help me find an example of what I want to do. I am building a navigation/menu out a simple nested structure of ULs with LIs. The parent object that is placed on the page is called NavController. It has a collection of NavItems. So I pretty m...

Build VS2008 projects with .Net 2.0/.Net 3.5 using NAnt

I'm trying to write a build file to build a simple C# solution but it is failing with the error: Unknown task or datatype. My solution is written in VS2008 but targeted at .Net 2.0 (I'm using Vista if that helps). I've already seen the other question running-builds-using-net-3-5-msbuild-and-nantcontrib and have tried the suggested solu...

Visual Studio 2008 does not show any "obsolete"-warnings

Duplicate: http://stackoverflow.com/questions/577132/why-are-c-collection-properties-not-flagged-as-obsolete-when-calling-properties I just migrated a .NET 1.1 project to .NET 2.0 using Visual Studio 2008. I know that there are references to obsolete methods in the project. But Visual Studio does not show "obsolete"-warnings after buil...

.NET Type loadable from App.Config

How do I design a type that loads it's properties from the App.Config file in the same way that SMTPClient class, or a TraceListener would? What standards should I follow when doing this? ...

Is it possible to somehow upgrade .NET versions without upgrading Visual Studio versions?

I currently use Visual Studio 2005 for all my personal projects, which means I'm also working with the .NET 2.0 framework. As one could imagine, it's getting that outdated feeling to it. I got this version of VS for free through MSDN's academic alliance program when I was in school. Now that I'm out of school, I sadly don't have access t...

IIS Active Directory double handshake hickup

I have a .net 2.0 click-once application that connects to IIS web services on Windows 2003 R2 64-bits. The IIS is setup with Integrated Windows Authentication. So whenever a web service call is made to IIS web services, there is a double handshake taking place: Client Request #1 GetEmployeeList Server Response #1 <- 401 HTTP...

language setting for a website

How can I make a website multilingual? I want to create a website and in the home page i want the client to choose a language from English and Arabic. Then the whole website is converted to that language. What should I do to achieve this? I am creating this website in asp.net 2.0 with C# ...

ObjectDataSourceControl unable to find Type in imported namespace

I have an aspx page in a ASP.NET 2.0 application using several ObjectDataSources. They are all bound to the same class like so: <asp:ObjectDataSource ID="TitleDataSource" runat="server" OnSelecting="TitleDataSource_Selecting" SelectMethod="GetTitle" TypeName="DropDownDataSource"></asp:ObjectDataSource> This was working fine. Then I m...

Why is doing a .Net 2.0 build clean solution causing errors?

I have a .net Solution that creates a DLL. It it made up of two projects. (Side information one contains a number of my special functions/classes etc. written in VB.Net. The second is some functions/classes etc. that are specific to a client and these use my classes) After some this and that and the other work I can build and rebuild t...

Using .Net OnSerializingAttribute to alter variable names?

Hi, in order to obfuscate application code but still be able to use serialization to save application data, I want to map the names of all serialized members to custom serialization names. I know that I can achieve this by implementing the ISerizableInterface, but in the MSDN they suggest the use of OnDeserializedAttribute, OnSerializin...

Any idea why VS2008 crashes reliably at the end of a solution rebuild?

VS2008 SP1, Winforms solution, VB.NET, compiling for x86 and .NET v2 I have about a dozen projects in the solution, with a couple of Windows forms projects and some class libraries. If I rebuild the solution, it clears out and recompiles all the projects, as you'd expect... ... and then disappears without trace or error message. Sin...

How do i get row keys / cell values & call a method when a row is selected in the standard .net 2.0 Gridview

I have standard .net 2.0 gridview control from which i want to get row keys or cell values from the grid when a row is selected. I also need to call a method each time a row is selected. Does anybody know How i can do this using ASP.net & VB? ...

C# (.Net 2.0) Micro-Optimization Part 2: Finding Contiguous Groups within a grid.

I have a very simple function which takes in a matching bitfield, a grid, and a square. It used to use a delegate but I did a lot of recoding and ended up with a bitfield & operation to avoid the delegate while still being able to perform matching within reason. Basically, the challenge is to find all contiguous elements within a grid ...

Call .Net 3.5 WCF service from .Net 2.0 Standard ASMX Web Service Client

I create a service that is host on a server that have .Net 3.5 installed and I need to call this service from a client that only have .Net 2.0 installed Is there a way I can do this ? I'm using c# ...

.net 2.0 application in 64 bit processor ??

Hi, We are going to write a C# 2.0 (VS2005) application targetting 64-bit server. I found this link by ms http://support.microsoft.com/kb/912891#appliesto "When you run a 64-bit application that was built by using the .NET Framework, you may notice that the application uses more memory than a similar 32-bit application" I just want...

Unauthorized access when writing to file

I have a asp.net website where the users have the possibility to print a document. This document is first written to a folder on the server and then opened/printed by the client. When deploying the website on IIS server I did encounter a few times issues when a user tried to print the document. Apparently the IIS user on the server had i...

Extension Method in C# 2.0

What namespace do I need to get my extension to work Here is my Extension Method using System; using System.Collections.Generic; using System.Web; using System.Data; namespace MyUtilities { public static class DataReaderExtensions { public static DataTable ToDataTable(IDataReader reader) { DataTab...

Can you use a .net 3.5 DLL with a .net 2.0 website?

I have some DLLs that it would be much easier to use .net 3.5 internally (to take advantage of Linq, etc). I want to use these DLL with asp.net websites that are currently running asp.net 2.0. Is this scenario possible? Are there any restrictions or gotchas (e.g. asp.net doesn't make any calls to methods which return .net 3.5 objects l...

Command Line Compiling a Win Forms C# Application

I'm trying to create a script to compile an Windows Forms C# 2.0 project from the command line (I know, I know.. I'm reinventing the wheel.. again.. but if somebody knows the answer, I'd appreciate it). The project is a standard Windows Forms project that has some resources and references a couple external assemblies. Here is a list of...