* 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.
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.
I am getting same error also. I enter my error details below.
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
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:
Member
3 Points
21 Posts
TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found
Feb 05, 2007 02:17 PM|jim_langdon|LINK
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.
Am i missing a step here?
ReportViewer
Member
3 Points
21 Posts
Re: TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found
Feb 05, 2007 05:18 PM|jim_langdon|LINK
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.
Member
1 Points
86 Posts
Re: TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found
Mar 02, 2009 07:36 AM|prabhatasp|LINK
Hi all,
I am getting same error also. I enter my error details below.
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:
Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.312
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.
TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found
None
0 Points
1 Post
Re: TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found
Dec 27, 2013 05:37 AM|gokulmh20|LINK
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!!!!
ReportViewer