Today after getting latest for my project from Team Foundation Server I was not able to build the solution as the mentioned above error was appearing. After doing some googling finally I found a link which resolved my problem. If this is the case with you then just remove the following from your .csproj file.

How do you feel when you need to open SharePoint Central Administration and ‘Connection Close’ message appears and SharePoint_AdminContent database halts in suspect mode? Yes I know how it feels! So to reduce the pain and get your smiles back I am writing this block. After googling so much, well 90% of the blog says to restore the database and bla bla but Developers are not used to take backups of the databases for their development environment.

Let’s cut the crap and jump to solution. Few SQL queries will fix this issue. Following are the details.

When I opened central admin it displayed Connection: close, then I checked my Database for SharePoint Central Administration which is SharePoint_AdminContent_eba61c34-8fb2-4c18-badd-d50aacfb05a7

So to fix the issue I searched on internet but most of them said to restore the database from its backup, which was not the case for me. One blog helped me a lot and I got the following queries from that. Moreover there are some steps involved as precautionary measures.

Execute all the commands in your SQL Query Editor, it will take some time depending upon the size of database.
Go back to your SQL Management Studio and you will see the (Suspect) mode issue against the Content/Config database is fixed and the database got fully repaired and restored.

I have SharePoint Server 2010 and Office 2013 Installed on my machine , I installed office after SharePoint Server 2010 installation but after Installation of Office 2013, Creation of web application in SharePoint Server 2010 starts throwing exception : Provisioning of the web application ‘Web app – Port’ has encountered the following error: Microsoft.SharePoint.Upgrade.SPUpgradeException: Failed to call GetTypes on assembly Microsoft.Office.InfoPath.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Could not load file or assembly ‘Microsoft.Office.InfoPath, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannot find the file specified.

After some searching on Internet ‘Googling’ , i got the solution , The solution to the problem is to Downgrade ‘Info Path’ or to remove Info Path. Perhaps this is not the desired way to come up with some proper solution but lets hope Microsoft will come up with appropriate fix to this.

I uninstalled Info Path and it worked for me. Now SharePoint 2010 is working as expected.