Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi can any one help me out with this error



Server Error in '/' Application.

The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.

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.InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.]
System.Web.UI.WebControls.ObjectDataSourceView.GetType(String typeName) +1121547
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1171
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +44
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Posted
Updated 24-Nov-11 1:36am
v2

Your ObjectDataSource1 is not found, reson could be
1) there is some syntax error in your ObjectDataSource1 markup, which is not parsing and not able yo create a control object.
2) you have removed it from your aspx markup page.
3) codebehind class file name in the @Page directive is not propper (check with namespace)

verify your code for solution :)
 
Share this answer
 
Comments
jawad khadri 24-Nov-11 7:53am    
i checked everything is fine can u please tell wat else could be the problem
try by providing fully specified namespace for the class you are using as TypeName..

i.e namespace.namespace.... (.)className

i think you are maybe providing invalid class or the namespace track is not proper to exact class you are trying to point to.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900