Access Denied
- This was not doing this yesterday.In installed the 7 rollup yesterday and it may have changed some settings somewhere.I can upload a PDF as an attachment under the NOTES table from with-in Contacts; however, when i go to read the PDF i get the following errors.Before Click on my PDFAfter Click on my PDFWhere to look ?I am assuming i need to give read permissions to some iis directory. By the way, where are these files stored at anyway ?Where are all the files that we upload to the CRM server stored at?Thank you.
http://afccinc.com?siteref=msdn
Answers
- It looks like that you are running into a bug introduced by Rollup 7. Don Chang of MSFT has acknowledged this at CRM Development forum. You may approach him.
BTW, I am running Rollup 7 on a few environments, and have not run into this.
Daniel Cai | http://danielcai.blogspot.com- Marked As Answer byDonna EdwardsMVP, ModeratorSunday, November 15, 2009 5:17 PM
Hi,
Just wanted to give a quick overview of the new rollup, this rollup breaks the Download Attachment example in the SDK. The download.aspx URL now requires a security token, but there is no
documentation of how to obtain a token.
So BEWARE if you have any custom code that automatically downloads attachments. IT WILL NOT WORK WITH THIS ROLLUP!!
Thanks,
Ranjitsingh | http://mscrm-developer.blogspot.com/- Marked As Answer byDonna EdwardsMVP, ModeratorSunday, November 15, 2009 5:17 PM
All Replies
- All the attachments are stored in Organization Database. Check your Application log in Event Viewer because it should be some more information. If not you can use trace to have more information.
Clear the browser cache should work.
My Dynamics CRM Blog: http://bovoweb.blogspot.com - For the error that you have got, there should be something in the server's event log, check Windows event log first.
I suspect that someone has deleted the note record. Try to refresh the form using F5 key, and see if the note record is still there.
Note attachment is stored in DocumentBody column of AnnotationBase table in CRM database, it's Base64 encoded.
Daniel Cai | http://danielcai.blogspot.com - Hi Kgorczewski,Can you tell me what to do about this error ?This one pops up at the same time i try to read the file attachment.----------------------------------------------------------------------------------------Exception information:Exception type: CrmExceptionException message: INVALID_WRPC_TOKEN: Validate WRPC Token: WRPCTokenState=Invalid, TOKEN_EXPIRY=4320, IGNORE_TOKEN=False, TOKEN_KEY=m5TQSMWnEd6c+gAwSHzJUYs31XZHO6byvCJU32tWe5TGDOA39vvmyoM7x0Q0ACV8Request information:Request URL: http://crm.afccinc.com:5555/AFCCInc/Activities/Attachment/download.aspx?AttachmentType=5&AttachmentId={42013EC5-64C9-DE11-B797-0030487CC951}&IsNotesTabAttachment=1Request path: /AFCCInc/Activities/Attachment/download.aspxUser host address: 192.168.0.30User: CORP\AdministratorIs authenticated: TrueAuthentication Type: NegotiateThread account name: NT AUTHORITY\NETWORK SERVICEThread information:Thread ID: 44Thread account name: NT AUTHORITY\NETWORK SERVICEIs impersonating: FalseStack trace: at Microsoft.Crm.Application.Security.WRPCContext.ValidateTokenState()at Microsoft.Crm.Application.Pages.Activities.ActivityAttachmentDownload.ConfigurePage()at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)at System.Web.UI.Control.PreRenderRecursiveInternal()at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)Custom event details:
http://afccinc.com?siteref=msdn - All of the files that are already in the CRM system are doing this, not just the most recent ones that we are uploading...Got any suggestions ?I can upload them but not read them..They were working great until this morning....??
http://afccinc.com?siteref=msdn - It looks like that you are running into a bug introduced by Rollup 7. Don Chang of MSFT has acknowledged this at CRM Development forum. You may approach him.
BTW, I am running Rollup 7 on a few environments, and have not run into this.
Daniel Cai | http://danielcai.blogspot.com- Marked As Answer byDonna EdwardsMVP, ModeratorSunday, November 15, 2009 5:17 PM
Hi,
Just wanted to give a quick overview of the new rollup, this rollup breaks the Download Attachment example in the SDK. The download.aspx URL now requires a security token, but there is no
documentation of how to obtain a token.
So BEWARE if you have any custom code that automatically downloads attachments. IT WILL NOT WORK WITH THIS ROLLUP!!
Thanks,
Ranjitsingh | http://mscrm-developer.blogspot.com/- Marked As Answer byDonna EdwardsMVP, ModeratorSunday, November 15, 2009 5:17 PM
- Thanks.
http://afccinc.com?siteref=msdn

