zoukankan      html  css  js  c++  java
  • sharepoint2013 错误2

    Whe I'm following this article  http://msdn.microsoft.com/en-us/library/office/apps/fp179923%28v=office.15%29

    I met some issue, I wrote it here, wish it is helpful for some one who want to set up an on-premises development environment for apps for SharePoint 2013 Preview.

    You can download the SP 2013 preview version from http://technet.microsoft.com/en-us/evalcenter/hh973397.aspx

    1. When runing the "SharePoint 2013 Products Configuration Wizard", there will be a error when creating configuration database

     Failed to connect to the configuration database.
    An exception of type System.Management.Automation.CmdletInvocationException was thrown. Additional exception information: ErrorCode<NonDomainNWService>:SubStatus<ES0001>:Service running under Network Service account in workgroup environment is not supported.

    The solution is :

       a. Start the cmd as administrator

       b. Cd to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\BIN

       c. Execute command: psconfig.exe -cmd Configdb create SkipRegisterAsDistributedCacheHost

       d. Run the "SharePoint 2013 Products Configuration Wizard" again.

    2. After  runing "SharePoint 2013 Products Configuration Wizard" again, you will see another error:

    The SDDL string contains an invalid sid or a sid that cannot be translated. Parameter name:sddlForm

    The solution is: Just ignore this error, it is not fatal error

    3. When run the powershell script to "Create an isolated app domain on your development computer", in the step 6, be careful, don't just copy the powershell, need to format it and replace with your own account name(MossTestBox\Administrator):

    1. $account= Get-SPManagedAccount "MossTestBox\Administrator"   
    2. $appPoolSubSvc= New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account  
    3. $appPoolAppSvc= New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account  
    4. $appSubSvc= New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SettingsServiceApp –DatabaseName SettingsServiceDB   
    5. $proxySubSvc= New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc  
    6. $appAppSvc= New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp1 -DatabaseName AppServiceDB  
    7. $proxyAppSvc= New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc  
    $account= Get-SPManagedAccount "MossTestBox\Administrator" 
    $appPoolSubSvc= New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account
    $appPoolAppSvc= New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account
    $appSubSvc= New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SettingsServiceApp –DatabaseName SettingsServiceDB 
    $proxySubSvc= New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc
    $appAppSvc= New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp1 -DatabaseName AppServiceDB
    $proxyAppSvc= New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc


    After resolve these above issues, you can start VS2012 to create your first SharePoint host App.

     

     After deploying the app, you can find it in site contents:

  • 相关阅读:
    随机数生成
    C#根据流下载文件
    C# 改变Windows中服务的登录身份 (账户名和密码)
    SqlServer查看数据库信息及服务器级、数据库级、数据库独立 用户权限
    C# 两个List<T>(T是类)使用Contains比较元素的方法
    你真正了解public、internal、protected、private吗?不妨幽默一些
    【WCF Restful】Post传参示范
    VMware虚拟机可与Win10物理机互ping并可访问互联网的设置方法
    服务器Oracle数据库配置与客户端访问数据库的一系列必要设置
    Winform ListBox输出信息并自动滚动至底部
  • 原文地址:https://www.cnblogs.com/chenfulai/p/2849288.html
Copyright © 2011-2022 走看看