.net 阿里云视频点播获得视频点播上传地址报错:SDK.InvalidRegionId : Can not find endpoint to access

string regionId = "cn-shanghai"; //目前仅支持cn-shanghai
IClientProfile profile = DefaultProfile.GetProfile(regionId, KeyId, Secret);
DefaultAcsClient client = new DefaultAcsClient(profile);
CreateUploadVideoResponse response = client.GetAcsResponse(request); //在这里报错 Can not find endpoint to access

请问是因为什么呢,怎么解决呢

检查一下你的KeyId和secret是不是错了

是正确的,因为我同时还存在OSS的文件上传,那个是可以正常使用的