473,216 Members | 2,039 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,216 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 2725
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
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
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
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
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
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
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
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
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
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
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
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.