使用资源添加包时出错 [英] Error While Adding Package with resources

查看:70
本文介绍了使用资源添加包时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用(espackages.asmx)webservice和function(addpackagewithresources)添加包时收到以下错误

I'm receiving the following error while adding package using (espackages.asmx) webservice and function (addpackagewithresources)

 

错误详细信息:System.Web.Services.Protocols.SoapException:服务器无法处理请求。 ---> System.Exception:在'BASIC'HOSTING_SPACE_WR上执行'ADD'任务时出错---> System.Exception:无法创建网站---> System.Exception:
在'Sarah-Marketing.com'WEB_SITE上执行'ADD'任务时出错---> System.Web.Services.Protocols.SoapException:System.Web.Services.Protocols.SoapException:服务器无法处理请求。 ---> System.IO.FileLoadException:文件名:\\?\ C:\ Windows \system32 \inetsrv \config \ applicationHost.config

错误:无法写入配置文件





  在Microsoft.Web.Administration.Interop.AppHostWritableAdminManager.CommitChanges()

  在Microsoft.Web.Administration.ConfigurationManager.CommitChanges()

  在Microsoft.Web.Administration.ServerManager.CommitChanges()

  在WebsitePanel.Providers.Web.Iis.ClassicAsp.ClassicAspModuleService.SetClassicAspSettings(WebVirtualDirectory virtualDir)

  在WebsitePanel.Providers.Web.IIs70.FillIISObjectFromVirtualDirectory(WebVirtualDirectory virtualDir)

  在WebsitePanel.Providers.Web.IIs70.CreateSite(网站网站)

  在WebsitePanel.Server.WebServer.CreateSite(网站网站)

   ---内部异常堆栈跟踪结束---

   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message,WebResponse response,Stream responseStream,Boolean asyncCall)

  在System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,Object [] parameters)

  在WebsitePanel.Providers.Web.WebServer.CreateSite(网站网站)

  在WebsitePanel.EnterpriseServer.WebServerController.AddWebSite(Int32 packageId,Int32 domainId,Int32 packageAddressId,Boolean addInstantAlias)

   ---内部异常堆栈跟踪结束---

  在WebsitePanel.EnterpriseServer.WebServerController.AddWebSite(Int32 packageId,Int32 domainId,Int32 packageAddressId,Boolean addInstantAlias)

  在WebsitePanel.EnterpriseServer.PackageController.AddPackageWithResources(Int32 userId,Int32 planId,String spaceName,Int32 statusId,Boolean sendLetter,Boolean createResources,String domainName,Boolean createInstantAlias,Boolean createWebSite,
Boolean createFtpAccount,String ftpAccountName,Boolean createMailAccount)

   ---内部异常堆栈跟踪结束---

  在WebsitePanel.EnterpriseServer.PackageController.AddPackageWithResources(Int32 userId,Int32 planId,String spaceName,Int32 statusId,Boolean sendLetter,Boolean createResources,String domainName,Boolean createInstantAlias,Boolean createWebSite,
Boolean createFtpAccount,String ftpAccountName,Boolean createMailAccount)

   ---内部异常堆栈跟踪结束---

  在WebsitePanel.EnterpriseServer.PackageController.AddPackageWithResources(Int32 userId,Int32 planId,String spaceName,Int32 statusId,Boolean sendLetter,Boolean createResources,String domainName,Boolean createInstantAlias,Boolean createWebSite,
Boolean createFtpAccount,String ftpAccountName,Boolean createMailAccount)

  在WebsitePanel.EnterpriseServer.esPackages.AddPackageWithResources(Int32 userId,Int32 planId,String spaceName,Int32 statusId,Boolean sendLetter,Boolean createResources,String domainName,Boolean tempDomain,Boolean createWebSite,Boolean
createFtpAccount,String ftpAccountName,Boolean createMailAccount)

   ---内部异常堆栈跟踪结束---

