This project is read-only.
1
Vote

Issue with application - Unhandled Exception: System.IO.FileNotFoundException

description

Hi,

Getting an error.. Environment is SP 2010 with SP1.
I log into WFE. I then open powershell as administrator (with sharepoint snapin), logged in with farm administrator account that also has local administrator rights.

I run the exe and get errors.

Log:

PS C:\lac-tools\spdocumentor> .\SPDocumentorConsole.exe
Generating documentation

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=7
1e9bce111e9429c' or one of its dependencies. The system cannot find the file spe
cified.
at SPDocumentor.FarmServices.SPFarmDocumentor.GenerateMainDocumentPart1Conten
t(MainDocumentPart mainDocumentPart1)
at SPDocumentor.FarmServices.SPFarmDocumentor.CreateParts(WordprocessingDocum
ent document)
at SPDocumentor.FarmServices.SPFarmDocumentor.CreatePackage(String filePath)
at SPDocumentorConsole.Program.Main(String[] args)

Not sure why I'm getting this error. Anyone seen this before?

Thank you,


Erik

file attachments

comments

krill123 wrote Dec 23, 2013 at 2:37 PM

Nevermind.. I had seen under discussions that the tool was for Sharepoint 2010.
But, searching more and following link under main project screen, I see it's only for Sharepoint 2013.

VNekic wrote Sep 23, 2016 at 8:38 PM

This is because the program needs the SHAREPOINT BITS to run. This is also known as Microsoft.SharePoint.PowerShell Snap-In.