Friday, May 07, 2010 11:41 AM Jan Tielens

SharePoint 2010 BDC Model Deployment Issue: “The default web application could not be determined.”

Yesterday I tried to deploy a Business Data Connectivity Model project created in Visual Studio 2010 to my SharePoint 2010 test server (all RTM versions), but during the deployment of the solution, SharePoint threw my following error:

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

A little bit of searching on the internet taught me that I was not the only one having this issue, actually Paul Andrew describes how to solve it in this post. Although Paul describes what to do, his explanation is not, let’s say, very elaborate. :-) So let’s describe the steps a little bit more in detail:

  1. Create a new Business Data Connectivity Model project in Visual Studio 2010 and (optionally) implement all your code, change the model etc. When you try to deploy you get the error mentioned above.
  2. To fix it, in the Solution Explorer, navigate to and open the Feature1.Template.xml file (the name could be different if you decided to give your feature a different name of course).
  3. Add the following XML in the Feature element that’s already there (replace the Value with the URL of your site of course):
      <Properties>
        <Property Key='SiteUrl' Value='http://spf.u2ucourse.com'/>
      </Properties>

    The resulting XML should look like:

    <?xml version="1.0" encoding="utf-8" ?>
    <Feature xmlns="
    http://schemas.microsoft.com/sharepoint/">
      <Properties>
        <Property Key='SiteUrl' Value='http://spf.u2ucourse.com'/>
      </Properties>
    </Feature>
  4. Deploy the solution, now without any issues. :-)

What happens now, is that when Visual Studio creates the SharePoint Solution (the WSP file), it will use the Feature template XML to generate the Feature manifest, which will now include the missing property.

Filed under:

Comments

# Nigeria : The Questions Bio Must Ask | FIFA World Cup

Pingback from  Nigeria : The Questions Bio Must Ask | FIFA World Cup

# Facebook privacy settings exploit&nbsp;|&nbsp;VideoCollection

Pingback from  Facebook privacy settings exploit&nbsp;|&nbsp;VideoCollection

# I want to use a .in domain in blogger publishing? | Domain hosting

Pingback from  I want to use a .in domain in blogger publishing? | Domain hosting

# How Does Cheap Lawyers Work? | Legal Stuff

Friday, May 07, 2010 7:42 PM by How Does Cheap Lawyers Work? | Legal Stuff

Pingback from  How Does Cheap Lawyers Work? | Legal Stuff

# Under Counter Appliances

Friday, May 07, 2010 7:46 PM by Under Counter Appliances

Pingback from  Under Counter Appliances

# Get More Comments On Your WordPress Blog | ????????????

Pingback from  Get More Comments On Your WordPress Blog | ????????????

# Why do my clothes get pink stains in the washer?

Friday, May 07, 2010 10:16 PM by Why do my clothes get pink stains in the washer?

Pingback from  Why do my clothes get pink stains in the washer?

# Which Canon EOS (SLR) camera is best? | Canon Eos Cameras

Pingback from  Which Canon EOS (SLR) camera is best? | Canon Eos Cameras

# Why did the US Soccer team have their team logo taped over during today&#8217;s match against Nigeria? | FIFA World Cup

Pingback from  Why did the US Soccer team have their team logo taped over during today&#8217;s match against Nigeria? | FIFA World Cup

# What You May Not Know About Warts Treatment

Saturday, May 08, 2010 2:12 AM by What You May Not Know About Warts Treatment

Pingback from  What You May Not Know About Warts Treatment

# Nigeria says World Cup hotel is too noisy | FIFA World Cup

Pingback from  Nigeria says World Cup hotel is too noisy | FIFA World Cup

# Crescendo Pet Products ?? Solar Auto Darkening Darken Welding &#8230; | Hood Coachwork Design

Pingback from  Crescendo Pet Products ?? Solar Auto Darkening Darken Welding &#8230; | Hood Coachwork Design

# If Front Page is used to build your website, can you utilize an outside web gallery for the photo pg? | BingSite

Pingback from  If Front Page is used to build your website, can you utilize an outside web gallery for the photo pg? | BingSite

