本文介绍了sharepoint托管的应用程序显示空白页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞!我对Sharepoint Apps还是陌生的.按照以下步骤,在前提服务器场中的SP 2016中创建了SharePoint托管应用;第1步:创建隔离的应用程序域如果要创建和部署SharePoint托管应用程序,则必须创建一个隔离的应用程序域,您的SharePoint应用程序将在其中运行. 1.启动SharePoint 2013命令行管理程序.•net start spadminv4•net start sptimerv4为您的应用创建隔离的应用域,例如"apps.practise.com".•Set-SPAppDomain"apps.practise.com"确保SPSubscriptionSettingsService和AppManagementServiceInstance服务正在运行.• 获取 - SPServiceInstance | 其中 { $ _ . GetType (). 名称 - eq "AppManagementServiceInstance" - 或 $ _ . GetType (). 名称 - eq "SPSubscriptionSettingsServiceInstance" } | 开始 - SPServiceInstance验证SPSubscriptionSettingsService和AppManagementServiceInstance服务正在运行.• 获取 - SPServiceInstance | 其中 { $ _ . GetType (). 名称 - eq "AppManagementServiceInstance" - 或 $ _ . GetType (). 名称 - eq "SPSubscriptionSettingsServiceInstance" }您必须指定将在其下运行SPSubscriptionService和AppManagementServiceInstance服务的服务器场管理员帐户.该服务器场管理员帐户必须是SPManagedAccount.如果您的服务器场管理员不是SPManagedAccount,则可以创建一个SPManagedAccount 通过在SharePoint命令行管理程序中键入以下命令使用服务器场管理员凭据(将提示您输入服务器场管理员域\用户名和密码).• $ account = 新建 - SPManagedAccount为SPSubscriptionService和AppManagementServiceInstance服务指定服务器场管理员帐户,应用程序池和数据库设置.$ account = Get-SPManagedAccount域\用户名" $ appPoolSubSvc = New-SPServiceApplicationPool-名称SettingsServiceAppPool -Account $ account $ appPoolAppSvc = 新建 - SPServiceApplicationPool - 名称 AppServiceAppPool - 帐户 $ account $ appSubSvc = 新建 - SPSubscriptionSettingsServiceApplication – ApplicationPool $ appPoolSubSvc – 名称 SettingsServiceApp – 数据库名称 SettingsServiceDB $ proxySubSvc = 新建 - SPSubscriptionSettingsServiceApplicationProxy – ServiceApplication $ appSubSvc $ appAppSvc = 新建 - SPAppManagementServiceApplication - ApplicationPool $ appPoolAppSvc - 名称 AppServiceApp - 数据库名称 AppServiceDB $ proxyAppSvc = 新建 - SPAppManagementServiceApplicationProxy - ServiceApplication $ appAppSvc步骤2:启动所需的服务要验证这一点,请单击开始->指向管理工具->然后单击服务.在服务"列表中,验证"SharePoint管理"和"SharePoint Timer"服务正在运行.为了使应用程序正常运行,您需要具有应用程序管理"和 订阅设置服务应用程序已配置.在创建这些服务应用程序之前,请验证以下服务是否正在服务器上的管理服务"页面中运行. •应用程序管理服务•Microsoft SharePoint Foundation订阅 设置服务您可以在中央管理员的服务器上的服务"页面上进行验证.步骤3:配置应用程序网址要使用管理中心配置应用程序URL,请执行以下步骤. •在管理中心中,单击应用程序". •在应用程序"页面中,单击配置应用程序URL". •在应用程序域"框中,键入先前为托管应用程序而创建的应用程序域.就我们而言 我们已经使用了app.practice.com. •在应用程序前缀"框中,键入名称以用作应用程序的URL前缀. •单击确定.错误1:在部署步骤为SharePoint安装应用"中发生错误:系统帐户无法执行此操作." SharePoint不允许您使用服务器场帐户(系统帐户)安装或卸载应用程序.如果您尝试使用以下方式部署您的应用程序 在Visual Studio F5中,如果使用系统帐户"执行此操作,则会出现以下错误之一:解决方案:现在,尝试使用其他帐户登录到计算机并尝试安装该应用程序.您可能会收到以下错误.错误2:在部署步骤中出现错误为SharePoint安装了应用程序":本地SharePoint服务器不可用.检查服务器是否正在运行并已连接到SharePoint场".解决方案:要解决上述错误登录,请使用 系统帐户,然后打开SQL Server Management Studio,并将db_owner权限分配给您用来为以下数据库部署应用程序的帐户. •SharePoint_Config•SharePoint_Admin_ [GUID]•当前的Web应用程序内容数据库 需要托管应用程序•应用程序管理服务应用程序数据库•订阅设置服务应用程序数据库(可选)部署的应用程序将显示在网站内容中.但是,在单击应用程序名称时会生成空白页.请让我知道我缺少什么.解决方案I am quite new to Sharepoint Apps.Following the below steps, have created a SharePoint hosted App in SP 2016 on premise farm;Step 1: Create an Isolated App DomainIf you want to create and deploy SharePoint Hosted apps, you must create an isolated app domain where your apps for SharePoint will run. 1. Start the SharePoint 2013 Management Shell.• net start spadminv4 • net start sptimerv4Create your isolated app domain your apps, for example "apps.practise.com".• Set-SPAppDomain "apps.practise.com"Ensure that the SPSubscriptionSettingsService and AppManagementServiceInstance services are running.•Get-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"} | Start-SPServiceInstanceVerify that the SPSubscriptionSettingsService and AppManagementServiceInstance services are running.•Get-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"}You must specify a farm admin account under which the SPSubscriptionService and AppManagementServiceInstance services will run. This farm admin account must be an SPManagedAccount. If your farm admin is not an SPManagedAccount, you can create a SPManagedAccount with your farm admin credentials by typing the following command in the SharePoint Management Shell (You will be prompted for the farm admin domain\user and password).•$account = New-SPManagedAccountSpecify a farm admin account, application pool, and database settings for the SPSubscriptionService and AppManagementServiceInstance services.$account = Get-SPManagedAccount "domain\username" $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 AppServiceApp -DatabaseName AppServiceDB $proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvcStep 2: Start the Required ServicesTo verify this, click Start -> point to Administrative Tools -> and then click Services. In the Services list, verify that the SharePoint Administration and SharePoint Timer services are running. For apps to work, you need to have the App Management and Subscriptions Settings Service Applications configured. Before creating these service applications verify that the following services are running in the Manage Services on Server page. • App Management Service • Microsoft SharePoint Foundation Subscription Settings service You can verify the same from the Services on Server page in central admin.Step 3: Configure App URLsTo configure App URLs using Central Admin, follow the below mentioned steps. • In Central Admin, click on Apps. • In Apps page, click on Configure App URLs. • In the App domain box, type the app domain that was created earlier for hosting apps. In our case we have used app.practice.com. • In the App Prefix box, type a name to use for the URL prefix for the apps. • Click OK.Error 1: "Error occurred in deployment step ‘Install app for SharePoint’: The System Account cannot perform this action." SharePoint will not allow you to install nor uninstall apps using the farm account (System Account). If you try to deploy your app using Visual Studio F5 you will get one of the following errors if you do it using System Account: Solution: Now try to log in into the machine using some other account and try to install the app. You might receive the following error.Error 2: "Error occurred in deployment step "Installed app for SharePoint": The local SharePoint server is not available. Check that the server is running and connected to the SharePoint Farm" Solution: To resolve the above error login using system account and open the SQL server management studio and assign the db_owner permissions to the account which you are using to deploy the app for below databases. • SharePoint_Config • SharePoint_Admin_ [GUID] • Current web application content database that needs to host the app • App management service application database • Subscription Settings service application database (Optional)The deployed App is showing in Website content. However on click of app name a blank page gets generated.Kindly let know what i am missing. 解决方案 这篇关于sharepoint托管的应用程序显示空白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-13 13:31