Error Details: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Error executing 'ADD' task on 'BASIC' HOSTING_SPACE_WR ---> System.Exception: Could not create web site ---> System.Exception: Error executing 'ADD' task on 'Sarah-Marketing.com' WEB_SITE ---> System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.FileLoadException: Filename: \\?\C:\Windows\system32\inetsrv\config\applicationHost.config
Error: Cannot write configuration file


   at Microsoft.Web.Administration.Interop.AppHostWritableAdminManager.CommitChanges()
   at Microsoft.Web.Administration.ConfigurationManager.CommitChanges()
   at Microsoft.Web.Administration.ServerManager.CommitChanges()
   at WebsitePanel.Providers.Web.Iis.ClassicAsp.ClassicAspModuleService.SetClassicAspSettings(WebVirtualDirectory virtualDir)
   at WebsitePanel.Providers.Web.IIs70.FillIISObjectFromVirtualDirectory(WebVirtualDirectory virtualDir)
   at WebsitePanel.Providers.Web.IIs70.CreateSite(WebSite site)
   at WebsitePanel.Server.WebServer.CreateSite(WebSite site)
   --- End of inner exception stack trace ---
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at WebsitePanel.Providers.Web.WebServer.CreateSite(WebSite site)
   at WebsitePanel.EnterpriseServer.WebServerController.AddWebSite(Int32 packageId, Int32 domainId, Int32 packageAddressId, Boolean addInstantAlias)
   --- End of inner exception stack trace ---
   at WebsitePanel.EnterpriseServer.WebServerController.AddWebSite(Int32 packageId, Int32 domainId, Int32 packageAddressId, Boolean addInstantAlias)
   at WebsitePanel.EnterpriseServer.PackageController.AddPackageWithResources(Int32 userId, Int32 planId, String spaceName, Int32 statusId, Boolean sendLetter, Boolean createResources, String domainName, Boolean createInstantAlias, Boolean createWebSite, Boolean createFtpAccount, String ftpAccountName, Boolean createMailAccount)
   --- End of inner exception stack trace ---
   at WebsitePanel.EnterpriseServer.PackageController.AddPackageWithResources(Int32 userId, Int32 planId, String spaceName, Int32 statusId, Boolean sendLetter, Boolean createResources, String domainName, Boolean createInstantAlias, Boolean createWebSite, Boolean createFtpAccount, String ftpAccountName, Boolean createMailAccount)
   --- End of inner exception stack trace ---
   at WebsitePanel.EnterpriseServer.PackageController.AddPackageWithResources(Int32 userId, Int32 planId, String spaceName, Int32 statusId, Boolean sendLetter, Boolean createResources, String domainName, Boolean createInstantAlias, Boolean createWebSite, Boolean createFtpAccount, String ftpAccountName, Boolean createMailAccount)
   at WebsitePanel.EnterpriseServer.esPackages.AddPackageWithResources(Int32 userId, Int32 planId, String spaceName, Int32 statusId, Boolean sendLetter, Boolean createResources, String domainName, Boolean tempDomain, Boolean createWebSite, Boolean createFtpAccount, String ftpAccountName, Boolean createMailAccount)
   --- End of inner exception stack trace ---

 

以下是技术细节。

< br $>
系统:Windows Server 2008 R2

Websitepanel版本:1.0.2

邮件服务器:hmail 5

Web服务器:IIS 7.5

Here is Technical details.

System: Windows Server 2008 R2
Websitepanel version: 1.0.2
Mail Server: hmail 5
Web Server: IIS 7.5

请告诉我该怎么做。

 

BR,

推荐答案

您好,

该错误表明WSP服务器帐户没有写入权限applicationHost.config文件。默认情况下,WSP服务器在具有管理权限的应用程序池中运行(默认情况下为WPServer帐户)。我建议你打开IIS管理器 - >
点击应用程序池 - >点击"WebsitePanel服务器池" - >点击"高级设置.."在右侧操作窗格中 - >检查应用程序池标识的设置是什么,并确保该帐户是本地管理员
组的成员之一。

如果仍然无效,请尝试手动授予   accout WSP Server 应用程序池以及对"C:\ Windows \ System32 \inetsrv \ config"的读/写权限运行文件夹。

如果问题仍然存在,我建议您使用进程监视器进行进一步的故障排除:

The error indicates the WSP Server account doesn't have write access to the applicationHost.config file. By default, WSP Server runs in an application pool that has administrative privileges(WPServer account by default). I suggest you open IIS Manager -> click Application pools -> click "WebsitePanel Server Pool" -> click "Advanced Settings.." in the right actions pane -> Check what is the settings for application pool idendity and ensure the account is one of the menbers of the local administrators group.
If this still does not work, please try manually grant the accout WSP Server application pool run in read/write permissions to "C:\Windows\System32\inetsrv\config" folder.
If the issue persists, I would recommend you use process monitor for further troubleshooting:

使用进程监视器,过滤w3wp(IIS)进程
http://www.iislogs.com/articles/processmonitorw3wp/

Use Process Monitor, filter w3wp (IIS) processes
http://www.iislogs.com/articles/processmonitorw3wp/

过滤w3wp.exe进程,重现此问题。按ctrl + F 并搜索applicationhost.config,选中"拒绝访问"条目。信息。然后将拒绝用户的读/右权限授予"C:\ Windows \ System32 \inetsrv \ config"。文件夹。

Filter w3wp.exe process, reproduce this issue. Press ctrl+F and search for applicationhost.config, check the entry with "Access Denied" information. Then grant the denied user read/right permission to "C:\Windows\System32\inetsrv\config" folder.

希望这可以提供帮助,谢谢。

Hope this can help, thanks.


这篇关于使用资源添加包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