473,396 Members | 2,004 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,396 software developers and data experts.

My first app (what about runtime)

Hi,

i created my first application with c# (normally i am programming the
other language where C# borrowed from) and i am impressed about the IDE
and the language itself. I used the Whidbey C# Express Beta.

But because i am a newbie, my questions is also quite beginner like. I
created a screensaver with c# and want to test it on another machine
than my development machine.

I tested on XP and 2000 without any .NET runtimes installed and got an
Error Window on XP and a not running screensaver on 2000 without any
Error Windows at all.

I assume that these errors are there because the target machine cant
execute the code thus lacking a Runtime correct? If this is the case, do
i have to install a 23Mb Microsoft .NET Framework Version 1.1
Redistributable Package just to execute my ScreenSaver? This wouldnt be
a good choice, because nobody like downloading a 23+1 MB large Screensaver.

Can someone gimme some infos about this issue?

Thanks.

marc
Nov 16 '05 #1
7 1190
Marc Logemann <sp***@logemann.org> wrote:
i created my first application with c# (normally i am programming the
other language where C# borrowed from) and i am impressed about the IDE
and the language itself. I used the Whidbey C# Express Beta.

But because i am a newbie, my questions is also quite beginner like. I
created a screensaver with c# and want to test it on another machine
than my development machine.

I tested on XP and 2000 without any .NET runtimes installed and got an
Error Window on XP and a not running screensaver on 2000 without any
Error Windows at all.

I assume that these errors are there because the target machine cant
execute the code thus lacking a Runtime correct? If this is the case, do
i have to install a 23Mb Microsoft .NET Framework Version 1.1
Redistributable Package just to execute my ScreenSaver? This wouldnt be
a good choice, because nobody like downloading a 23+1 MB large Screensaver.

Can someone gimme some infos about this issue?


If you've built the application using Whidbey, it's probably expecting
the v2.0 framework rather than the v1.1 framework. I suspect the
redistributable for v2.0 will be about the same size.

