.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

... found operand of type 'xs:NMTOKEN *'

Posted By:      Posted Date: August 28, 2010    Points: 0   Category :Sql Server
Using a XML Schema Collection . . . can't find anything on this type of error. Error: Msg 2389, Level 16, State 1, Line 64 XQuery [XML_TABLE.XML.value()]: 'value()' requires a singleton (or empty sequence), found operand of type 'xs:NMTOKEN *' Query: ;WITH XMLNAMESPACES ( 'http://abc' AS [abc], 'http://xyz' AS [xyz] ) SELECT [XML].value('/abc:ABC/xyz:XYZ/@id','NVARCHAR(MAX)') AS [id] FROM [XML_TABLE]  

View Complete Post

More Related Resource Links

DirectoryEntry type not found


 Can someone tell me why the system does not recognize DirectoryEntry in the code below?  It indicates DirectoryEntry cannot be found. 

using System;
using System.Collections;
using System.Collections.Generic;
using System.DirectoryServices;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.DirectoryServices.AccountManagement;

public partial class MyADGroups : System.Web.UI.Page

       public static ArrayList getuserattributes(string objectDn) 
        DirectoryEntry objRootDSE = new DirectoryEntry("LDAP://" + objectDn);
        ArrayList props = new ArrayList();
        foreach (string strAttrName in objRootDSE.Properties.PropertyNames)
        return props;



The type 'DataGrid' was not found. Verify that you are not missing an assembly reference and that

Hi; I'm new to WPF and I was going through the ExpenseIt tutorial on MSDN's website. The tutorial was working fine until I added DataGrid. I got the error message: "The type 'DataGrid' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built."     I could not find a clear answer online of which assembly references to fix and how to fix them. Any help would be appreciated. Thanks!     Note: I'm running the following: Windows Vista 32-bit operating system Microsoft Visual Studio 2008 Version 9.0.30729.1 SP Microsoft .NET Framework Version 3.5 SP1

Error Build: Type or namespace could not be found, when referencing a web service

Hello, I'm new in writing C# application in Visual Studio 2008. I'm currently writing a web application for CRM 4.0 Reporting Service rendering. I reference my web application to our Reporting Service web service http://reportservername /ReportServer/ReportExecution2005.asmx and name it 'RSWebReference'. Then I want to reference it in my code: Using RSWebReference; Not sure why, but I cannot build my solution, saying "The type or namespace name 'RSWebReference' could not be found (are you missing a using directive or an assembly reference?)". I read this thread in http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/74f70e30-83e8-4817-b5e0-7729450730a1 that the website probably is using .net 1.1, and I should change it to .net 2.0. However, I think the website is already using 2.0. Is it probably because I'm using VS 2008? How can I tell and change if the website is using 1.1 or 2.0? Or could I be doing something wrong? Thanks in advanced for your help! -Elizabeth K.

Operand type clash: xml is incompatible with text

hi to all .thank in advance ..i am using sql server .i want insert below xml into one column in table which is xml data type but i am getting error Operand type clash: xml is incompatible with text .pls tell me solution for this ?<Message xmlns="http://www.abcscripts.com/messaging"><Header><To>mailto:6033168728001.spi@abcscripts.com</To><From>mailto:9900007.ncpdp@abcscripts.com</From><MessageID>541481b182404a3ea819f0aba886e652</MessageID><RelatesToMessageID/><SentTime>2010-08-23T18:27:28.2Z</SentTime></Header><Body><RefillRequest><RxReferenceNumber>163U067PL4E5LYK0D1EGXTA57JUW5HCFQ4B</RxReferenceNumber><Pharmacy><Identification><NCPDPID>9900007</NCPDPID><FileID>TW1FKB1P1H2P468L3L7RM812GR7X5O70VQ3</FileID><StateLicenseNumber>5602NPPQGU765FX7262US8X6G18NMG67H47</StateLicenseNumber></Identification><StoreName>Druglix</StoreName><Pharmacist><LastName>Pharmacist last name goes here noww</LastName><FirstName>Pharmacist First name goes in here</FirstName><MiddleName>Pharmacist Middle name goes here</MiddleName><Suffix>Junior iii</Suffix><Prefix>Pharmacist</Prefix></Pharmacist><PharmacistAgent><LastName>Pharmacist agent Last name go

