locked
TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found RRS feed

  • Question

  • User-1706081156 posted

    Ok, this is really frustrating...

    * Using VS 2005 and an Oracle database.
    1. Add a new "Report" to a reports folder in my website.
    2. Click the Web Data Sources and add a new data source
    3. Go through the wizard and enter my sql.  I choose only a GetData method.
    4. Navigate back to the report designer, click the menu item Reports-Data Sources.
    5. Add DataSet1_DataTable1 to the report.
    6. Add a list control to the report design and relevant controls to be displayed.
    7. Add a new web form to the reports folder and add the reportviewer control.
    8. Click the smart tag for the reportviewer control and choose the report I just created.
    9. The default ObjectDataSource1 is automatically added.
    10. The TypeName property for ObjectDataSource1 is automatically assigned to "DataSet1TableAdapters.DataTable1TableAdapter".
    11. Run the application.

    Receive the following error:

     An error has occurred during report processing.

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

  • Am i missing a step here?


Monday, February 5, 2007 2:17 PM

All replies

  • User-1706081156 posted

    After further research I discovered that my report would run if I moved the DataSet1.xsd reference
    from reports/app_code/DataSet1.xsd TO the app_code folder in the root of the website - app_code/DataSet1.xsd.

    The question now is:  Can I assign the report to a data source defined in the reports/app_code folder?  It would be nice
    to have ALL the report related files in a specific folder.

     

    Monday, February 5, 2007 5:18 PM
  • User1354447825 posted

     Hi all,

    I am getting same error also. I enter my error details below.

    <title>The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.</title><style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }</style><title>The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.</title><style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style>

    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) +308
    System.Web.UI.WebControls.ObjectDataSourceView.ExecuteInsert(IDictionary values) +241
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +173
    System.Web.UI.WebControls.FormView.HandleInsert(String commandArg, Boolean causesValidation) +623
    System.Web.UI.WebControls.FormView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +745
    System.Web.UI.WebControls.FormView.OnBubbleEvent(Object source, EventArgs e) +163
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
    System.Web.UI.WebControls.FormViewRow.OnBubbleEvent(Object source, EventArgs e) +118
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
    System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +107
    System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +203
    System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +72
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3839


    Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.312
    <!-- [InvalidOperationException]: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found. at System.Web.UI.WebControls.ObjectDataSourceView.GetType(String typeName) at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteInsert(IDictionary values) at System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) at System.Web.UI.WebControls.FormView.HandleInsert(String commandArg, Boolean causesValidation) at System.Web.UI.WebControls.FormView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) at System.Web.UI.WebControls.FormView.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.FormViewRow.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.company_editcompanydetails_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\crmsystem\3b3c13fa\2406b006\App_Web_nn71mo9w.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->

     

    This error has been generated when i want to upload a document using file upload control with ajax. I am putting  file upload control with in form View control. The html code is:

    <asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" DefaultMode="Insert">
                                                                         <InsertItemTemplate>
                                                                         <table width="100%" border="0">
                                                                         <tr>
                                                                         <td>
                                                                         <asp:FileUpload ID="FileUpload1" runat="server"  />
                                                                         </td>
                                                                         <td>
                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ValidationGroup="file" runat="server" ControlToValidate="FileUpload1"
                                                                            ErrorMessage="File Name is Required">Certificate File Name is Required</asp:RequiredFieldValidator>
                                                                            </td>
                                                                            <td>
                                                                            <asp:ImageButton ID="btnUploadCertificate" ValidationGroup="file" CommandName="Insert" runat="server" ImageUrl="~/CRM_Buttons/Upload-New-Certificate.jpg"  />
                                                                            </td>
                                                                         </tr>
                                                                          </table>
                                                                           </InsertItemTemplate>
                                                                            </asp:FormView>

     

                                                                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" InsertMethod="Insert"
                                                                                SelectMethod="Select" TypeName="String" DataObjectTypeName="">
                                                                            </asp:ObjectDataSource>   

     

    Thanks.

    Monday, March 2, 2009 7:36 AM
  • User644753510 posted

    To be continued from upper post

    X..........................

    7. Add a new web form to the reports folder and add the reportviewer control.

    8. Click the smart tag for the reportviewer control and choose the report I just created.

    9. The default ObjectDataSource1 is automatically added. 

    10. Delete above objectdatasource1 and create new one by own "objectdatasource1". Then click smart tag of reportview. click rebind datasource

    11. Run the application. Done Enjoy its done..belive me!!!!

    Friday, December 27, 2013 5:37 AM