.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

SiteUrl feature property error when using BCS/BDC Model in VS 2010 Beta 2

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :SharePoint
I'm having this problem, and im not sure if this is a bug or im supposed to do something.

When creating a BDC (BCS) model in VS2010 Beta 2, VS adds a property called "SiteUrl" to the BDC feature properties (You can find that in the properties panel when you select the BDC model item in solution explorer).
This property is causing a problem when i try to deploy the package to another server; obviously because it is storing my development machine site Url and when it gets activated on the other server (test server) it will throw an error saying that the site does not exist.
The workaround that i do is to remove that property and create the package, which works fine, but then if i close VS and reopen the solution again, the SiteUrl property comes back again.

I can also see that this will cause a problem if other developers are working on the same code. They will basically get that SiteUrl on their machine which might point to another developer's machine. 

Any comments on this?

View Complete Post

More Related Resource Links

Error when deploying a BCS model - SharePoint wants the SiteUrl property set, but it should not be n


Hi all,

We are getting the following error message when trying to deploy a BCS model as a feature:

The default web application could not be determined. Set the SiteUrl property in feature xxx_yyy to the URL of the desired site and retry activation.

The problem is apparently the missing SiteUrl property on the feature, which is needed to locate the BCS service - but we have deployed many times before without this property! The problem with this property is that it's environment specific, so setting it would make our WSP only good for one specific environment.

According to the following thread, we SHOULD be able to deploy BCS models without the SiteUrl feature (at least in RTM):


Any idea on how this can be solved?  Adding the SiteUrl is not an option since we can't possibly create separate WSPs for different environments.


