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

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

error in missing directive

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :ASP.Net
in below programm error is  fill method does not exist.  sqldataadapter missing. public void binddata()        {            SqlDataAdapter ds;            SqlConnection con;                       DataSet da = new DataSet();            con = new SqlConnection("Data Source=MEHUL-PC\\SQLEXPRESS;Integrated Security=True" );            SqlCommand cmd = new SqlCommand("select * from data",con);                        ds = new SqlDataAdapter(cmd);            ds.fill(da);            con.Open();            cmd.ExecuteNonQuery();            //Grid.datasourse = da;            //GridLines.databind();     &

View Complete Post

More Related Resource Links

ERROR [S1000] [Microsoft][ODBC Visual FoxPro Driver]Function name is missing ).


I Am Continiously Getting Error For Following Line Of Code, It Work  Fine In Other Database

Am I Doing Any Mistake

if (sh3itno != "" && dpsh3no != "")
                string queryy = "SELECT [CHEQNO] FROM [SH3MAST] WHERE (([CHEQDATE] = " + chqdate + ") AND ([FAVOUR] = " + favour + ") AND ([CHQTYPE] = " + ctype + ") AND ([TRSTN] = " + trstn + ") AND ([TRBANK] = " + trbank + ") AND ([SH3ITNO] = " + sh3itno + ") AND ([DPSH3NO] = " + dpsh3no + "))";
                OdbcCommand cmd3 = new OdbcCommand(queryy, connen1);
                string chqno =cmd3.ExecuteScalar().ToString(); (Here Iam Getting Error)
                tbl.Rows[i]["cheque no"] = chqno;
Stack Trace: 

[OdbcException (0x80131937): ERROR [S1000] [Microsoft][ODBC Visual FoxPro Driver]Function name is missing ).]
   System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) +39
   System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, Strin

All my server-controls became unrecognized!!! like there's compilation error or web.config missing!



please help - the problem is in post subject.

I have lots of warnings with following text:

"Warning 10 Element 'HyperLink' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing. C:\Users\Pavel\Documents\Visual Studio 2010\WebSites\BioWebSite\ToScientist.aspx 26 18 C:\...\BioWebSite\" 

But web.confg is there! And there's no compilation error!

Site builds just fine. And If I upload it to my hoster - it works!


But with all these errors I cant add controls to pages - VS2010 adds hyperlink without ID, and intelisens stoped to work.

Strange, but in my other project (web-application) I have no such difficuty.

Syntax error (missing operator) in query expression

Good Day Gurus!

I have a Excel user application which has a user form (named 'Registo') that displays criteria and an image that has been entered in it's corresponding spreadsheet. This works the way it should.  There's also the ability to search the spreadsheet via a form (by clicking 'Pesquisar' button) this opens a search form. However, I having a bit of a problem with it. When I try to search for something it basically doesn't do anything at all. It just sits there. So I tried to debug it and I think I'm having a problem with either the JET db engine or somethign with teh query or maybe I don't have the correct reference.

I 'borrowed' this Excel application from another forum because it's exactly what I'm looking for! However, I suck at vb.

So I was hoping somebody could take a look at the code and see if I'm missing something?  I'm kinda' desparate to get this working because I'm been trying to figure it out for days and I'm running out of time.  Cry
Option Explicit

'constantes para auxiliar na verificação do código
Private Const Ascendente As Byte = 0

Go Back to Site link missing in Error Page

hi,             i developed eventhandler where Properties.Cancel=true..takes to the defualt sharepoint error page. in this page i am missing go back to site link. how to set this link in the error page?   also can we set the link in the Properties.ErrorMessage="cannot update. please click here"+"<a href="+siteurl+"/>";   please help.  

Error on VS 2008 Class Library project: are you missing an assembly reference?)