Bear in mind that as .NET becomes more prevalent, more people will have
the framework. Many people will already have it due to using Windows
Update, and I wouldn't be surprised if XP SP2 contained the 1.1
framework, too.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2
Jon Skeet [C# MVP] wrote:
I assume that these errors are there because the target machine cant
execute the code thus lacking a Runtime correct? If this is the case, do
i have to install a 23Mb Microsoft .NET Framework Version 1.1
Redistributable Package just to execute my ScreenSaver? This wouldnt be
a good choice, because nobody like downloading a 23+1 MB large Screensaver.

Can someone gimme some infos about this issue?

If you've built the application using Whidbey, it's probably expecting
the v2.0 framework rather than the v1.1 framework. I suspect the
redistributable for v2.0 will be about the same size.

Bear in mind that as .NET becomes more prevalent, more people will have
the framework. Many people will already have it due to using Windows
Update, and I wouldn't be surprised if XP SP2 contained the 1.1
framework, too.


How can i check if a Runtime (whatever version) is installed on my system?

How can i define that my app should use 1.1 instead of 2.0 in the IDE?

Could this solve my problem regarding distribution?
(http://www.remotesoft.com/linker/index.html)

Thanks.

Marc
Nov 16 '05 #3
The runtime is a prerequisite for running .NET managed applications.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Marc Logemann" <sp***@logemann.org> wrote in message
news:eS*************@TK2MSFTNGP11.phx.gbl...
Hi,

i created my first application with c# (normally i am programming the
other language where C# borrowed from) and i am impressed about the IDE
and the language itself. I used the Whidbey C# Express Beta.

But because i am a newbie, my questions is also quite beginner like. I
created a screensaver with c# and want to test it on another machine
than my development machine.

I tested on XP and 2000 without any .NET runtimes installed and got an
Error Window on XP and a not running screensaver on 2000 without any
Error Windows at all.

I assume that these errors are there because the target machine cant
execute the code thus lacking a Runtime correct? If this is the case, do
i have to install a 23Mb Microsoft .NET Framework Version 1.1
Redistributable Package just to execute my ScreenSaver? This wouldnt be
a good choice, because nobody like downloading a 23+1 MB large Screensaver.
Can someone gimme some infos about this issue?

Thanks.

marc

Nov 16 '05 #4
Marc Logemann <sp***@logemann.org> wrote:
How can i check if a Runtime (whatever version) is installed on my system?
As a user, the easiest way is to look in the Windows directory for
another directory called "Microsoft .NET". If it's there, look in the
Framework directory inside it to see what versions are installed.

Programatically, you can get an installer to either install the
framework directly or point the user at the appropriate MS website -
IIRC, you put the framework as one of the dependencies of the
installer.
How can i define that my app should use 1.1 instead of 2.0 in the IDE?
I don't know how to do it in Whidbey, as I don't have that installed. I
suspect it'll be entirely different from in VS.NET2003, where it's a
bit clunky.
Could this solve my problem regarding distribution?
(http://www.remotesoft.com/linker/index.html)


Possibly

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #5
Jon Skeet [C# MVP] wrote:
Programatically, you can get an installer to either install the
framework directly or point the user at the appropriate MS website -
IIRC, you put the framework as one of the dependencies of the
installer.
Yeah, i created an installer which checks for some registry entries
regarding .NET Framework, so this issue is solved.
How can i define that my app should use 1.1 instead of 2.0 in the IDE?

I don't know how to do it in Whidbey, as I don't have that installed. I
suspect it'll be entirely different from in VS.NET2003, where it's a
bit clunky.


is someone here who can comment on Whidbey on this one. Because i just
discovered that my resulted Application needs in fact 2.0, but 1.1 would
be sufficient, but i dont know a way how to define that inside VS, so
that the its building based on 1.1

Come on, there are some beta testers out arent? ;-)

THanks.
Nov 16 '05 #6
Marc Logemann <sp***@logemann.org> wrote:
Programatically, you can get an installer to either install the
framework directly or point the user at the appropriate MS website -
IIRC, you put the framework as one of the dependencies of the
installer.


Yeah, i created an installer which checks for some registry entries
regarding .NET Framework, so this issue is solved.


Rather than create your own, why not use the install action supplied
with VS.NET?

<snip>

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #7

"Marc Logemann" <sp***@logemann.org> wrote in message
news:OP**************@TK2MSFTNGP09.phx.gbl...
Jon Skeet [C# MVP] wrote:
is someone here who can comment on Whidbey on this one. Because i just
discovered that my resulted Application needs in fact 2.0, but 1.1 would
be sufficient, but i dont know a way how to define that inside VS, so that
the its building based on 1.1

Come on, there are some beta testers out arent? ;-)

You can't build v1.0 or 1.1 compatible assemblies using vs2005.
You can't run programs built with vs2005 Beta on anything lower than the
v2.0 CLR is is built against.
You can run v1.0/1.1 programs on a higher version CLR than the one they are
built against.

Nota also that you better post VS2005 beta questions to the
Microsoft.Private.Whidbey NG's, this NG are for released products, not for
beta drops.

Willy.

Nov 16 '05 #8

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

Similar topics

3
by: A Future Computer Scientist | last post by:
I've gone through the newsgroups and I don't think I found the answer to my question. My question does anyone know the coding to show a form at runtime if it's not the first form created, since...
2
by: Dennis | last post by:
The setup: Windows XP Pro Python 2.3 GTK+ 2.2.1.2 and pyGTK 1.99.17 for Python 2.3 from http://www.pcpm.ucl.ac.be/~gustin/win32_ports/ I've downloaded and installed per the instructions the...
8
by: Robert Gravereaux | last post by:
I've noticed that the first exception thrown/caught by an app running in debug is very slow - it takes perhaps 7 or 8 seconds on my P4 machine. I've noticed this on several different machines...
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
2
by: bonk | last post by:
Hello, I am currently trying to wrap my head around what actually happens when I compile a normal (native) c++ class with the /CLR Flag in Visual C++ 2005 (C++/CLI). Suppose I have the...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
8
by: Olivier BESSON | last post by:
Hello, VB.NET 1.1 IIS 6 I'm developping a winform client app of a web service of mine. I used to set the IDE with "halt in debugger" on "common language runtime exceptions". Every time i...
6
by: rn5a | last post by:
The different Page events in the page life cycle like Page_PreInit, Page_Init, Page_Load etc. - are they different stages of the runtime process? Does a server send back the HTML output of an...
5
by: sniipe | last post by:
Hi, I have a problem with unicode string in Pylons templates(Mako). I will print first char from my string encoded in UTF-8 and urllib.quote(), for example string 'ukasz': ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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,...
0
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...
0
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

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.