Ask a questionAsk a question
 

AnswerAccess Denied

  • Wednesday, November 04, 2009 7:06 PMAFCC Inc - Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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 PDF


    After Click on my PDF


    Where 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

All Replies

  • Wednesday, November 04, 2009 7:16 PMkgorczewski Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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
  • Wednesday, November 04, 2009 7:17 PMDaniel Cai Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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
  • Thursday, November 05, 2009 12:21 AMAFCC Inc - Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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: CrmException 
        Exception message: INVALID_WRPC_TOKEN: Validate WRPC Token: WRPCTokenState=Invalid, TOKEN_EXPIRY=4320, IGNORE_TOKEN=False, TOKEN_KEY=m5TQSMWnEd6c+gAwSHzJUYs31XZHO6byvCJU32tWe5TGDOA39vvmyoM7x0Q0ACV8 
     
    Request information: 
        Request URL: http://crm.afccinc.com:5555/AFCCInc/Activities/Attachment/download.aspx?AttachmentType=5&AttachmentId={42013EC5-64C9-DE11-B797-0030487CC951}&IsNotesTabAttachment=1 
        Request path: /AFCCInc/Activities/Attachment/download.aspx 
        User host address: 192.168.0.30 
        User: CORP\Administrator 
        Is authenticated: True 
        Authentication Type: Negotiate 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
     
    Thread information: 
        Thread ID: 44 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
        Is impersonating: False 
        Stack 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
  • Thursday, November 05, 2009 1:43 AMAFCC Inc - Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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
  • Thursday, November 05, 2009 3:31 AMDaniel Cai Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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
  • Thursday, November 05, 2009 4:40 AMRanjitsingh R Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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/
  • Thursday, November 05, 2009 4:49 AMAFCC Inc - Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks.
    http://afccinc.com?siteref=msdn