http://msdn.microsoft.com/en-us/library/bb153523(office.12).aspx Working with ASP.NET 2.0 Web Parts and Windows SharePoint Services 3.0 Based on the above MSDN Walkthrough, I created a Class Library VS 2008 project. When clicking the Build menu, 11 errors on System.Web.Security etc popped up.  What's wrong? *********************************************** using   System; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; Error 1 The type or namespace name 'Security' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) Error 2 The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

Root element is missing error AFTER changing the List permission


I have an Infopath form that submits the data onto a SharePoint list. Everything works if the user has 'view, insert, edit, delete' access to the list. However, we dont want them to be able to delete and view the item so we gave this user group only 'insert' access. After doing so, they get the following error message:

The following DataObject either cannot be created or cannot be initialized:
The query cannot be run for the following DataObject: NameOfList
InfoPath cannot run the specified query.
The SOAP response indicates that the error occurred on the server:

Server was unable to process request. ==> The root element is missing. 

Anyone know if there's another way to solve this without granting the user group full access to the List?  I'm not an admin, I just normally request what type of permission to set on our sharepoint sites. 

Thanks for the help

SP2010 Upgrade Error: Missing Reusable Content Types


During the in-place upgrade from MOSS2007 to SharePoint 2010, I experienced the following issue for numerous site collections.  Even though these were errors, the configuration wizard completed with Errors stating that there were some sites not fully upgraded.

I cannot determine how to resolve this error and complete the content database upgrade.   Thanks in advance.


In the Upgrade-YYYYMMDD-######-##-error.log file, the following details were logged for about 15 different site collections:

