473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Performance hit running 1.1 assembly in 2.0?

I have a web site built using ASP.NET 2.0 and Visual Studio 2005. If also
have a C# assembly that was compiled using VS 2003, so this assembly runs
under the 1.1 framework.

If I use this assembly built for the 1.1 framework within my web app that
uses the 2.0 framework, is there any performance penalty incurred here? In
other words, am I creating some sort of "cross boundary" communication that
has to occur between the 2.0 framework and 1.1 framework? Or is there no
performance penalty and just a matter of the 1.1 code not having access to
specific features of the 2.0 framework.

The dilemma I have is that I have to redistribute to developers my C# class
library. Some developers are building ASP.NET 2.0 apps, while others are
using 1.1. I do NOT want to wind up creating separate installations, one
that has my 2.0 compiled assembly and another that has my 1.1 compiled
assembly.

I could do this within one installer package and dynamically determine the
..NET framework and install the appropriate version of my assembly
accordingly. However even this approach has major problems. Specifically,
I could easily see how someone would install on a ASP.NET 2.0 machine, and
then wind up transferring my assembly DLL to another machine that only had
the 1.1 framework which from what I understand would break things. Or
likewise they may install on 1.1 and then transfer the DLL to a 2.0 machine
and never realize the assembly was really running under the 1.1 framework on
that machine despite their app using 2.0.

What is a developer to do?

Steve
Nov 19 '05 #1
1 1111
Answered in the framework NG.
"Steve Franks" <pl****@postreplyhere.com> wrote in message
news:cZ********************@comcast.com...
I have a web site built using ASP.NET 2.0 and Visual Studio 2005. If also
have a C# assembly that was compiled using VS 2003, so this assembly runs
under the 1.1 framework.

If I use this assembly built for the 1.1 framework within my web app that
uses the 2.0 framework, is there any performance penalty incurred here?
In
other words, am I creating some sort of "cross boundary" communication
that
has to occur between the 2.0 framework and 1.1 framework? Or is there no
performance penalty and just a matter of the 1.1 code not having access to
specific features of the 2.0 framework.

The dilemma I have is that I have to redistribute to developers my C#
class
library. Some developers are building ASP.NET 2.0 apps, while others are
using 1.1. I do NOT want to wind up creating separate installations, one
that has my 2.0 compiled assembly and another that has my 1.1 compiled
assembly.

I could do this within one installer package and dynamically determine the
.NET framework and install the appropriate version of my assembly
accordingly. However even this approach has major problems.
Specifically,
I could easily see how someone would install on a ASP.NET 2.0 machine, and
then wind up transferring my assembly DLL to another machine that only had
the 1.1 framework which from what I understand would break things. Or
likewise they may install on 1.1 and then transfer the DLL to a 2.0
machine
and never realize the assembly was really running under the 1.1 framework
on
that machine despite their app using 2.0.

What is a developer to do?

Steve

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Gustavo L. Fabro | last post by:
Greetings! Getting straight to the point, here are the results of my experiment. I've included my comments and questions after them. The timing: (The total time means the sum of each line's...
133
by: Gaurav | last post by:
http://www.sys-con.com/story/print.cfm?storyid=45250 Any comments? Thanks Gaurav
1
by: Peter Bär | last post by:
A Question to the C#/.Net Gods of this forum: are there performance penalties when i compile (C#, FW1.1, ASP.NET, Studio2003) a central baseclass in a different assembly than all the derived...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
2
by: Peter Bär | last post by:
A Question to the C#/.Net Gods of this forum: are there performance penalties when i compile (C#, FW1.1, ASP.NET, Studio2003) a central baseclass in a different assembly than all the derived...
2
by: brian.gabriel | last post by:
I have a core web service that acts as a gateway for several third party web services. Each one of the third party web services has it's own "interface" class derived from a main interface. When...
7
by: Peter Ritchie | last post by:
I'm writing a Web Service and I would like to add performance counter data for monitoring performance of the Web Service's operations over time and load. The problem is, I get the "Requested...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.