473,509 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2733
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
810
by: Ganesh | last post by:
Is there a utility by microsoft (or anyone) to force garbage collection in a process without have access to the process code. regards Ganesh
2
5848
by: Raquel | last post by:
FORCE APPLICATION command is valid only at the 'instance' level. Why is this so? An instance may contain many databases. So, what command do I give if I want to force applications from a particular...
1
2221
by: BuddyWork | last post by:
Hello, I want to know how I can force a GC to run outside the application. For example. App1 which is where I want the GC to be collected. I don't want to run GC.Collect within this...
8
16471
by: Keith H | last post by:
I'm looking for a way to force the user to re-authenticate with their Windows username/password/domain after clicking the submit button on an ASP.NET page. This is for an internal application. ...
5
7772
by: annagel | last post by:
I am looking for a way to force a Tkinter window into focus on a system level. I know the force focus method should bring one window of my application into focus, but it seems I need to have some...
2
2284
by: comp.lang.php | last post by:
class ReportGenerator { function ReportGenerator() {} /** * Generate the HTTP headers necessary for this file type. Can be called statically *
20
2189
by: Maurice | last post by:
Hi all, I have an application, designed in Visual Studio 2005, which will run mainly on Windows XP computers. If I run the application on a Windows XP computer having the Windows XP Theme...
0
2652
by: jinnareddy | last post by:
Hi, I'm unable to download a file that is having a 2-byte char in its name (e.g.テ) using force download option. Though, am able to download file names involving ASCII chars. I have tried URL...
3
3299
by: MarkusJNZ | last post by:
Hi, I have two different applications running on 2003 both in two different vitrual directories. One application runs on the .NET framework 1.1 whilst the other runs on 2.0. If I change the...
2
6530
by: wugon.net | last post by:
env: db2 LUW v8 + aix We encounter some java applications status did not change and keep in "Federated request pending" for a long time. we try issue db2 "force applications <handle id>" to...
0
7233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7342
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,...
0
7410
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.