[OWSTIMER] [SPSiteWssSequence2] [INFO] [6/12/2010 8:29:44 AM]: SPSite Url=https://sub.domain.com/site
[OWSTIMER] [SPSiteWssSequence2] [ERROR] [6/12/2010 8:29:44 AM]: Feature upgrade incomplete for Feature 'PublishingSite' (Id: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa') in Site 'https://sub.domain.com/site'. Exception: The parent content type specified by content type identifier 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39 does not exist.
[OWSTIMER] [SPSiteWssSequence2] [INFO] [6/12/2010 8:29:46 AM]: SPSite Url=https://sub.domain.com/site
[OWSTIMER] [SPSiteWssSequence2] [ERROR] [6/12/2010 8:29:46 AM]: Feature upgrade incomplete for Feature 'PublishingLayouts' (Id: 'd3f51be2-38a8-4e44-ba84-940d35be1566') in Site 'https://sub.domain.com/sit

Error adding image to Rich Content Area - Missing ContentPlaceHolders


Hello forum

I've recently installed a standalone SharePoint Foundation, and it seems to be working well. But today I tried to edit a Rich Text field /SitePages/StartPage.aspx file, and it threw an exception complaining about a missing ContentPlaceHolder. So I've tried comparing the "faulty" master page to a working one, and they're identical. I've searched the master page code for the ContentPlaceHolder - it's nowhere to be found.

What I've found is, that the page that fails resides in the /_layouts directory and a master page with the same name exists there as well.

Does anyone know what I can do to make this error go away?


PS.: I haven't modified the v4.master or any other master page for that matter.

This is the stack trace:

Server Error in '/' Application.

Cannot find ContentPlaceHolder 'PlaceHolderRteDialogBody' in the master page '/_catalogs/masterpage/v4.master', verify content control's ContentPlaceHolderID attribute in the content page. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.HttpException: Cannot find ContentPlaceHo

FIMSynchronizationService starting error: Missing object from Sync DB?


Hi everyone,

I've been trying to solve some issues I've been having with the user profile service. I had it running great without problems. However I had to change a setting, then everything just stopped working and never came back alive. I wound up deleting the service profile then recreating it however now I'm just getting a whole different error. I tried searching the internet but couldn't find any solutions. Anyway here is the error I receive in the application log:


The server encountered an unexpected error and stopped.
 "ERR: MMS(4420): sql.cpp(5580): Query (select count(*) from [mms_management_agent]) performed with error
ERR: MMS(4420): sql.cpp(5633): Invalid object name 'mms_management_agent'.
ERR: MMS(4420): sql.cpp(5641): hrError: 0x80040e37, dwMinor: 208
ERR: MMS(4420): sql.cpp(5796): SQL error: 42S02, native: 208
BAIL: MMS(4420): sql.cpp(2897): 0x80040e37
BAIL: MMS(4420): sql.cpp(4114): 0x80040e37
ERR: MMS(4420): sql.cpp(5580): Query (select fixed_schema_version_number from [mms_server_configuration] ) performed with error
ERR: MMS(4420): sql.cpp(5633): Invalid object name 'mms_server_configuration'.
ERR: MMS(4420): sql.cpp(5641): hrError: 0x80040e37, dwMinor: 208
ERR: MMS(4420): sql.cpp(5796): SQL error: 42S02, native: 208
BAIL: MMS(4420): sql.cpp(2897): 0x80040e37
BAIL: MMS(4420): sql.cpp(2738): 0x80040e37

Getting "A domain group is missing for one or more services" error when adding new node to existing


Hey all,

Current configuration:

2-node sql 2005 cluster

windows 2003 enterprise R2 w/ sp2 x64

sql 2005 enterprise x64 SP3


In the process of adding a third node into the existing 2-node cluster, we received the

"A domain group is missing for one or more services.  To install SQL 2005 as a failover cluster, domain groups must be specified for all the clustered services bing installed. To proceed, enter the missiong domain group information." 

The existing cluster functions properly and has been running w/o problems for a long while now.  An AD Global Group was created to support the cluster back when the cluster was initially created.


I found different suggestions from people online about this issue, any where from adding registry keys to take trailing blank space from sql resource group name, but none works. 


Any ideas?


Thank you in advance for any assistance.



error list window is missing


 I lost my error list window and I can't get it back even when  ctrl-w, ctrl-E is invoked or from the menu. Is it gone forever?

Error when saving file from Word: This file cannot be saved because some properties are missing or


I am receiving an error when trying to save a file from Word into SharePoint: "This file cannot be saved because some properties are missing or invalid"

I have got two different Content Types for this Document Library: "Policies" and "Procedures". Both documents have got exactly the same required fields, all required fields are displayed in the Document Information Panel. If I try to save a "Policy" the saving process works fine, if I try to save a "Procedure" I get the above error.

It's as if the Procedure had an additional required field, but I cannot figure out where that would come from? If I go to manage the Content Types and check the list of fields, I can clearly see which fields are required and which aren't.

Is there something I am missing? Or could one Content Type be corrupt? If so, how do I fix it without messing up all the files that have already been posted using this Content Type?

PEVerify "Missing method" error message


Running PEVerify against my dynamically-generated assembly I'm getting this message

Error: Missing method '%2' from class '%1'.

Not very helpful.  I've tried ildasm on the assembly, followed by ilasm.  No warnings on the compile, but the assembly generated that way still produces the error.






Leo Tohill

Content Query Web Part missing in SharePoint 2010

If you don't see content query web part listed in the web parts list, this is because you have not enabled "Search Server Web Parts" feature in site collection features. Enable this feature and content query web part will show in the list of web parts.

IsapiModule Error 500 Issue


I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:


CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"


Handling 404 page not found with Error page



      How do i handle 404 page not found?

Inserting personal error message in ValidationSummary



I am creating a web form that requires a lot of validation. I use many of the validation control in asp.net already like RequiredFieldValidator and CompareValidator. 

My Problem: after my custom validation for the value entered return an error message, and I pressed enter key when the field is empty, my custom error message is overlapped by my ValidationSummary. 

Setting my custom error to visible = false on button click also does not seem to work as it requires for me to enter the value first.

This made me think, is there a way to insert my custom validation inside the ValidationSummary as an error message like for other validation control?

Thanks in advance

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