Sharepoint 部署的时候出现一个错误

Error occurred in deployment step 'Add Solution': Operation is not valid due to the current state of the object.

在Server Manager里面看到错误:

The Service Control Manager tried to take a corrective action (Restart the service) after the unexpected termination of the SharePoint Timer Service service, but this action failed with the following error:
An instance of the service is already running.

通过清除Config可以修复。具体操作如下。

1. Central Administration > Monitoring > Review job definitions > Look for following timer job "Application Server Administration Service Timer Job" > Disable
2. Then open windows administrative services (services.msc), stop SharePoint Timer Service
3. Clear SharePoint Timer configuration cache by following steps mentioned in below:

  %SystemDrive%\ProgramData\Microsoft\SharePoint\Config\GUID

  1. Back up the Cache.ini file. (Make a copy of it. DO NOT DELETE THIS FILE, Only the XML files in the next step)
  2. Delete all the XML configuration files in the GUID folder (DO NOTE DELETE THE FOLDER). Do this so that you can verify that the GUID folders content is replaced by new XML configuration files when the cache is rebuilt. 
    Note When you empty the configuration cache in the GUID folder, make sure that you do NOTdelete the GUID folder and the Cache.ini file that is located in the GUID folder.
  3. Double-click the Cache.ini file.
  4. Change the file content to 1, Type 1, and then click Save on the File menu. (Basically when you are done, the only text in the config.ini file should be the number 1)
  5. On the File menu, click Exit.

4. Start SharePoint Timer Service and give it a few seconds so that the new XML files from the location you deleted then are re-populated.
5. Central Administration > Monitoring > Review job definitions > Look for following timer job "Application Server Administration Service" Timer Job > Enable

最新文章

  1. Oracle研究专题:Oracle系统安装与配置
  2. 全球IP分布表
  3. SPF 简介
  4. ZOJ 1090 The Circumference of the Circle
  5. oracle 数据库远程导出
  6. C# this指针用法
  7. ubuntu下安装使用vmware、kvm、xen
  8. Git命令详解
  9. 韩玉琪 《Linux内核分析》MOOC课程
  10. iOS学习之视图加载过程中会触发的方法(loadView/viewDidLoad/didReceiveMemoryWarning)
  11. JavaHTTP下载视频
  12. JVM 菜鸟进阶高手之路九(解惑)
  13. 《Node.js在CLI下的工程化体系实践》成都OSC源创汇分享总结
  14. 一次lr异常Error: C interpreter run time error: Action.c (17): Error -- memory violation : Exception ACCESS_VIOLATION received问题分析
  15. 如何测量并报告ASP.NET Core Web API请求的响应时间
  16. scrapy中selenium的应用
  17. Android-Java-抽象类
  18. SonarQube代码质量管理工具的升级(sonarqube6.2 + sonar-scanner-2.8 + MySQL5.6+)
  19. Linux rpm包安装MySQL数据库问题总结
  20. MyBatis中的缓存1

热门文章

  1. osgi: HttpService A null service reference is not allowed.
  2. 将main方法打成jar包,并引用第三方的maven jar包
  3. 【转载】Solr4+IKAnalyzer的安装配置
  4. jquery getJSON
  5. Android抽象布局——include、merge 、ViewStub
  6. 菜鸟学Windows Phone 8开发(1)——创建第一个应用程序
  7. DataTables 入门使用
  8. Xcode_cocoaPods-超详细傻瓜式安装教程
  9. 性能测试类,让你写法代码养成经常测试的好习惯 -ASP.NET C#
  10. Qt之自定义QLineEdit右键菜单