Prompt "The proper type library could not be found in the system registry" when open SQL2008 Express

Hi folks, I just format my notebook and installed the Win7Pro Eng 32-bit version and then install the SQL2008Express. I restarted my notebook as usual after the installation and open the SQL SMS, it prompt the following error "The proper type library could not be found in the system registry", It's a big dialog with certain text saying I do not have permission...etc. Since, I am using administrator account to open the program already but still fail. I have to repaire the SQL SMS too. May I know any other I can check? Any comment is highly appreciated. Thank you very much! Regards, Tony  

The type 'DropShadowEffect' was not found. Verify that you are not missing an assembly reference a

We created a grid in Expressions Blend but the DropShadowEffect caused an error for a developer who tried to build the solution and did not have Expressions Blend on his machine.  Had to replace with  <Border.BitmapEffect><DropShadowBitMapEffect ... Are there other incompatibilities between Expressions Blend and plain old Visual Studio 2008 development environs? <   UserControl   xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation   xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml   xmlns:d=http://schemas.microsoft.com/expression/blend/2008   xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006   mc:Ignorable="d"   xmlns:igRibbon=http://infragistics.com/Ribbon   x:Class="TestEditor.Ctrl_PR"   x:Name="UserControl"   MaxWidth="450"   d:DesignWidth="450" d:DesignHeight="125">     <Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5" Width="450" Height="125">   <Border CornerRadius="8" BorderBrush="DarkSlateBlue" BorderThickness="0.5" HorizontalAlignment="Stretch" Grid.ColumnSpan="2">     <Border.Background>       <LinearGradientB

Web application project type not found



I have VS 2005 installed on my system. The details are as follows -

Microsoft Visual Studio 2005
Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727 SP2

Installed Edition: Enterprise

My Problem is -

1. I can not see Web application project template when creating new project.

2. When I open a project, it gives error as "Project file can not be loaded".

I searched forums and it says

Run VS80-KB915364-X86-ENU.exe first, then

run WebApplicationProjectSetup.msi.

3. Can anyone tell me what this installation does?




The type...could not be found


Ive been working on this for a while and not sure what im doing wrong even when doing a course (and get the same/similar error). I create a WCF Service Library, configure my contract and implementation. Add a ASP website to host the service, open up the WCF config editor and have the following configuration:

<?xml version="1.0"?>

  <compilation debug="false" strict="false" 

The property 'Label' was not found in type 'RibbonCheckBox'




I am using the Ribbon (v3.5.31016.1) in one application and I was trying to use some checkboxes, however it says that the checkbox has not got the property LABEL?

 <r:RibbonCheckBox x:Name="chkBox" Label="My check box" Click="chkBox_Click"></r:RibbonCheckBox>

How should I display the text for the ribboncheckbox?


Type or namespace membership user cannot be found


- I started an empty ASP.NET 3.5 website

- I included the assembly reference <add assembly="System.Web.ApplicationServices, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

- I included using System.Web.Security;

- I want to use the following code to add a confirmation code to an email

protected void CreateUserWizard1_SendingMail(object sender, MailMessageEventArgs e)
        MembershipUser user = Membership.GetUser(CreateUserWizard1.UserName);
        string code = user.ProviderUserKey.ToString();
        e.Message.Body = e.Message.Body.Replace("<%ConfirmationCode%>", code);

- I know some changes were made to the location of MembershipUser according to this --> http://www.asp.net/(S(ywiyuluxr3qb2dfva1z5lgeg))/learn/whitepapers/aspnet4/breaking-changes#0.1__Toc256770156

Please help!

"The type or namespace name 'List' could not be found"

Hi all,

I'm working through the C# version of ScottGu's Visual Studio 2005 Web Application Project Tutorials <http://webproject.scottgu.com/CSharp/Data/Data.aspx> and am stuck on the Publisher class. After adding the Author list then trying to compile, I get the following error:

