Archive

Posts Tagged ‘Visual Studio’

TFS 2008 – Project deleted but SharePoint side failed to be deleted

January 11th, 2010 Patrick No comments

I tried to use TFSDeleteProject command to remove the project from the TFS server,

tfsdeleteproject /server:myserver myprojectname

but at the end of the process there is this error message

Deleting from Build …
Done
Deleting from Work Item Tracking …
Done
Deleting from Version Control …
Done
Deleting Report Server files …
Done
Deleting SharePoint site …
Could not connect to ‘
http://TFS08:17012/_vti_adm/admin.asmx’
The request failed with the error message:

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="
http://tfs08:17012/_layouts/1033/error.aspx?ErrorTe
xt=Request%20timed%20out%2E">here</a>.</h2>
</body></html>

Then I tried to repeat the command again with the /force option (tfsdeleteproject /force /server:myserver myprojectname), I still get the error

Deleting from Build …
Done
Deleting from Work Item Tracking …
Done
Deleting from Version Control …
  Not found
Deleting Report Server files …
  Not found
Deleting SharePoint site …
Exception of type ‘Microsoft.SharePoint.SoapServer.SoapServerException’ was thro
wn.
Deleting from Team Foundation Core …
Done

But actually what happened is everything within TFS have been safely removed except the SharePoint, so you need to go into SQL Server Management Studio and connect to WSS_Config database

Select Id From Sitemap Where Path = ‘/Sites/myprojectname’

Grab the Id and execute this SQL

exec dbo.proc_dropSiteMap @Id=%Id%

After that you still need to clean up your WSS_Content database by executing this

exec proc_DeleteSite %Id%

But do note you might have nothing to delete in the WSS_Content

Slides and documents on Devtalk 10 Apr 09

April 11th, 2009 Patrick No comments

Go here to download the files

Categories: Uncategorized Tags: , ,

SharePoint innovations in Visual Studio 2010

November 15th, 2008 Patrick No comments

Today there is no build in support for SharePoint found inside Visual Studio 2008 except the SharePoint workflow project. If you want to create studd like Site Definition etc. you need to download the Windows SharePoint Services 3.0 Tools for Visual Studio. It is available for VS2005 as well as VS2008. So in TechEd EMEA 2008, Microsoft announced that Visual Studio 2010 tools for SharePoint will be build in for VS2010.

Channel 9 did an interview with Reza Chrisaz on what are the new features in VS2010 for SharePoint developers. You can download the video here.  I list down some of Reza’s Key callouts

image 
SharePoint project templates build-in for VS2010

image 
At last!! Visual designer for SharePoint webparts!!

image
Exploring SharePoint artifacts inside Server Explorer

 

image
Package Explorer - sort of like the one we have with VseWSS today

image 
One of my favourite feature - the feature explorer

 

image

Adding Solution to TFS source control with Team Build and nightly build support

Categories: Uncategorized Tags: , , , ,

How to deploy a WCF web service project onto IIS6/7

October 15th, 2008 Patrick No comments

clip_image002

In your webservice project, you have PrecompiledWeb folder, this folder contain the web service project in compiled form. Copy the content of the PrecompiledWeb, which is the CustomXmlService folder in this case to c:\inetpub\wwwroot

clip_image004

Now the folder is a website in the web server (but without the ability to run .NET code) so go to your IIS manager console to make this website to a web application. In the console you will see that you newly copied folder does not have a globe icon.

clip_image006

You can see the website in your Default Web Site, in IIS7 right click and select Convert to Application.

clip_image008

Still inside IIS7, a new window will pops up, click OK to accept the settings.

clip_image010

For IIS6 right click to open up the property page of the website

image

A new window will pops up, showing the default Directory tab

image

What you need to do is to click on the Create button on the lower half of the window

image

Click OK if you are not changing the application pool or execute permissions. Leave the permission at Scripts only.

To test out the web service, open it inside browser and the service description will come out.

clip_image012

In Visual Studio client project, delete your project Service Reference and add a new one pointing to this deployed web site.

clip_image014

Categories: Uncategorized Tags: , ,

New DevTalk monthly presentation

October 8th, 2008 Patrick No comments

image

Are you looking to increase your knowledge and understanding of Visual Studio Team System(VSTS) 2008? Microsoft invites you to attend devTalks, a series of monthly technical presentation and demos.

