Error when aplying AFM DoS Protection Profile

I am getting the following error when applying DoS Protection profile to protected Objects:

010716d9:3: Virtual server /Common/xxxxxxx requires a profile of type websecurity for ltm policy /Common/asm_auto_l7_policy__xxxxxxxx.

can anyone kindly help.

Hi, can you paste here your VS config?