...My Documents\Computing\Programming\C#\scottgu\tut1\tut1\Publisher.cs(15,16): The type or namespace name 'List' could not be found (are you missing a using directive or an assembly reference?)

Any suggestions?



I'm running WinXP Pro 2002 w/ SP2 and am developing under Visual Studio 2005 Version 8.0.50727.42 using .Net Framework Version 2.050727 (I have installed a C# update and think I'm running C# 3)

Microsoft Visual Studio Pro 2005 Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework Version 2.0.50727

Microsoft Visual C# 2005  

Microsoft Visual Web Developer 2005  

Microsoft Web Application Projects 2005 Version 8.0.60504.00

Microsoft .NET LINQ Preview
Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB915364)  

DotNetZip Library Error - The type or namespace name 'Ionic' could not be found


I try to add some Zip functionality of my website. I use DotNetZip from Codeplex. It works without any problem in my Development Machine (Windows XP). So I upload the files to the WebServer. Now I am getting the following error.


Compiler Error Message: CS0246: The type or namespace name 'Ionic' could not be found (are you missing a using directive or an assembly reference?)

How can I debug it. Please help me.

The type or namespace name 'ReportExecutionService' could not be found


I am trying to setup a Web Service Proxy as per the walkthrough in  http://msdn.microsoft.com/en-us/library/microsoft.wssux.reportingserviceswebservice.rsexecutionservice2005.reportexecutionservice.render.aspx   when i get to ad the line ReportExecutionService rs = new ReportExecutionService(); i get the error "type or name space not found ..." i can add the web service reference and see methods but not all of them  including the class ReportExecutionService.

Any help woule be good.

The specified resource type cannot be found - event id 17137



We've got these errors appearing 4 at a time every 5 minutes on a new SBS 2008 box.

Log Name:      Application
Event ID:      17137
Task Category: (2)
Level:         Information
User:          NETWORK SERVICE

The description for Event ID 17137 from source MSSQL$MICROSOFT##SSEE cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
The specified resource type cannot be found in the image file

Anyone have any idea why this may be or how to resolve it ?


VS 2010 and The type or namespace name 'AjaxControlToolkit' could not be found error?



I've installed VS2010 and I'm trying to compile my .NET 2.0 app. It went through a conversion process when I opened it, I made a backup, but I'm still targeting .NET 2.0 for now.  I have a project reference and the "ajaxcontroltoolkit.dll" in the \bin and it ran fine in VS 2008.  Do I need a different version of the toolkit I currently have (1.0.10301.0 which targets runtime v2.0.50727) to run .NET 2.0 in VS2010 now?

The error "The type or namespace name 'AjaxControlToolkit' could not be found (are you missing a using directive or an assembly reference?)"

The warning gives more info

"Warning 27 The primary reference "AjaxControlToolkit, Version=1.0.10301.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "AjaxControlToolkit, Version=1.0.10301.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL" or retarget your application to a f

Client found response content type of '', but expected 'text/xml'.


I migrated our SSRS database from Windows 2003 32 bit, SQL  Server 2005 to Windows 2003 64 bit and SQL Server 2008 R2.

The report manager loads and SSRS reports run ok.

In one of our website, it connects to the SSRS web service and list a list of reports under specified folder in a listbox control.

It was working in our original Windows 2003 32bit server with the same settings, but we are getting error when calling listchildren method:

[InvalidOperationException: Client found response content type of '', but expected 'text/xml'.
The request failed with an empty response.]
   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413317
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
   WebPortal.ReportServer.ReportingService.ListChildren(String Item, Boolean Recursive) in C:\Projects\OSCAR\WebPortal\Web References\ReportServer\Reference.cs:832
   WebPortal.Components.UIBinder.BindReportList(ListBox listbox, String reportFolder, String url) in C:\Projects\OSCAR\WebPortal\Components\UIBinder.cs:761
   WebPortal.WebForm4.BindData() in C:\Projects

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.


when i access this webservice(c#) in window project it show this error

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. 

please reply soon....

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