Connecting Tech Pros Worldwide Forums | Help | Site Map

Setup file looking for wrong .NET framework.

asadikhan@gmail.com
Guest
 
Posts: n/a
#1: Jun 6 '06
I had v1.0, v1.1 and v2.0 of .NET framework installed on my laptop and
that was causing me a lot of grief. So I uninstalled v2.0 and pressed
on with developing stuff in v1.0. Everything was great. I wrote a whole
application. After completion I added a setup project. The setup
project builds fine. But when I try to install the application, it
gives me an error saying "This setup requires .NET framework." (Please
install it). I checked the Windows Event Viewer and it shows the
following error message which clearly shows that the setup file is
trying to look for v2.0 of dotnet framework. How do I make it look for
the correct version.

Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 0
Date: 06/06/2006
Time: 3:32:02 PM
User: N/A
Computer: MIRSCP56579
Description:
The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. You may be able to use the /AUXSOURCE= flag to retrieve this
description; see Help and Support for details. The following
information is part of the event: Shim database version
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 doesn't have a matching
runtime directory.

(Oh and I didn't uninstall v2.0 properly; I renamed the folder a few
weeks back, and then forgot about it. When I uninstalled v2.0 using
Add/Remove Programs v2.0 disappeared from the Add/Remove Programs list,
but the renamed folder is still sitting there :S).

Asad


Peter Bromberg [C# MVP]
Guest
 
Posts: n/a
#2: Jun 6 '06

re: Setup file looking for wrong .NET framework.


Each time you start a managed application the default host is started. This
host has ability to determine which CLR version was used in building the
assembly. Host checks the registry for the version existence and delegates
call to the mscoree.dll.
Sounds like you've clobbered the mscoree ->CLR version process into thinking
you still have 2.0 installed, because you screwed up on uninstalling v2.0.

You could try deleting or renaming mscoree, reinstall .NET 1.1

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"asadikhan@gmail.com" wrote:
[color=blue]
> I had v1.0, v1.1 and v2.0 of .NET framework installed on my laptop and
> that was causing me a lot of grief. So I uninstalled v2.0 and pressed
> on with developing stuff in v1.0. Everything was great. I wrote a whole
> application. After completion I added a setup project. The setup
> project builds fine. But when I try to install the application, it
> gives me an error saying "This setup requires .NET framework." (Please
> install it). I checked the Windows Event Viewer and it shows the
> following error message which clearly shows that the setup file is
> trying to look for v2.0 of dotnet framework. How do I make it look for
> the correct version.
>
> Event Type: Error
> Event Source: .NET Runtime
> Event Category: None
> Event ID: 0
> Date: 06/06/2006
> Time: 3:32:02 PM
> User: N/A
> Computer: MIRSCP56579
> Description:
> The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
> found. The local computer may not have the necessary registry
> information or message DLL files to display messages from a remote
> computer. You may be able to use the /AUXSOURCE= flag to retrieve this
> description; see Help and Support for details. The following
> information is part of the event: Shim database version
> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 doesn't have a matching
> runtime directory.
>
> (Oh and I didn't uninstall v2.0 properly; I renamed the folder a few
> weeks back, and then forgot about it. When I uninstalled v2.0 using
> Add/Remove Programs v2.0 disappeared from the Add/Remove Programs list,
> but the renamed folder is still sitting there :S).
>
> Asad
>
>[/color]
Michael Nemtsev
Guest
 
Posts: n/a
#3: Jun 6 '06

re: Setup file looking for wrong .NET framework.


Hello asadikhan@gmail.com,

Cross-posting is not a good way to get answers. I replyed in the dotnet.framework
group
[color=blue]
> I had v1.0, v1.1 and v2.0 of .NET framework installed on my laptop and
> that was causing me a lot of grief. So I uninstalled v2.0 and pressed
> on with developing stuff in v1.0. Everything was great. I wrote a
> whole application. After completion I added a setup project. The setup
> project builds fine. But when I try to install the application, it
> gives me an error saying "This setup requires .NET framework." (Please
> install it). I checked the Windows Event Viewer and it shows the
> following error message which clearly shows that the setup file is
> trying to look for v2.0 of dotnet framework. How do I make it look for
> the correct version.
>
> Event Type: Error
> Event Source: .NET Runtime
> Event Category: None
> Event ID: 0
> Date: 06/06/2006
> Time: 3:32:02 PM
> User: N/A
> Computer: MIRSCP56579
> Description:
> The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot
> be
> found. The local computer may not have the necessary registry
> information or message DLL files to display messages from a remote
> computer. You may be able to use the /AUXSOURCE= flag to retrieve this
> description; see Help and Support for details. The following
> information is part of the event: Shim database version
> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 doesn't have a matching
> runtime directory.
> (Oh and I didn't uninstall v2.0 properly; I renamed the folder a few
> weeks back, and then forgot about it. When I uninstalled v2.0 using
> Add/Remove Programs v2.0 disappeared from the Add/Remove Programs
> list, but the renamed folder is still sitting there :S).
>
> Asad
>[/color]
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


Closed Thread