Setup file looking for wrong .NET framework.

A

asadikhan

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
 
G

Guest

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
 
M

Michael Nemtsev

Hello (e-mail address removed),

Cross-posting is not a good way to get answers. I replyed in the dotnet.framework
group
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
---
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top