It helps to have the EXACT error code, because your description seems vaugue. Here are some general things to try.
1. Make sure you have at least 2 devices on the bus. The CAN standard requires any recievers of a message to send an acknoledgement that the message arrived. So if you CAN transmitter is the only one on the bus, it will keep sending the message over and over, and eventually report an error.
If you have a 2 channel CAN interface, loop the 2 channels together, then use the NI Bus Monitor Tool to recieve with the other.
2. Double check the arbitration ID is correct, extended ID's require an extra bit set when you transmit. So even though you want to send 0x1CFFFFFF on the bus, you need to pass 0x3CFFFFFF.
3. Check your baud rate. The CAN standar
d itself doesn't define a specific baud rate, check your Higher Layer Protocol (DeviceNet, CANopen, J1939, K-Line)for the rate you need.
4. If all else fails, check the wiring.