The Guitar Rig serial number has to be entered in The Native Instruments Service centre. it has nothing to do with SONAR.
Native Instrument programs need to be run in stand alone mode first before being run as plugins within a host program like SONAR.
You also need to run it as Administrator even if your login has Admin privileges within Windows.