BDC model in Search Server 2010 indexing error - Error while crawling LOB contents. ( Not a valid Wi

I have created a .NET connector assembly that pulls data from an in-house .asmx web service.  I have successfully created an external list in a search center site that displays this data without problem.   However, I've run into an error and a warning when indexing this list in search server 2010 for which I cannot find much information.  I've configure a content source with LOB data as the content source type and select my external data source from the list. After running a full crawl, I receive this error: Error while crawling LOB contents. ( Not a valid Win32 FileTime. ) And this warning: The content for this address was excluded by the crawler because this item was marked with a no-index meta-tag. To index this item, remove the meta-tag and recrawl. My .NET connector assembly looks like this:   public static WeatherEntity ReadItem(string id) { foreach (WeatherEntity entity in GetAllEntities()) { if (entity.LocationAbbreviation == id) { return entity; } } return null; } public static IEnumerable<WeatherEntity> ReadList() { return GetAllEntities().ToArray(); } public static List<WeatherEntity> GetAllEntities() { List<WeatherEntity> weatherEntities = new List<WeatherEntity>(); WeatherService.WeatherWS service = new WeatherService.WeatherWS(); WeatherService.DsWeatherDa

Error deploying workflow feature in VS 2010


Hi all,

I have a VS 2010 state machine workflow solution, and am getting errors deploying the feature.  It is a 2 part question:

1. The error is: "Error occurred in deployment step 'Activate Features': Feature with Id '8ebb19f1-c0cc-49be-9d48-f56d0c0cfdf8' is not installed in this farm, and cannot be added to this scope."  Here is my feature:

<?xml version="1.0" encoding="utf-8" ?>
<Feature Id="E7A6A9DB-FAA5-430E-8380-1C60A372879B" Scope="Site"
 ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" 
 ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver" >
 <Property Key="GloballyAvailable" Value="true" />
 <Property Key="RegisterForms" Value="*.xsn"/>
 <ElementFile Location="ApprovalFormWComments.xsn" /> 

I added in the feature Id attribute just to try to resolve the error, but that didn't help as VS adds in the ID and scope automatically based on your settings in the feature designer window.

2. If you noti

The default web application could not be determined. Set the SiteUrl property in feature


I am getting this error when I deploy a BCS feature generated by BCSMetaMan:

The default web application could not be determined. Set the SiteUrl property in feature Feature_Feature1 to the URL of the desired site and retry activation.

Searching the Internet tells me I need to put in a property in my feature file that sets the default site. However, what if I need to be able to deploy this other sites. Is there a way to set the value so it will use whatever site is the solution is being deployed to?

Upgrade error on feature when installing cummulative update august 2010 for Sharepoint 2010


We are not able to complete the installation of the cummulative upgrade for august 2010 becase of this error msg:

Feature Infrastructure - 9fnu - High - Feature Upgrade: Exception thrown updating content database with new version number for Feature 'MyFeature' (Id: '1860bfc8-f21b-48f0-bd0d-e7061d36921f') in Site 'http://www.site.com': Object reference not set to an instance of an object. 44432789-ef04-4587-9cb9-f97a5d7e0258

This is a custom feature that our company has developed. It is very simple, contains two content types (view xml below):

<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="MyCTFeature" Description="My feature description" Id="1860bfc8-f21b-48f0-bd0d-e7061d36921f" Scope="Site" Version="">
    <ActivationDependency FeatureDescription="Custom fields" FeatureId="24b9624b-0e56-44ad-9757-d06a5e1225af" FeatureTitle="MyFieldsFeature" />
    <ElementManifest Location="Kjerneside\Elements.xml" />
    <ElementManifest Location="Informasjonsside\Eleme

Newbie SharePoint Enterprise 2010 "Activate feature" / deploy error...


Hi all...

I am a complete newbie to SharePoint.

I have installed VS2010 and SharePoint Enterprise 2010.

I am administrator on the server, I am db_owner on content DB, I am in the

WSS_ADMIN_WPG, I am a farm administrator and I am quite sure that I am the site

collection owner.

Aren´t these permissions the right ones for a developer or do I need anything?


When I deploy my solution from VS2010, I get a "
Error occurred in deployment step 'Activate Features': Feature with Id '8bafdda9-

e6cc-49da-9438-49b1f7be383e' is not installed in this farm, and cannot be added to

this scope."

Why do I recieve this error!?

Please help, before I turn mad! :-(

ASP.NET 4 and Visual Studio 2010 Web Development Beta 2 Overview

Many exciting changes for ASP.NET are coming in the .NET Framework version 4. This document gives an overview of many of the new features that are included in the Beta 2 release of the .NET Framework 4 and of Visual Studio 2010.

Visual Studio 2010 Beta 2

This is a big deal. This isn't ".NET 3.6" - there are a lot of improvements of .NET 4, and it's not just "pile on a bunch of features so you get overwhelmed." I've been working with and talking to many of the teams involved and even though it's a cheesy thing to say, this is a really customer-focused release.

ASP 4 - Whirlwind Tour around .NET 4 (and Visual Studio 2010) Beta 1

There's a lot of stuff that's new and added in .NET 4, but not in that "overwhelming-I-need-to-relearn-everything" way. More in that, "oh, this is way easier/simpler now" way. Like, moving data around with ADO.NET DataServices is easy, binding with client templates is easy, there's F# if you need it, the "dynamic" keyword if you need it, Silverlight's already installed, oh, and the parallel stuff will freak you out, but in a good way.

Jscript error: Object does not support property or method


 Hi, i have little knowledge on javascript but i need to use this code get from somewhere for a jquery to work.

I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.

In my experience, im get this error msg 9 out of 10 times i use javascript in my system.

Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.

But anyway, in short, i just couldn't use javascript code when using this development tool because of this sort of error.

Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.

But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.

It doesn't really seems like its the code problem itself although im not sure, because any javascript code just couldn't work.

So below is my code that i need to use.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src=&quo

OneNote 2010: Creating OneNote 2010 Extensions with the OneNote Object Model


Learn how to build applications and plug-ins that interoperate with data from OneNote 2007 and 2010 using the OneNote Object Model library freely available on CodePlex. Andy Gray demonstrates how easy it is to integrate information from OneNote notebooks, sections and pages into smart client and Web apps.

Andy Gray

MSDN Magazine July 2010

Using Dynamic Property inside Html Helper with Razor fires an error



I have the following with Razor:

@Html.GoogleAjax(View.GoogleAjaxKey, new String[,] { { "jquery", "1.4.2" } })

And the I get a strange error:

  'System.Web.Mvc.HtmlHelper<object>' has no applicable method named 'GoogleAjax' but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax.

What is strange is that it works fine using:

@Html.GoogleAjax("123", new String[,] { { "jquery", "1.4.2" } })

I tried the following code line:


And the key is displayed just fine so the problem is how I use the value of @View.GoogleAjaxKey into Html.GoogleAjax.

Do I need to change something on my Html Helper? Here it is:

    public static MvcHtmlString GoogleAjax(this HtmlHelper helper, String key, String[,] libraries) {


error in MicrosoftAjax.js: Cannot read property '_notified' of null


I am cross testing my project with multiple browsers: IE7, Firefox and Chrome.

One one page I have a dynamically built table with two DropDownLists and CascadingDropDown extenders. Maybe the only thing special about the drop down lists is, that I add a "onChange" for the second drop down list in each row which shows or hides the list depending on the value populated from the web services.

All of this works perfectly in IE7 and Firefox, but Chrome does not execute the JavaScript in the onChange attribute and the error console says:

Uncaught TypeError: Cannot read property '_notified' of null

Visual Web Dev 2010 error or new user error?


In a new web app, using the fresh new build, I added some fields that I wanted processed during login, i.e. common Profile stuff... added them to web.config.... sadly it appears that Studio 2010 will not automatically create a ProfileCommon class from ProfileBase, as previous studio web IDE's would do - that was frustrating for a bit, then I just created my own class... but that led to this interesting problem.

When populating the new profile attributes, the code behind class could not resolve any of the textbox referenced, all showed as not defined... figuring it was something simple, I kept going... added a customValidation control I needed, but though I double clicked the event in studio, and it dutifully created the stub code for me... the event never fired.

Determined to locate the problem I poored through forum entries and every reference I could (found lots of folks complaining about the profileCommon class stuff which is what led me to create my own class finally) -- but nothing specific to the problem I had of not seeing defined controls that were clearly there and working nor my customValidator control.

But... all of the code samples I saw - none had the ContentTemplate section... curious I removed that section, other items started to fail that were logical (header tags, etc.) but, my code behind section snapped back into order, intelisense n

Object or Property is not supported in IE8 - javascript error



I am using following code line in my web app through external javascript file.






both these methods are working fine in IE6 but failing in IE8 with a error: "Object or Property is not supported".


any solution would be appreciated!



Unable to search Custom User Property Created in User Profiles in SharePoint 2010


Hi ,

I have created a custom user property,and created metadata property and added mapping to it, still i m not able to Search in People,Please advise

Viewmodel property not set to [Required] yet getting error message saying it is?


I have a viewmodel that i use for my view

public int SelectionId{ get; set; }        
public IEnumerable<Selections> Selections { get; set; }

Notice that SelectionId is not decorated with [Required]. In my view, i use DropDownFor like this:

<%= Html.DropDownListFor(m => m.SelectionId, new SelectList(Model.Selections, "Id", "Name"), "--- Select ---")%>

It should be possible to not select anything from the dropdown, resulting in model.SelectionId = 0, which is fine. Why do i get a "SelectionId field is required" error when i Post?  If i do this:

<%= Html.DropDownList(mySelectionId, new SelectList(Model.Selections, "Id", "Name"), "--- Select ---")%>

I no longer get the error if i dont select anything, which is what i want - but no way to bind it to the id if the user does select something

thanks for any help!

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend