Using Atmega2560 Arduino in another project

I tried to remove the ATMEGA2560 of the Arduino board to use in another project. I would use the IDE and libraries arduino.
But I can not load the compiled code for ATMEGA2560 even generating code. Hex
If I load code. Hex generated in atmel studio works perfectly
I'm using ICSP programmer USBASP to transfer the code

If anyone could help me, thank you

I tried to remove the ATMEGA2560 of the Arduino board to use in another project.

Do you mean "off of the Arduino board", like de-soldered it?

Hex generated in atmel studio works perfectly

So the hex works in the Atmel Studio Simulator?

Two things :
1)Is there any chance you overheated the cheap in removal?
2)You might want to try something like AVR-dude and check this out :
http://shannonstrutz.com/?p=629