|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Setup file looking for wrong .NET framework.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 Hello asadik***@gmail.com,
Use <supportedRuntime> attribute of the config file to specify required version Show quote > I had v1.0, v1.1 and v2.0 of .NET framework installed on my laptop and It's the problem, because renaming of folder don't remove .net fw - there > 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. > (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). are some libraries in the system that don't correspond to you removed folder. I recomend you to read my article about CLR intantiating to understand how you app stars and determinate which version of .NET to use see it there http://spaces.msn.com/laflour/blog/cns!7575E2FFC19135B4!393.entry --- 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 Thank you. This worked perfectly.
Asad Michael Nemtsev wrote: Show quote > Hello asadik***@gmail.com, > > Use <supportedRuntime> attribute of the config file to specify required version > > > 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. > > > (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). > > It's the problem, because renaming of folder don't remove .net fw - there > are some libraries in the system that don't correspond to you removed folder. > I recomend you to read my article about CLR intantiating to understand how > you app stars and determinate which version of .NET to use > see it there http://spaces.msn.com/laflour/blog/cns!7575E2FFC19135B4!393.entry > > --- > 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 |
|||||||||||||||||||||||