发布sharepoint2010 webpart报urlsite连不上的错误

本文介绍了解决在Visual Studio 2010中部署SharePoint项目时遇到的连接错误的方法。作者详细解释了如何找到并更新项目的SiteURL属性,以确保正确地连接到SharePoint服务器。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Updating the Site URL Property of Your SharePoint Development Project

I admit my Visual Studio 2010 and SharePoint development skills are a little rusty.  After all, I have spent the last year or so engaged solely in SharePoint and information architecture planning.  But that doesn't take away from the fact that SharePoint and Visual Studio development can be more than a little kludgy.

When attempting to deploy one of my new projects to my SharePoint server, I received this error message:
Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site. If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.
This is one of the more descriptive error messages I've encountered in SharePoint development.  It seemed easy enough, so I right-clicked my project in Solution Explorer and clicked "Properties."  (You can get to the same place by choosing "Properties" from the "Project" menu.)  That brought up the following:

SharePoint Project Properties Window

I clicked through all the tabs several times, and nowhere did I find a way to view or edit the "Site URL" property.  I even tried editing the solution's properties.  I was in the wrong place.

It turns out I was looking at the "Properties Page."  I needed the "Properties Window."  Why are some properties in a "page" and some in a "window," and why can't the error message specify the "Site URL property (from the Properties Window) of the project"?

SharePoint projects, just like other Visual Studio projects, display properties in the Properties window and the Properties Page. The properties that are displayed depend on the node that is selected.
The article then lists the different properties that are displayed for projects, project items, and project item files.  But it neglects to tell us whether the properties in those lists can be found in the "Properties Window" or the "Properties Page."

Evidently the "Properties Window" in Visual Studio is used to " view and change the design-time properties and events of selected objects…"  Well THAT sure clears it up.

When you go to the "View" menu, you will see both the "Properties Page" and the "Properties Window" (which is where the "Site URL" property is hidden):

Visual Studio View Menu

And now you can see and edit your project's "Site URL" field:

Visual Studio Properties Window
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值