locked
"[FileNotFoundException: The system cannot find the file specified (Exception from HRESULT: 0x80070002)]" RRS feed

  • Question

  • Hello

    We have a custom application on top of SP 2007 wher user are able to upload documents into a document library via an aspx page. This always worke fine, but since our last deployment users are able to upload documents, but are not able to open them anymore. We receive the error stack:

    [FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)]
       Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob) +0
       Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob) +237
       Microsoft.SharePoint.SPFile.GetFileContent(SPOpenBinaryOptions openOptions) +193
       Microsoft.SharePoint.SPFile.OpenBinary(SPOpenBinaryOptions openOptions) +64
       Microsoft.SharePoint.SPFile.OpenBinary() +43
       Ajms.Sharepoint.Controls.<>c__DisplayClassc.<OpenDesignDocumention>b__9() +228
       Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state) +73
       Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +592
       Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +319
       Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) +571
       Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +135
       Ajms.Sharepoint.Controls.UploadDesign.OpenDesignDocumention(String link) +313
       Ajms.Sharepoint.Controls.UploadDesign.LinkButton1_Click(Object sender, EventArgs e) +252
       System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +101
       System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +100
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

    I already searched for this issue on the web and it seems that this has to do with security settings, but still haven't found what setting this coud be. Does anyone have a clue? Any help would be much appriciated

    Regards

    Ludwig Stokkelaar

     

     

    • Edited by Mike Walsh FIN Saturday, March 12, 2011 1:52 PM Quotes put around error message text. Title shortened by removing badly spelt and unnecessary intro
    Saturday, March 12, 2011 1:46 PM

Answers

  • Hi,

    Thanks to share your post.

    For the issue, as I know, the framework should be damaged by the former deployment. And you need to repair the .net framework or reinstall it.

    Repairing the framework:

    Control Panel-> Add/Remove Programs->Microsoft .Net 3.0 or Microsoft .Net 3.5-> Repair.

    Or for installing the framework:

    http://clientsupport.curse.com/guide.aspx?id=30.

    Hope this could help you!

    Leo

    • Marked as answer by Emir Liu Wednesday, March 23, 2011 7:51 AM
    Thursday, March 17, 2011 9:41 AM

All replies

  • What changes did you do in your last deployment. Did it involve Export and Import ??

     

    Regards,

    Deepankar Mohapatra

    mailme@dmohapatra.in

    Saturday, March 12, 2011 5:51 PM
  • Hello Deepankar

    Thanks for your reaction. Before the did a new deployment we made en copy of production. This means that we copied the database from production and attached this to the acceptance environment. After this we deployed the new version. To be quite honest I don't know how they attached the copied database. I think they deattached the existing one and attached the new one.

    What do you mean by export and import and why are you mention that? We just added extra functionality, mainly reporting features.

     

    Regards

    Ludwig Stokkelaar

     

     

     

    Saturday, March 12, 2011 6:25 PM
  • Hi,

    Thanks to share your post.

    For the issue, as I know, the framework should be damaged by the former deployment. And you need to repair the .net framework or reinstall it.

    Repairing the framework:

    Control Panel-> Add/Remove Programs->Microsoft .Net 3.0 or Microsoft .Net 3.5-> Repair.

    Or for installing the framework:

    http://clientsupport.curse.com/guide.aspx?id=30.

    Hope this could help you!

    Leo

    • Marked as answer by Emir Liu Wednesday, March 23, 2011 7:51 AM
    Thursday, March 17, 2011 9:41 AM
  • Very Sorry for the delayed response . By Exporting I mean exporting lists using SPContentDeployment.

    Are you using RBS or EBS to store DATA??

     

     

    Regards,

    Deepankar Mohapatra

     



    • Edited by Mike Walsh FIN Thursday, April 14, 2011 8:10 AM 1. Do not refer to SP 2010 in pre-SP 2010 forums. 2. Do not encourage off-forum conversations by giving your e-mail address in plain.
    Thursday, April 14, 2011 4:44 AM