1)
Can you please open the arduino ide and confirm if you can use the programmer to upload without this error?
ANSWER:
From preferences.txt > programmer=arduino:avrispmkii
This worked:
int ledPin = 13; // LED connected to digital pin 13
void setup()
{
/* add setup code here */
pinMode(ledPin, OUTPUT);
}
void loop()
{
/* add main program code here */
digitalWrite(ledPin, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(1000); // wait for a second
}
2)
and also please open device manager and tell me which usb driver shows for the avrisp mkII?
ANSWER:
FTDI Ltd
Version: 2.08.14 built by WinDDK
It came with Ardunio 1.0.1 and it works well on COM3, COM5.
Info
I have a new win7 machine and I have the same problem as you. I also get the problem when attempting to use a programmer in the arduino ide. It was all working fine on my old win32 machine!
I have also installed atmel studio which has installed the jungo usb driver for the avrisp mkii. Windows doesn't seem to like it, some sort of usb driver problem unrelated to visual studio.
I could understand why yours might not work installing another IDE but my Windows 7 is completely virgin.