Im trying to deploy stand-alone labview code to the cRIO. I compile and start deploying the code, but then, partway through the deployment, the robot almost always gives me an error that I cannot deploy target settings and stops. I reboot the cRIO, go to the Driver Station, and it says that there is communications with the robot, and there is code. But the diagnostics tab error messagees give me weird errors such as I have my solenoid module in the wrong spot (it is in slot 7, isnt that where it is supposed to be?) and my code then doesn't work at all (despite the fact I can enter teleop mode).

so slot 7 is for the second one! I switched the cards to the right spot, but the code still didn't deploy. I reformatted the controller and I could deploy code once. When I use the run style of deployment, it seems to refresh the system different than that of stand-alone deployment so that I can redeploy code iff I use run deployment. I suppose I will just deploy stand-alone deployment once and reformat the controller each time I want to re-deploy any code.

I reformatted the controller and I could deploy code once. When I use the run style of deployment, it seems to refresh the system different than that of stand-alone deployment so that I can redeploy code iff I use run deployment.

Check your CPU usage on the Driver Station's Charts tab. It sounds like your program might be using up all the processor time and not give the framework a chance to recognize that you want to load a new program. To verify that as the problem, turn on the "NO APP" switch and reboot the cRIO, then see if it will let you load code to run at startup. Make sure you turn the switch back off before letting it reboot after reloading.