Hello wangli,
If you are using proxy I can suggest to run the activation from the command line using --proxy-disabled key:
photoscan.exe --proxy-disabled --activate <your_license_key>
In case it doesn't work, then create the offline activation request to support@agisoft.com:
photoscan.exe --activate-offline <your_license_key> <path_to_request.act>