首次使用 Web 部件的 WSPBuilder 问题

发布于 2024-08-26 17:50:20 字数 171 浏览 3 评论 0原文

我使用 WSPBuilder 制作了我的第一个 Web 部件。当我尝试使用 STSADM 部署它时,收到一条错误消息,指出访问被拒绝。我是这台机器的管理员(好吧,它是一个虚拟机)。

另外,使用 WSPBuilder,我是否需要更改配置文件(我假设不需要,因为该工具的目的是自动执行此操作)?

谢谢

I have made my first webpart using WSPBuilder. When I try to deploy it using STSADM, I get an error stating access is denied. I am an admin on the machine (well it's a VM).

Also, with WSPBuilder, do I need to change the config files (I assume no as the point of the tool is to automate this)?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

柠檬色的秋千 2024-09-02 17:50:20

您的问题可能有两个原因

  1. 即使您是系统管理员,您可能没有中央管理的权限。因此,使用sharepoint管理员的用户名登录系统并尝试部署它。
  2. 您创建 WSP 的方式可能有问题。如果您使用 WSP 部署 Webpart,则无需手动编辑配置文件。最近我创建了一个博客,解释如何创建简单的 Webpart、创建 WSP 和部署。如果有兴趣请查看 http://www.allaboutmoss.com/index.php/2010/03/22/hello-world-sharepoint-webpart-for-beginners/

There could two reasons for your problem

  1. Even though you are the admin of the system you may not have privilege in central Administration. So login in the system with the user name of sharepoint administrator and try to deploy it.
  2. There may be a problem in the way you created the WSP. if you deploy webpart using WSP then there is no need to edit the config file manually. Recently I have created a blog which explain how to create simple webpart, creating WSP and deployment. If interested check it out http://www.allaboutmoss.com/index.php/2010/03/22/hello-world-sharepoint-webpart-for-beginners/
淡淡的优雅 2024-09-02 17:50:20

听起来您没有足够的权限来添加 Web 部件。你使用什么操作系统?如果是 Windows Server 2008 R2 等,您必须以管理员身份运行命令提示符或为管理员关闭 UAC。至于配置,WSP 构建器将为您创建一个名为solution.txt 的文件,其中包含您的解决方案的 ID。为了更好地控制它正在执行的操作,您可以将名为“WSPBuilder.exe.config”的 WSP Builder 配置文件添加到您的项目中。可以在“C:\Program Files\WSPTools\WSPBuilderExtensions”中找到示例。

It sounds like you don't have enough permissions to add the webpart. What OS are you on? If it's Windows Server 2008 R2 etc you will have to run the command prompt as an administrator or turn off UAC for administrators. As for the config WSP builder will create you a file called solution.txt which contains the Id for your solution. For more control over what it is doing you can add a WSP Builder config file to your project called "WSPBuilder.exe.config". An example one can be found in "C:\Program Files\WSPTools\WSPBuilderExtensions".

怎会甘心 2024-09-02 17:50:20

前往-->运行-->服务.MSC-->检查以下服务是否启动。
Windows SharePoint Services 管理,如果没有,请启动此服务。如果 wsp 部署完成。进入中心管理-->操作-->全局配置-->解决方案管理。此页面包含场中解决方案的列表。检查您的 wsp 在此列表中。

Go to --> RUN--> SERVICES.MSC--> check the following service is started or not.
Windows SharePoint Services Administration, if not pls start this service. if the wsp is deployment done. go center admin--> Operations -->Global Configuration -->Solution management . This page has a list of the Solutions in the farm. check ur wsp in this list.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文