471,337 Members | 845 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

how to force a .net application to use .net 2.0 ?

how to force a .net application to use .net 2.0 ?
this windows service is about 4 years old and im pretty sure is using .net
1.x runtime. Is there soem setting in the installer that says to use .net
2.0 instead of .net 1.0? this windows service is developed in visual studio
2002
Sep 21 '07 #1
10 2642
Daniel,

What is the impetus for changing the runtime? If it works, why change
it?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Daniel" <so*******************@yahoo.comwrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
how to force a .net application to use .net 2.0 ?
this windows service is about 4 years old and im pretty sure is using
.net 1.x runtime. Is there soem setting in the installer that says to use
.net 2.0 instead of .net 1.0? this windows service is developed in visual
studio 2002

Sep 21 '07 #2
Mel
Recompile the program using VS2005

"Daniel" <so*******************@yahoo.comwrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
how to force a .net application to use .net 2.0 ?
this windows service is about 4 years old and im pretty sure is using
.net 1.x runtime. Is there soem setting in the installer that says to use
.net 2.0 instead of .net 1.0? this windows service is developed in visual
studio 2002

Sep 21 '07 #3
anything before .net 2.0 does not support extended memory servers and 64 gig
server etc. even if you have the new windows serve with 64 gigs ram, .net
1.x apps have an upper bound of 2 gigs, and an even smaller upper bound of
memory per object. with memory fragmentation, can see out of memory even
earlier. its a waste of money to get a new windows server with 64 gigs ram
and use .net 1.x

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:uC**************@TK2MSFTNGP02.phx.gbl...
Daniel,

What is the impetus for changing the runtime? If it works, why change
it?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Daniel" <so*******************@yahoo.comwrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
>how to force a .net application to use .net 2.0 ?
this windows service is about 4 years old and im pretty sure is using
.net 1.x runtime. Is there soem setting in the installer that says to use
.net 2.0 instead of .net 1.0? this windows service is developed in visual
studio 2002


Sep 21 '07 #4
so regretfully many of us will have to upgrade to 2.0 when we hit memory
issues with 1.x :) :) :)

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:uC**************@TK2MSFTNGP02.phx.gbl...
Daniel,

What is the impetus for changing the runtime? If it works, why change
it?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Daniel" <so*******************@yahoo.comwrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
>how to force a .net application to use .net 2.0 ?
this windows service is about 4 years old and im pretty sure is using
.net 1.x runtime. Is there soem setting in the installer that says to use
.net 2.0 instead of .net 1.0? this windows service is developed in visual
studio 2002


Sep 21 '07 #5
You may find this thread http://www.thescripts.com/forum/thread381325.html
helps.

You seriously have a service which needs objects larger than 2 GB?

I think Mel is right, recommending rebuilding with the latest VS 2005.

"Daniel" wrote:
so regretfully many of us will have to upgrade to 2.0 when we hit memory
issues with 1.x :) :) :)

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:uC**************@TK2MSFTNGP02.phx.gbl...
Daniel,

What is the impetus for changing the runtime? If it works, why change
it?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Daniel" <so*******************@yahoo.comwrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
how to force a .net application to use .net 2.0 ?
this windows service is about 4 years old and im pretty sure is using
.net 1.x runtime. Is there soem setting in the installer that says to use
.net 2.0 instead of .net 1.0? this windows service is developed in visual
studio 2002


Sep 22 '07 #6
Dont worry it will work with .net 2.0.
if a system have .net 1.0/1.0/2.0 framework installed .then it will always
run with latest version .if u force to run it with .net 2.0 then syatem that
does not have .net 2.0 installed wil not able to run this application.
even if u want to force it to run only .net 2.0. .
go web.config and
and change the setting in
<?xml version = "1.0"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727/>
</startup>
</configuration>

"Mel" wrote:
Recompile the program using VS2005

"Daniel" <so*******************@yahoo.comwrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
how to force a .net application to use .net 2.0 ?
this windows service is about 4 years old and im pretty sure is using
.net 1.x runtime. Is there soem setting in the installer that says to use
.net 2.0 instead of .net 1.0? this windows service is developed in visual
studio 2002


Sep 22 '07 #7
"Family Tree Mike" <Fa************@discussions.microsoft.comwrote in
message news:87**********************************@microsof t.com...
You may find this thread http://www.thescripts.com/forum/thread381325.html
helps.

You seriously have a service which needs objects larger than 2 GB?
No, he doesn't, because no single version of the CLR allows you to create
such large objects anyway.

Willy.
Sep 22 '07 #8
I wasn't sure if 3.5 had changed any limits on a 64bit OS. I thought the
poster had implied he needed this.

"Willy Denoyette [MVP]" wrote:
"Family Tree Mike" <Fa************@discussions.microsoft.comwrote in
message news:87**********************************@microsof t.com...
You may find this thread http://www.thescripts.com/forum/thread381325.html
helps.

You seriously have a service which needs objects larger than 2 GB?

No, he doesn't, because no single version of the CLR allows you to create
such large objects anyway.

Willy.
Sep 22 '07 #9
Willy Denoyette [MVP] wrote:
"Family Tree Mike" <Fa************@discussions.microsoft.comwrote in
message news:87**********************************@microsof t.com...
>You seriously have a service which needs objects larger than 2 GB?

No, he doesn't, because no single version of the CLR allows you to
create such large objects anyway.
Strictly speaking the fact that it is not possible does not
imply that there is no need.

Arne
Sep 24 '07 #10
On Sep 22, 3:16 am, Som Nath Shukla
<SomNathShu...@discussions.microsoft.comwrote:
Dont worry it will work with .net 2.0.
if a system have .net 1.0/1.0/2.0 framework installed .then it will always
run with latest version .if u force to run it with .net 2.0 then syatem that
does not have .net 2.0 installed wil not able to run this application.
even if u want to force it to run only .net 2.0. .
go web.config and
and change the setting in
<?xml version = "1.0"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727/>
</startup>
</configuration>
Caution: Saying it will RUN under CLR 2 is NOT the same as saying it
will WORK under CLR 2!

I believe that there are sufficiently subtle differences, especially
in the platform invoke layer and cross thread control access that may
cause unexpected problems if the code is not regression tested
completely. And it's not web.config, it's exename.exe.config for a
windows service...

Sep 24 '07 #11

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Ganesh | last post: by
2 posts views Thread by Raquel | last post: by
1 post views Thread by BuddyWork | last post: by
8 posts views Thread by Keith H | last post: by
5 posts views Thread by annagel | last post: by
2 posts views Thread by comp.lang.php | last post: by
20 posts views Thread by Maurice | last post: by
reply views Thread by rosydwin | last post: by

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.