issue with side by side execution

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

I have a framework 1.0 application which is installed on a
machine with 1.0 and 1.1 installed.
Question 1: Is it running under 1.0?

The application calls the LogonUser API call and to make
it work, I had to change one of the ProcessModel elements
in the Machine.Config file.

Question 2: It would work on the machine in question if
both 1.0 and 1.1 had their config files changed. Why?
 
Jason said:
I have a framework 1.0 application which is installed on a
machine with 1.0 and 1.1 installed.
Question 1: Is it running under 1.0?

Depends.

What type of app? With a desktop app, yes, at least generally. To ensure
with a desktop app (or console app), you can tell that the app only supports
version 1.0 in the config file and it will only run under 1.0. With a web
app, you really have to map the app to the version of the framework you want
it to run under. MSDN has a couple of articles:

http://msdn.microsoft.com/library/e...figuringaspnetapplicationforaspnetversion.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnhcvs03/html/vs03f6.asp
The application calls the LogonUser API call and to make
it work, I had to change one of the ProcessModel elements
in the Machine.Config file.

Question 2: It would work on the machine in question if
both 1.0 and 1.1 had their config files changed. Why?

Not sure where you are going here. The way I read what you are asking is "If
I change both 1.0 and 1.1 to make something work, why does it work?" Perhaps
you should rephrase this. Do you mean, you only changed 1.1 and it worked
despite being a 1.0 app? If so, it is most likely running under 1.1, as you
did not specify to run under 1.0 (config for windows apps/console apps, in
IIS (read MSDN articles) for ASP.NET).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
Hi Jason,

Thanks for your post. I agree with Gregory. In addition, please kindly note
that by default, .NET Windows Application built with .NET Framework 1.0
will be executed with 1.0 on a system that has both 1.0 and 1.1 installed.
Or you can use an application configuration file which specify the version
of .NET Framework to load your application. For detailed information,
please refer to the MSDN article below:

Side-by-Side Execution of the .NET Framework
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/ht
ml/sidexsidenet.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top