.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

Element 'address' is not allowed for content model

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :

I am validating XML file against XSD file using Stylus studio but  I am getting a lot of same error.

here is my xml and xsd
<?xml version="1.0" encoding="UTF-8"?>
listings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="foodiebytes_feed_menu_schema.xsd">

View Complete Post

More Related Resource Links

XML Signature xsd and Validation Error: Wildcard '##any' allows element causes the content model t

Hello,I'm trying to generate WCF client from Customer's WCF Service which has XML Signature options enabled.When trying to generate client proxy using svcutil I get following errors: Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152] Copyright (c) Microsoft Corporation. All rights reserved. Attempting to download metadata from 'http://donex:51343/WebServices /Service.svc' using WS-Metadata Exchange or DISCO. Error: There was a validation error on a schema generated during export: Source: Line: 1 Column: 13464 Validation Error: Wildcard '##any' allows element 'http://www.w3.org/2000/09/ xmldsig#:HMACOutputLength', and causes the content model to become ambiguous. A content model must be formed such that during validation of an element informati on item sequence, the particle contained directly, indirectly or implicitly ther ein with which to attempt to validate each item in the sequence in turn can be u niquely determined without examining the content or attributes of that item, and without any information about the items in the remainder of the sequence. Error: There was a validation error on a schema generated during export: Source: Line: 1 Column: 14410 Validation Error: Wildcard '##any' allows element 'http://www.w3.org/2000/09/ xmldsig#:XPath', and cau

Wildcard '##any' allows element and causes the content model to become ambiguous.



I just generated a service from a wsdl and when I try to bring up the wsdl for the service, I get the error below in the App_tracelog.

How do I work past this ? Should I be updated the annotations on objects like the one below?  The WSDL is part of a spec and I am reluctant to make changes there.

Wildcard '##any' allows element 'http://www.openiam.org/service/connector:containerID', and causes the content model to become ambiguous.


        public PSOIdentifierType containerID
                return this.containerIDField;
                this.containerIDField = value;

Reading a content of a web part with Object model

Hi, I need to programmatically read content of a web part (it's a content editor web part). Is it Possible? I'm planning to create an event receiver on a Page library which will read content of a web parts added to the selected page on a item added event. How can I get collection of a web parts on a page and how can I read their content. Thank you all. 

Client Object Model : Transactional update of list and content types

I am using Silverlight client object model to code against Sharepoint. Essentially, what I want is that when a user clicks a button, An item needs to be added to a list and also a new content type has to be created. button1_click() { //1. Create an item in a list. //2.  Create a new content type. } Also this should be transactional:  only if item is added should the content type be added too, otherwise roll back both. (and vice-versa). My understanding of client object model is that we at the core we are talking to Sharepoint WCF services. So if I say, using(TransactionScope scope = new TransactionScope()) { ClientContext.ExecuteQueryAsync(); scope.Complete(); } can I assume that the updation will be transactional??

SharePoint 2010 Content DB Recovery Model

Hello Everyone, the following link states that the content db for SharePoint 2010 uses simple recovery model. http://technet.microsoft.com/en-us/library/dd207314.aspx   whereas this link at SQL Server documentation says that Simple model is not suitable for production systems because it has risk of data loss http://msdn.microsoft.com/en-us/library/ms189275.aspx   These two look totally contradictory to me.  

External Content Type - Read List Operation - "Cannot find a collection element of a supported type.


I'm trying to define External Content Type Operations for an External Content Type. I can add a Connection, Type "WCF Service" no problem. And I can define a "New Read Item Operation" using that connection.

But I can't define a "Read List Operation". I get the following error message, in the Return Parameter Configuration: "Cannot find a collection element of a supported type..." it goes on to say - see the help documentation for supported types. I can't find any help documentation on this.

I've tried returning different types in the provider web service but keep getting the same error. What are the supported types the web service can return?

The reading I've done suggests that you can connect to a non-MS web service using a connection type of "WCF Service". Is this correct? If it is what's the best soap format the web service provider should use - Doc/Literal?



CASES & CONTENT of a Decision Tree Mining Model in One View


I would like to have a SQL view that presents both the CASES & CONTENT of the decision tree mining model in one view. Meaning - the view shall consist of the following fields: Node_Name, The Column to Predict, Unique Number (or Key) of a case, and input features of the case. Here is an example:

  Node_Name        | Key |   Column to Predict   | Input1 | Input2 | Input3 |...

0000000000101      |57|

0000000000101     |372|

0000000000100     |118|

0000000000100      |52|

0000000000100     |623|

000000000010000  |41|

000000000010000 |205|


I'm familiar with queries such as those:

FROM OPENQUERY(AnalysisServer,
'SELECT * FROM [MyMiningModel].Cases

FROM OPENQUERY(AnalysisServer,
AS Dmx

I wish that there was a way to present the information in one view.


Only Content controls are allowed directly in a content page that contains Content controls


Hello Everyone,

  I am getting this error "Only Content controls are allowed directly in a content page that contains Content controls". I am using a single aspx page and not a separate cs file. Now, to write code inside aspx page, I am using <script> tag. Now, my problem is inside one of the method I have to use <script> tag. Now, when i use that this error comes. Eg

  <script runat="server">

 ........inside it coding done

  // Method inside which I have to use this tag again

  public void abc()


........initially some code.........

Response.Write("<script>document.getElementById('PaylForm').submit();</script></body></html>");   //This gives error




Thanks in Advance.

Assigning External content type field column value using Client Object Model


I have a problem assinging External column value to ListItem object with client object model-based application I'm developing. To be precise, I am able to retrieve data related to external content type by reading external list created from this content type but I don't know how to properly use it to assign value to this field. By doing some research on my own I concluded that BDC ID column from external list is the way to go since it uniquely defines selected row from external list but that doesn't tell me much since I don't know what to do with it. Currently I ended up with partial solution - to assign plain string value of picker column but that makes this value visible only in "View Properties" option on Sharepoint and not in "Edit Properties" which pritty much makes sence since it isn't properly related to rest of the data in specific row. Does someone have a better solution for this?

Igor S.

Element 'content' is not a known element. this can occur if there is a compilation error in the we


Element 'content' is not a known element. this can occur if there is a compilation error in the website, or the web.config file is missing.

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<asp:Content   --- showed a green wavy line , and on hover displayed the above error.

Now I am having certain problems.

1. Visual Studio 2010 hangs when I try to use ToolBox.

2. Intellisense for asp.net controls is not working.

I have tried replacing web.config file (frm backup) , tried to debug - it doesnt show anything.

All other websites are working alright. Have problem with only one of the websites.

Model form open but page content is not show how to solve


i am  loading a page when we click a button .i am require a loadimage.show when i div laoding time and disapper when i div loaded but model form content is not show

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>

    <a class="ajax" href="http://www.google.com">
      Open as dialog

    <script type="text/javascript">
    $(function (){
        $('a.ajax').click(function() {
            var url = this.href;
            var dialog = $('<div style="display:hidden"></div>').appendTo('body');
            // load remote content
                function (responseText, textStatus, XMLHttpRequest) {
            //prevent the browser to follow the link
            return false;

Binding WPF Controls to an Entity Data Model

In this interview, programming writer, McLean Schofield, demonstrates how to bind WPF controls to an entity data model, using Visual Studio 2010 Beta 1. You can also learn more in the topic: Walkthrough: Binding WPF Controls to an Entity Data Model.

SharePoint Tutorial - Content Types

SharePoint content types provide users with a way to manage and organize content in a more meaningful way. It's a reusable of settings you want to apply to a particular type of document in a library or item in a list.

Enabling Users to Maintain SharePoint Content

When SharePoint is installed as a corporate intranet, there is a considerable amount of effort involved in maintaining the content to keep the site relevant. As we discussed in the first few parts of this series, SharePoint has many built-in features to reduce the burden on the site administrator.

Some areas of the site usually contain less-dynamic information. Internal memos and corporate policies are common examples of this information. One option for this information is to post these documents in a document library. Documents in a library are often stored in a few different formats: Word, Acrobat (PDF), or HTML. Each of these formats has its drawbacks.

IP Address Blocking or Restriction in SQL Server

"is it possible to block connections to SQL Server based on IP address". As far as now there is no official way in SQL Server to block the connections in SQL Server based on IP address. However this can be done from the OS end, we have the following three options available, refer HERE for more.

.RRAS IP Filter

Model View Controller (MVC) for ASP.NET

Model View Controller (MVC) architectures, immediately wonder how the MVC pattern can be applied in an ASP.NET world. This article will demonstrate how the MVC pattern can be applied to an ASP.NET web application and still maintain the basic Microsoft supplied architecture.

Dynamic Systems Development Model (DSDM) Methodology

The Dynamic Systems Development Model was developed in the U.K. in the mid-1990s. It is the evolution of rapid application development (RAD) practices. DSDM boasts the best-supported training and documentation of any of the agile software development techniques, at least in Europe. DSDM favors the philosophy that nothing is built perfectly the first time and looks to software development as an exploratory endeavor.
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