Catty
2009-01-26 15:17:15 UTC
i used this code example to download notes attachment files, but when i
checked the file downloaded i found that it contains this error "File
Download Failure" and when trying to use this url
http://mycrm/Activities/Attachment/download.aspx?AttachmentType=" +
objecttypecode + "&AttachmentId=" + attachid
on the internet explorer it asks for my username and password and after that
it gives the same error.
can any one help regarding this issue, I have crm 3.0 with update rollup 3
installed.
string url =
"http://mycrm/Activities/Attachment/download.aspx?AttachmentType=" +
objecttypecode + "&AttachmentId=" + attachid;
System.Net.WebClient myWebClient = new System.Net.WebClient();
myWebClient.Credentials = System.Net.CredentialCache.DefaultCredentials;
myWebClient.DownloadFile(url,"C:\\myfile.txt");
checked the file downloaded i found that it contains this error "File
Download Failure" and when trying to use this url
http://mycrm/Activities/Attachment/download.aspx?AttachmentType=" +
objecttypecode + "&AttachmentId=" + attachid
on the internet explorer it asks for my username and password and after that
it gives the same error.
can any one help regarding this issue, I have crm 3.0 with update rollup 3
installed.
string url =
"http://mycrm/Activities/Attachment/download.aspx?AttachmentType=" +
objecttypecode + "&AttachmentId=" + attachid;
System.Net.WebClient myWebClient = new System.Net.WebClient();
myWebClient.Credentials = System.Net.CredentialCache.DefaultCredentials;
myWebClient.DownloadFile(url,"C:\\myfile.txt");