Visual Studio Team System 2008 as an integrated Application Life-cycle Management (ALM) solution comprising tools, processes, and guidance. In this series of technical seminar, you will learn how VSTS It enables members of your team to:

· Collaborate and communicate more effectively with other team members and business stakeholders

· Ensure software quality using advanced quality tools at every step of the application life cycle

· Gain visibility into project activity and priorities to make informed decisions based on real-time data

Below here is the agenda for the upcoming devTalks event on 14 November 2008, Friday.

clip_image002

For more information about the upcoming devTalks events, please visit http://www.microsoft.com/malaysia/events/devseminar.

Categories: Uncategorized Tags: , ,

Thoughts on C# 4.0

July 17th, 2008 Patrick No comments

Yes yes… meet the design team on C# 4.0. C# 3.0 was out with Visual Studio 2008 so it is natural to start look at the future of the language now. This is an interesting team as they got guys from different background i.e. SQL Server, VB, IronPython and even Javascript. We continue to have the father of C# Anders Hejlsberg in the talk here.

http://channel9.msdn.com/posts/Charles/C-40-Meet-the-Design-Team/

Categories: Uncategorized Tags: ,

Articles about debugging in Visual Studio

June 3rd, 2008 Patrick No comments

Teaching debugging and exception handling in Visual Studio today and some interesting questions pops up. Among them is how come certain variable’s value cannot be changed during debugging while the others can?

I haven’t found a solid answer yet except from frice’s blog:

Like the Immediate window, sometimes you can change local variable values by selecting the variable you want to change and clicking the Value box. If VB lets you to change the variable, the Value field will let you edit it. Some things can’t be changed though. For example, you can’t change objects, such as the properties of a control, or certain Variant variables. In cases where you can’t change the values of a variable in the Locals window, you can use the Immediate window to test the change.

Below are some related articles/ blog post.

VS 2005: Cool debugging tricks

Basic Debugging features in Visual Studio 2005

New debugging features in Visual Studio 2005

Categories: Uncategorized Tags:

Develop OBA on Windows Server 2008 & Visual Studio 2008

February 24th, 2008 Patrick No comments

From 25th to 27th March 2008, I will be conducted a class for Certified Partners in Malaysia on creating Office Business Applications with the latest Visual Studio 2008 (VSTO 3.0) on top of Windows Server 2008. Windows Server 2008 will be something new to me so I will create a series of blogs on how to setup an SharePoint 2007 + Office 2007 development environment on WS08 later. So stay tuned.

To find out more about the launch of latest Windows Server, SQL Server and Visual Studio check it out here.

Can’t get enough of VSeVSS? Get SmartTemplate then

February 21st, 2008 Patrick No comments

Jan Tielens who created the SmartPart project came up with another SharePoint project called SmartTemplate. Similar to VSeWSS, SmartTemplate ease the development of SharePoint projects by automating the creating of configurations file with wizards and tools. Further more, by integrating SharePoint Installer, a setup program is created for you as well, giving developers more automation without using STSADM to install the feature. Best of all, it is running inside VS2008!!

Download the project here, it is just v0.2 but can be used to created SmartPart and WebPart project. More are in the todo list, i.e. Event Handler and Application Page project.

Here is the demo video I download from the CodePlex page.

 

[YouTube=http://www.youtube.com/watch?v=1xSb305Q30E]
YouTube - SharePoint SmartTemplate demo

Categories: Uncategorized Tags: , , , ,

Hiding Task Pane programmatically with VSTO

February 19th, 2008 Patrick No comments

Today I struggled for some time to figure out how to control the visibility of custom task pane in Excel 2007. I had done quite a few Word 2007 addin projects but this is the first time I try to do it in Excel.

In Word 2007 with VSTO 3.0 (that comes with VS2008) to hiding the custom task pane I would add this in the Click event code

Me.Application.TaskPanes(Word.WdTaskPanes.wdTaskPaneDocumentActions).Visible = False

But with Excel 2007 it is different. You have use the DisplayDocumentActionTaskPane class

Me.Application.DisplayDocumentActionTaskPane = False

I found the solution in the MSDN article here.

Just FYI, adding a action pane is same for both application using the following method

Me.ActionsPane.Controls.Add(actions)

Categories: Uncategorized Tags: , ,