# &#8216;Fan embassies&#8217; to help England supporters at World Cup | FIFA World Cup

Pingback from  &#8216;Fan embassies&#8217; to help England supporters at World Cup | FIFA World Cup

# Sharepoint 2010 Blogs

Saturday, May 08, 2010 5:09 PM by Sharepoint 2010 Blogs

Pingback from  Sharepoint 2010 Blogs

# Acer Laptop on sale at WalMart? Reviews? | Domain hosting

Pingback from  Acer Laptop on sale at WalMart? Reviews? | Domain hosting

# What percentage of lawsuits settle before trial. Can you find any statistics on personal injury settlements? | Structured Settlement Svc. - Settlement Payout

Pingback from  What percentage of lawsuits settle before trial. Can you find any statistics on personal injury settlements? | Structured Settlement Svc. - Settlement Payout

# Did Bush outsource essential government services to GOP corporate backers? | Personal services

Pingback from  Did Bush outsource essential government services to GOP corporate backers? | Personal services

# Chrysler Recalls Dodge Ram 2500, 3500 HD Pickup Trucks to Clean Up &#8230; | Dodge Automotive Marque

Pingback from  Chrysler Recalls Dodge Ram 2500, 3500 HD Pickup Trucks to Clean Up &#8230; | Dodge Automotive Marque

# Setting up 404 page in website, made .htaccess file, but no luck? | Web Hosting and Web Design For Small Business

Pingback from  Setting up 404 page in website, made .htaccess file, but no luck? | Web Hosting and Web Design For Small Business

# Is there a way to find the laptop drivers for my laptop? | Domain hosting

Pingback from  Is there a way to find the laptop drivers for my laptop? | Domain hosting

# how is the national health care in Great Britain, New Zealand, Australia, Sweden, Finland, Denmark, Norway,? | FIFA World Cup

Pingback from  how is the national health care in Great Britain, New Zealand, Australia, Sweden, Finland, Denmark, Norway,? | FIFA World Cup

# Please answer &#8211; VPS hosting &#8211; Which one is good for me ? Pls Read DETAILS? | BingSite

Pingback from  Please answer &#8211; VPS hosting &#8211; Which one is good for me ? Pls Read DETAILS? | BingSite

# divorce,lawyer? | Personal injury lawyer

Monday, May 10, 2010 6:47 PM by divorce,lawyer? | Personal injury lawyer

Pingback from  divorce,lawyer? | Personal injury lawyer

# How to configure iis in domain user login? | TV drama

Pingback from  How to configure iis in domain user login? | TV drama

# re: SharePoint 2010 BDC Model Deployment Issue: “The default web application could not be determined.”

Sunday, May 16, 2010 2:16 PM by Wholesale polo shirts

nice share, good

article, very usefull for me...thank you

# re: SharePoint 2010 BDC Model Deployment Issue: “The default web application could not be determined.”

Monday, July 05, 2010 10:49 AM by Andre

Hello,

i have nearly the same Problem. I have a Farm-Scoped BCS Feature but it is part of a SiteTemplate.

The idea behind this is that everyone can deploy my SiteTemplate including the BCS-Features (and some additional stuff).

But my problem is that i have not idea how to determine the current WebApplication/SiteUrl dynamically.

I have already tried to use things like ~site and ~sitecollection.

Do you have any idea what i could do?

THANKS!

# re: SharePoint 2010 BDC Model Deployment Issue: “The default web application could not be determined.”

Thursday, July 08, 2010 11:09 PM by ugg boots

i have nearly the same Problem. I have a Farm-Scoped BCS Feature but it is part of a SiteTemplate.

The idea behind this is that everyone can deploy my SiteTemplate including the BCS-Features (and some additional stuff).

# re: SharePoint 2010 BDC Model Deployment Issue: “The default web application could not be determined.”

Monday, July 19, 2010 9:52 AM by Ashish

Adding this siteurl is an issue because when you want to distribute this to your customers -

the problem is when i change my servers - i have to repackage the wsp with the correct new site url - any workarounds for this?