.NET 1.1 and .NET 2.0 compatibility question


I

intrader

Is it possible to run assemblies generated for .NET 1.1 under .NET 2.0?

I am not sure I am expressing the question properly. The situation is
that we have some developers using Visual Studio 2003 and others using
Visual Studio 2005. Both groups are generating Windows Forms and Web
Applications; the IIS for each group is configured appropriately with as
to the version of the framework. The clients are are also segregated as
to the version of the framework.

We would like to configure the clients and the servers with .net 2.0
framework. Will the clients and IIS run .NET 1.1 assemblies?

Thanks
 
Ad

Advertisements

M

Michael Nemtsev

Hello intrader,

i> Is it possible to run assemblies generated for .NET 1.1 under .NET
i> 2.0?

Yes

i> I am not sure I am expressing the question properly. The situation is
i> that we have some developers using Visual Studio 2003 and others
i> using Visual Studio 2005. Both groups are generating Windows Forms
i> and Web Applications; the IIS for each group is configured
i> appropriately with as to the version of the framework. The clients
i> are are also segregated as to the version of the framework.
i>
i> We would like to configure the clients and the servers with .net 2.0
i> framework. Will the clients and IIS run .NET 1.1 assemblies?

First, you can specify the version of ASP.NET handler that IIS use
Second, you can specify the desired assembly version in your app config

---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
I

intrader

Michael said:
Hello intrader,

i> Is it possible to run assemblies generated for .NET 1.1 under .NET
i> 2.0?

Yes

i> I am not sure I am expressing the question properly. The situation is
i> that we have some developers using Visual Studio 2003 and others
i> using Visual Studio 2005. Both groups are generating Windows Forms
i> and Web Applications; the IIS for each group is configured
i> appropriately with as to the version of the framework. The clients
i> are are also segregated as to the version of the framework.
i> i> We would like to configure the clients and the servers with .net 2.0
i> framework. Will the clients and IIS run .NET 1.1 assemblies?

First, you can specify the version of ASP.NET handler that IIS use
Second, you can specify the desired assembly version in your app config

---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche
As I understand your answers:
1. NET2.0 runs NET1.1 assemblies runwithout change except that the app
config must state whether assembly is 1.1 or 2.0. (by the way does this
affect the build?)
2. IIS must be configured for a virtual directory to use the appropriate
handler.

Is this correct? or am I still not understanding?

Thanks
 
M

Michael Nemtsev

Hello intrader,

i> Michael Nemtsev wrote:
i>i> As I understand your answers:
i> 1. NET2.0 runs NET1.1 assemblies runwithout change except that the
i> app
i> config must state whether assembly is 1.1 or 2.0. (by the way does
i> this
i> affect the build?)

Both version works fine side-by-side, in you 2.0 app u can just reference
to the desired 1.1 class library and to work without problems.
Redirect is required when u have the same library but build in different
versions

i> 2. IIS must be configured for a virtual directory to use the
i> appropriate
i> handler.

Yep, as I remember u need just specify the version of aspnet.dll for your
virtual folder

---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Ad

Advertisements

I

intrader

Michael said:
Hello intrader,

i> Michael Nemtsev wrote:
i>
i> As I understand your answers:
i> 1. NET2.0 runs NET1.1 assemblies runwithout change except that the
i> app
i> config must state whether assembly is 1.1 or 2.0. (by the way does
i> this
i> affect the build?)

Both version works fine side-by-side, in you 2.0 app u can just
reference to the desired 1.1 class library and to work without problems.
Redirect is required when u have the same library but build in different
versions

i> 2. IIS must be configured for a virtual directory to use the
i> appropriate
i> handler.

Yep, as I remember u need just specify the version of aspnet.dll for
your virtual folder

---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche
Thank you; most helpful
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top