Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) NET Framework 4 not installed, but is it! (Read 20581 times)
Bertil
Junior Member
**
Offline


Posts: 12
Joined: Mar 7th, 2012
NET Framework 4 not installed, but is it!
May 28th, 2012 at 2:33pm
Print Post  
On some Sketch when loading, VS complans that NET Framework 4 is not installed, but is!

How come?
How resolve?

/Bertil
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NET Framework 4 not installed, but is it!
Reply #1 - May 28th, 2012 at 3:54pm
Print Post  
Hi,

Haven't heard that one before. It sounds an internal vs issue because the arduino plugin does so little when loading a sketch. Please tell me what you have installed. Here are a few things to check

1) Visual Studio - SP1?
2) .NET - 3.5 and 4.0 frameworks
3) VS Languages - C#, VB.NET and C++
4) Which other addins and extensions do you have installed

Can you also send me a sketch that has the problem? (email: info [at] visualmicro.com]

Does a sketch that fails to load always fail ot just sometimes?

Look forward to hearing more

Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NET Framework 4 not installed, but is it!
Reply #2 - May 29th, 2012 at 11:08am
Print Post  
how did you get on with this?
  
Back to top
IP Logged
 
Bertil
Junior Member
**
Offline


Posts: 12
Joined: Mar 7th, 2012
Re: NET Framework 4 not installed, but is it!
Reply #3 - May 29th, 2012 at 3:39pm
Print Post  
I found out:
If made new sketch with even nothing in it (only: void setup() {} and void loop(){}) check (F7), no errors!
Save it, "close project".
When I ReOpen the project, I get the error "NET Framework 4 not installed"!

If I delete all files in the "project" but .ino or .pde files
I can reopen the project"


CryWeird??
/Bertil
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NET Framework 4 not installed, but is it!
Reply #4 - May 29th, 2012 at 5:06pm
Print Post  
please make the problem and email your project in a zip. we can see in the .vcproj file what it is trying to do.

Things you should do...

Close visual studio, open task manager and kill all devenv.exe processes.

Then re-start visual studio to see if problem is resolved.

If the problem is not resolved or if there were not any devenv.exe process then please re-apply Visual Studio SP1

Does this fix the problem?
  
Back to top
IP Logged
 
Bertil
Junior Member
**
Offline


Posts: 12
Joined: Mar 7th, 2012
Re: NET Framework 4 not installed, but is it!
Reply #5 - May 30th, 2012 at 6:46pm
Print Post  
No, same thing  Embarrassed

Bertil
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NET Framework 4 not installed, but is it!
Reply #6 - May 30th, 2012 at 8:03pm
Print Post  
Thanks for the files. I think we are looking for the problem in the wrong place, the files you sent are good and normal.

This is definately a problem with your visual studio or .net installation so we need to  make a few tests to narrow the problem.

The first thing to do now is to create a new empty C++ win32 project using the normal Visual Studio "File>New Project" and to add a single .cpp file to it. 

By making this test you are using normal Visual Studio commands and not the Arduino addin menus.

Can you do this without an error?

Thanks
  
Back to top
IP Logged
 
Bertil
Junior Member
**
Offline


Posts: 12
Joined: Mar 7th, 2012
Re: NET Framework 4 not installed, but is it!
Reply #7 - May 31st, 2012 at 6:17am
Print Post  
Hi !
I tested with c++ as you said. I could save and re-open no problems.
And when try to Build :

1>------ Build started: Project: Weird2, Configuration: Debug Win32 ------
1>Build started 2012-05-31 08:06:43.
1>D:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(292,5): error MSB8009: .NET Framework 2.0/3.0/3.5 target the v90 platform toolset. Please make sure that Visual Studio 2008 is installed on the machine.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.08
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Undecided
Bertil
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NET Framework 4 not installed, but is it!
Reply #8 - May 31st, 2012 at 10:53am
Print Post  
Interesting, my next suggestion was to try compile. I think the .net 4 error appears when visual micro attempts to alter the c++ project settings.

We can see from your test without visual micro that Visual Studio is not happy with the C++ install

I will try to search microsoft for the error later today to see what is recommended. Maybe you can do the same. Why is visual studio 2010 looking for 2008 when you compile a C++ project?

This seems to indicate that the C++ of your vs 2010 is wrong. For it to ask for 2008 it suggests an older version of C++ is installed. This would also explain why vs 2010 says .NET4 is not installed.

Can you explain the history of your visual studio uinstall? how lon has it been installed? was it originally vs 2008?
  
Back to top
IP Logged
 
Bertil
Junior Member
**
Offline


Posts: 12
Joined: Mar 7th, 2012
Re: NET Framework 4 not installed, but is it!
Reply #9 - May 31st, 2012 at 2:04pm
Print Post  
Before, when VS2010 + ardino worked was it installed on my D: - drive.
Then I got a new progam "Autodesk 123d" it could not select the install drive on, it took the C: drive!
The C.- drive not so big, then got a tip: change the "default progam dir" from C to D, it seems to work Then I started VS20100 ....

