Are you using Tableau Online or Tableau Server?
Thanks Diego for your reply,
I am using Tableau Server. I already managed to resolve the previous issue but now I am facing another one. I am getting "The remote server returned an error: (500) Internal Server Error" at the same location "request.GetResponse()"
The things i change in my code are :
request.Method = "PUT";
request.Headers["X-Tableau-Auth"] = HttpContext.Current.Session["authToken"].ToString().Trim();
request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
request.KeepAlive = true;
request.ContentType = "multipart/mixed; boundary=" + boundary.Trim();
I still can't figure out why I am getting this error.
If you resolved your original question everybody would appreciate it if you told us the solution and then mark your own answer as Correct Answer. This can help others who may have a similar situation.