.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

Help: Could not find schema information for the element 'microsoft.web.services2'

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :.NET Framework
(Sorry I may have posted this in a wrong forum earlier) Hi, I've got this problem, trying to add a simple user authentication feature to my web service. I added the code directly copy-paste from MSDN as well as trying load of other ideas why this might happen... I've been getting these "information messages" that practically disables my client application from connecting to the web service. (I'm developing this on my PC, visual web developer 2005) Adding the microsoft.web.services2 section results in: Could not find schema information for the element 'microsoft.web.services2' Could not find schema information for the element 'security' Could not find schema information for the element 'securityTokenManager' Could not find schema information for the element 'type' Could not find schema information for the element 'qname' HELP PLEASE!!! web.config (relevant parts only, I cut out system.web and other sections): <?xml version="1.0"?> <configuration> <configSections> <section name = "microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </configSections> <microsoft.web.services2> <security> <securityTokenManager type="ServiceNameSpace.User,ServiceNameSpace" xmlns:wsse="ServiceNameSpace"

View Complete Post

More Related Resource Links

Encountered "Could not find schema information for the element 'microsoft.web.services3'"

Hi  , I have tried to close my web.config and reopen in VS2005 to re-compile but I still encountered this error :Could not find schema information for the element 'microsoft.web.services3' . I have added in the configSection and any reference for the web.service3. Appreciate anyone who can assist me.  Below are my parts of my web.config : <configSections> <section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </configSections> <webServices> <soapExtensionImporterTypes> <add type="Microsoft.Web.Services3.Description.WseExtensionImporter, Microsoft.Web.Services3, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </soapExtensionImporterTypes> <soapServerProtocolFactory type="Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </webServices> </system.web> <microsoft.web.services3> <security> <securityTokenManager> <add type="Microsoft.Web.Services3.Security.Tokens.UsernameTokenManager, Microsoft.Web.Services3, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35&qu

Could not find default endpoint element that references contract 'CurrencyProxy.CurrencyServiceSoap



I created 2 projects in my solution:

  1. Classic asp.net web service (asmx)
  2. Class library project which references service
  3. web site project which references class library project
  4. Windows app project which references service.

Both projects were created in 3.5 framework and in Visual Studio 2008 Beta 2.

I added web service reference to Class library project. When it asked for namespace I typed "CurrencyProxy". Projects build ok, but when I run web app, Class library throws an error: Could not find default endpoint element that references contract 'CurrencyProxy.CurrencyServiceSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

I believe it has something to do with app.config in Class library project. Here is part from app.config:

<binding name="CurrencyServiceSoap" closeTimeout=

Data Points: Updating Data in Linked Servers, Information Schema Views, and More


Every day a developer somewhere needs to write code to iterate through SQL ServerT system objects, query and update tables in linked servers, handle optimistic concurrency, and retrieve column and stored procedure metadata.

John Papa

MSDN Magazine November 2004

New Directions in Redirection: Microsoft Internet Information Services 5.0 Provides Two New Methods


Internet Information Services (IIS) 5.0 provides several enhancements to its support for ASP-based Web development, including two new server-side redirection methods: Server.Transfer and Server.Execute. Rather than redirecting requests with a round-trip to the client, these new methods can be used to transfer requests directly to an ASP file without ever leaving the server. While this functionality doesn't replace the Response.Redirect method used by IIS 4.0, you can take advantage of it to implement better application flow control mechanisms and to handle errors more efficiently. The different redirection options are described, along with some tips and tricks for implementing them on your own site.

Ram Papatla

MSDN Magazine April 2000

Schema :relatioship expected & constant/fixed element cannot have attributes

I try to bullkload data from xml file to SQL database ,but I cannot figure out the problem.Please anyone help me .I'd really appreciate. the XML file :  <?xml version="1.0" encoding="UTF-8"?> <root>        <!-- ????? -->        <common>               <!-- UploadDataCenterID???????????????? -->               <UploadDataCenterID>XXXXXX</UploadDataCenterID>               <CreateTime>YYYY-MM-DD HH:MM:SS</CreateTime>        </common>        <data>                 <BuildGroup id="XXXXXXXXXX">                        <BuildGroupBaseInfo operation="N|U">                             <F_BuildGroupName>?????</F_BuildGroupName>                             <F_GroupAliasName>???????</F_GroupAliasName>                             <F_GroupDesc><![CDATA[?????]]></F_GroupDesc>                      </BuildGroupBaseInfo>                      <BuildGroupRelaInfo operation="N|U">                             <F_BuildID>XXXXXXXXXX</F_BuildID>                      </BuildGroupRelaInfo>               </BuildGroup>        </data> </root> then the XSD :<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xs

The 'http://www.w3.org/2001/XMLSchema:schema' element is not declared.

Hi all,i have created  a .net webservice which returns DataSet in a webmethod but the problem is that when i validate service.wsdl file it gives me following error:Warning 35 The 'http://www.w3.org/2001/XMLSchema:schema' element is not declared. E:\Santosh\projects\asp.net\MFONLINE\MFONLINE NEW\App_WebReferences\HDFCMF\Service.wsdl 771 20 E:\...\MFONLINE NEW\ The 'http://www.w3.org/2001/XMLSchema:schema' element is not declared.Do any one have any idea ?-Thanks

Failed to find SharePoint server when using Microsoft Transporter Suite

When attempting to migrate a Lotus Domino application into MOSS 2007 using the Microsoft Transporter Suite 2007, I get the error: "Failed to find SharePoint server for URL: http://shp7/resimport".  I have installed the Transporter Suite on the SharePoint server (Windows 2003), and am running it under an account with full SharePoint admin rights.  I fill out the Target SharePoint site and Target SharePoint list boxes as directed in the Transporter console's help.  I know the site is running, as I can see it when I use http://shp7/resimport in IE from the server.  Anybody else experience this problem?

how to find the nearest element in a sorted set?

.NET provides a lot of functionality for sorted collections, in particular the generic classes: SortedSet<T> SortedList<Tk key, Tv Value>,  SortedDictionary<Tk key, Tv Value>,  A common task when dealing with sorted sets, is to find the closest key in the sorted collection to a given key (above or below) E.g. SortedSet<int> ss = new SortedSet<int>() {1,3,5,7} int i = 4 is there a function that tells me that i=4 is between the second and the third element of the set ss? something like ss.FindHighestBelow(i) or ss.FindLowestAbove(i) Similarly with SortedList and SortedDictionary (find the closest key to a given one, above or below...) Clearly one could implement explicitly, but given the generic nature of the task and the large amount of functionality already in .NET, I suspect it is already there, somehow... thank you in advance, alberto

The OlapInfo element at line 1, column 503 (namespace ) cannot appear under BackupLog. (Microsoft.An


I am getting this error that I can not find any references online.

Made a backup of SSAS db on one server, dumped .adf file to another server, tried to restore, getting:

TITLE: Microsoft SQL Server Management Studio

The OlapInfo element at line 1, column 503 (namespace ) cannot appear under BackupLog.



 Can it be because origin is R2 and target is not?

Could not find default endpoint element that references contract


There are so many questions floating around here on this topic and here is one more. I am consuming a customer's webservice through a class library and this class is referenced from a web application. When I save a form on the web page, it will call the class which will consume this webservice and send data across. But I am getting the error when I save the form. I have a feeling that their service is on https instead of http.

Could not find default endpoint element that references contract 'xxx.InboundServiceSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.  

<?xml version="1.0" encoding="utf-8" ?>





                <binding name="InboundServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00"

                    receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCo

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?



Could not find default endpoint element that references contract IService1 in the ServiceModel clien



I am getting the above error. When I try to generate the proxy using svcutil, I get an error  as:

"There was an error importing a wsdl:binding that the wsdl:port is dependent on"..

But the proxy .cs file is generated.

The host is running perfectly and I can view the wsdl.

Can someone help me out with this ?

Also is there any example available somewhere that I can use. I tried using MSDN Virtual lab example but I am getting the same error with it too.



Akhil Jindal

ConfirmButtonExtender and ModalPopupExtender Server Control with Master Page Failed to find element


I am in the process of building a server control that contains a ConfirmButtonExtender. This is my code:

The Master Page:

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="CBC_MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <asp:ContentPlaceHolder id="head" runat="server">
    <form id="form1" runat="server">
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

How to find students positions Based on their marks in Microsoft Sql Server Compact?


hi everybody! i have the following table in Microsoft Sql server Compact

1  aaa        90
2  bbb        90

3  ccc        80

4  ddd       75

5  eee      75

6  fff        70

7  ggg      68

I need to obtain the following results

ID  NAME    MARKS Position
1    aaa       90         1
2    bbb       90         1

3    ccc       80         2

4    ddd      75          3  

5   eee  

cannot find a reference to Microsoft.sharepoint.dll on sharepoint a macchine



 I have sharepoint 2007 installed on server 2008 (VPC).

 In VS2008 I am unable to find Microsot.Shaerpoint.dll in "ADD Reference" section.

 I am able to browse for it in C:\...\ISAPI\Microsoft.Sharepoint.dll and add it.

I am wondering why is this not in .Net tab like I find in other sharepoint machines.

Am I missing any upodates or service packs for VS2008. I do not have SP1 installed to mention.

Please help resolve this.

Thank you

Could not find endpoint element with name...


Okay so here's the setup:

I have 4 projects in my solutions thus far: Types, Repositories, Services, Web.

The Services project only contains the implementation of the WCF service, the contracts sit in the Types library.  Also (don't know if it makes a difference), the WCF project is a WCF Servic Library project and not a WCF Service Application project.

In the web project, I'm trying to create a ChannelFactory to use with my WCF Service.  It looks like this:

Call to method:

var reviewService = GenericFactory<IReviewService>.GetChannelFactory("ReviewService");


public static T GetChannelFactory(string endpoint)
            return new ChannelFactory<T>(endpoint).CreateChannel();

Here's what the config looks likes:

        <!-- use base address provided by ho

Can't find Microsoft.Office.Interop.Excel.dll



I am trying to use this namespace and downloaded the O2003pia.exe from http://support.microsoft.com/kb/897646.


I ran the msi and see the Interop files in the GAC but when I try to 'Add a Reference' in VS2005, I do not see any of the Interop namespaces.


I already had Office 2003 installed before I ran the above msi.


What else am I doing wrong. Why aren't these included with VS2005 in the first place..............


Please 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