http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/how-...
-------------------------------------------------------------------
To change the registry, follow these steps:

1.    Start Registry Editor by entering “Regedit” in the search All programs.

2.    Locate the following:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

3.    Right click on the value named ProgramFilesDir & change the default value C:\Program Files to the path you want to install all your programs in.

4.    Click OK and Exit.
-----------------------------------------------
Bertil  Shocked

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NET Framework 4 not installed, but is it!
Reply #10 - May 31st, 2012 at 3:12pm
Print Post  
So you are saying that Visual Studio and the Arduino plugin worked correctly until you altered the default programs path?

In this case I think the suggestion to alter the program path does not work correctly for Visual Studio Sad

So maybe it can be fixed by running the Visual Studio Installer and clicking "Repair"?
  
Back to top
IP Logged
 
Bertil
Junior Member
**
Offline


Posts: 12
Joined: Mar 7th, 2012
Re: NET Framework 4 not installed, but is it!
Reply #11 - May 31st, 2012 at 5:43pm
Print Post  
I can do it one more time.

Wait...... Wink

Bertil
  
Back to top
 
IP Logged
 
Bertil
Junior Member
**
Offline


Posts: 12
Joined: Mar 7th, 2012
Re: NET Framework 4 not installed, but is it!
Reply #12 - May 31st, 2012 at 7:57pm
Print Post  
Bertil here again.
"Repair" chaged nohting.
this is the error-log:
[05/31/12,19:45:36] Microsoft Visual Studio 2010 Professional - ENU: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #GDR.cab
[05/31/12,19:45:36] Microsoft Visual Studio 2010 Professional - ENU: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #QFE.cab
[05/31/12,19:45:36] Microsoft Visual Studio 2010 Professional - ENU: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #SP.cab
[05/31/12,19:55:43] setup.exe: [2] ISetupComponent::GetInstallationDirectory() failed in ISetupManager:TongueersistComponentData()
[05/31/12,20:02:11] Microsoft Visual Studio 2010 Professional - ENU: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #GDR.cab
[05/31/12,20:02:12] Microsoft Visual Studio 2010 Professional - ENU: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #QFE.cab
[05/31/12,20:02:12] Microsoft Visual Studio 2010 Professional - ENU: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #SP.cab
***EndOfSession***
-----------------------------------------------------------------------
the setup-log is large, I have it, tell my if You need it.

/Bertil  Undecided
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NET Framework 4 not installed, but is it!
Reply #13 - May 31st, 2012 at 8:13pm
Print Post  
I don't know enough about where visual studio stores its files and how it manages its internal file paths

Maybe we should step back and say that you have a .netframework installation error. So why not try re-install or .net framework 4.0. I might even say install or repair .net3.5 and then .net4.0. But I am only guessing  Cry

On thing is for sure, in all cases you have had .net  core warnings/errors. First windows or vs was unable to find a .net4 resource that vs needs for a C++ project (which is what the arduino addin uses) and then an error saying that a vs2010 C++ project needs VS2008 which was .net2->3.5

I hope this helps point you to a solution. I am not sure I will come up with any better ideas but I will keep thinking about this until you say it is fixed.
  
Back to top
IP Logged
 
Bertil
Junior Member
**
Offline


Posts: 12
Joined: Mar 7th, 2012
Re: NET Framework 4 not installed, but is it!
Reply #14 - Jun 1st, 2012 at 6:00am
Print Post  
Yes, the problem is obviously not Visual Micro,  Sad
I have got same hints.
Have to fix Visual Studio 2010 first!
I let you know when/if I am up and running again:

Bertil
  
Back to top
 
IP Logged
 
Bertil
Junior Member
**
Offline


Posts: 12
Joined: Mar 7th, 2012
Re: NET Framework 4 not installed, but is it!
Reply #15 - Jun 1st, 2012 at 3:17pm
Print Post  
Hello, again  Smiley

It is working again! Cheesy

I used "http://archive.msdn.microsoft.com/vs2010uninstall"
Then I used "http://www.piriform.com/ccleaner"
To get rid all "Visual Studio" both VS2010,VS2008 ....
Then fresh install "Bingo".

All actions where perfomed under "Admin" user.

Bertil
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: NET Framework 4 not installed, but is it!
Reply #16 - Jun 1st, 2012 at 3:27pm
Print Post  
Well done! I will add a page to the main site for this just in case some one does the same  Smiley

Thanks for the update
  
Back to top
IP Logged
 
Bertil
Junior Member
**
Offline


Posts: 12
Joined: Mar 7th, 2012
Re: NET Framework 4 not installed, but is it!
Reply #17 - Jun 1st, 2012 at 7:31pm
Print Post  
Smiley
Bertil
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint