Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / May 2006

Tip: Looking for answers? Try searching our database.

Running a VS2003 App with .Net Framework 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert W. - 31 May 2006 03:30 GMT
I've built a C# WinForms app using VS2003.  I've just released it for Alpha
testing and am receiving reports back that it's not running on computers that
have the .Net Framework 2.0 but not 1.1.

So I did some research and read that I can resolve this by simply creating a
text file in my project, rename it to "App.Config" and place the following
inside:

<configuration>
  <startup>
     <supportedRuntime version="v1.1.4322"/>
     <supportedRuntime version="v2.0.50727"/>
  </startup>
</configuration>

I was hoping I could get verification (or the opposite) from someone here.

Signature

Robert W.
Vancouver, BC
www.mwtech.com

Claes Bergefall - 31 May 2006 15:42 GMT
Yes, that will make it so the app starts even if 1.1 is not present. In that
case it will use 2.0 instead. Note though that there are breaking changes
between 1.1 and 2.0 so your app might not behave as expected when used with
the 2.0 runtime. Only way to be sure is to test your app with both versions.

A better approach would be to simply install 1.1 on the computers that don't
have it.

  /claes

> I've built a C# WinForms app using VS2003.  I've just released it for
> Alpha
[quoted text clipped - 15 lines]
>
> I was hoping I could get verification (or the opposite) from someone here.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.