SharePoint 4 Developers

Additional reference guide in .NET / SharePoint Development

New Blog - The saga continues

New Blog - The saga continues

Hi folks,

It is time for change, I have decided to move my blog to have my own space using the BlogEngine. Due to the fact it was developed using the ASP.NET, its customization is very simple and gives me freedom to create features for the blog.

The focus of the blog remains the same, to share my experiences as a .NET / SharePoint developer, which explains the name "SharePoint 4 Developers".

Gradually I am going to migrate the most important articles from the Spaces to here, in order to improve the blog and for users to use the search tool that comes with the BlogEngine by default.

Thanks to everybody who has helped me, the saga continues...

Cheers,

Marcel Medina

Click here to read the same content in Portuguese.

Article published in the Codificando .Net e-Magazine

My article about the News in SharePoint 2010 Development was published.
419BF2880E221BB9_592_08

Hi folks,

I would like to inform that in this Codificando .Net e-Magazine issue my article about the News in SharePoint 2010 Development was published! (in Portuguese language)

This article is very important because many of the things that I have already talked about Sandboxed Solutions and other SharePoint 2010 news are contained therein, and all the development news were listed and commented.

I consider this e-magazine very important because it provides excellent technical materials for the .Net community free of charge!

Thanks to Codificando .Net and all the editorial team for this opportunity!

Link: http://www.codificandomagazine.com.br/revista/post/Edicao-15.aspx

Cheers,

Marcel Medina

Click here to read the same content in Portuguese.

Error occurred in deployment step 'Add Solution': Property 'SiteUrl' contains an invalid URL / The default web application could not be determined

Error occurred in deployment step 'Add Solution': Property 'SiteUrl' contains an invalid URL. Error occurred in deployment step 'Add Solution': The default web application could not be determined.

Hi folks,

These last days I faced an error in SharePoint 2010 while I was creating BDC Model projects. At the moment of deploying my solution I got this error message in the Beta version:

Error occurred in deployment step 'Add Solution': Property 'SiteUrl' contains an invalid URL. Import failed with the following exception message: The site <site> could not be found in the Web application SPWebApplication Name=<webapplication>.
Parameter name: properties

In the RTM version the error message changed a little bit, which is still not very clear:

Error occurred in deployment step 'Add Solution': The default web application could not be determined. Set the SiteUrl property in feature <feature> to the URL of the desired site and retry activation.
Parameter name: properties

In order to solve this issue, I searched at the Internet for similar issues and I found out an excellent article of Jan Tielens that explains a workaround for that.

Just because I don’t simply like to add links to other sites with specific solutions, due to broken links, I am going to let this available here in my blog.

Getting the error message

1 – Create a new solution with a project of type Business Data Connectivity Model according Figure 1:

1D806A05AA43783B_460_0[1]
Figure 1 – BDCModel Project

2 – Try to deploy by Visual Studio, the error message above will show up (depending on the version).

Correcting the problem

1 – Open the Feature XML file (Figure 1) and notice there is just only one property:

1D806A05AA43783B_460_1[1]
Figure 2 – Original XML File

2 – Add the following element to the XML, according Figure 2:

Code Snippet
  1. <Property Key="SiteUrl" Value="http://localhost/sites/portal"/>

1D806A05AA43783B_460_2[1]
Figure 3 – Updated XML File

Note: Change the SiteUrl value to your seu web site url.

3 – Deploy successfully!

References:
http://weblogs.asp.net/jan/archive/2010/05/07/sharepoint-2010-bdc-model-deployment-issue.aspx
http://blogs.msdn.com/pandrew/archive/2010/04/08/deploying-an-external-content-type-error.aspx

Cheers,

Marcel Medina

Click here to read the same content in Portuguese.