This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » .NET Framework » Using ReportViewer in VWD 2005 Express
Reply

Using ReportViewer in VWD 2005 Express

Cynthia Jordan
Member



Since: 30 Sep 2008
Posts: 1
Posted 07 May 2009 23:30:05

I have a web application that works perfectly on my computer, but when I upload it to the web, I get the same message everytime about not recognizing the nametype for ObjectDataSource1:

**An error has occurred during report processing.
The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.**

The App_Code has the dataset in it, and it is at the root of the website where it should be.
I have tried this a thousand ways, and have been working on it two weeks.

Here is my code:

<%@ Page Language="VB" EnableSessionState="True" EnableViewState="True" Async="false" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<script runat="server">
'ReportPath="D:\Sites\Test\EOE\essportalsite\TestReport.rdlc

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

ReportViewer1.LocalReport.ReportPath = "D:\Sites\Test\EOE\essportalsite\TestReport.rdlc"

Dim rds As New ReportDataSource

rds.DataSourceId = "ObjectDataSource1"

rds.Name = "TestDataSet1_TW_ESS_PoorFairPortalRatings"

ReportViewer1.LocalReport.DataSources.Clear()

ReportViewer1.LocalReport.DataSources.Add(rds)

ReportViewer1.LocalReport.Refresh()

End Sub

</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="www.w3.org/1999/xhtml" >
<head runat="server">
<title>Test Report Site</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<rsweb:reportviewer id="ReportViewer1" runat="server" font-names="Verdana" font-size="8pt"
height="400px" width="510px">
<LocalReport ReportPath="TestReport.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="TestDataSet1_TW_ESS_PoorFairPortalRatings" />
</DataSources>
</LocalReport>
</rsweb:reportviewer>
<aspbjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"
InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
TypeName="TestDataSet1TableAdapters.TW_ESS_PoorFairPortalRatingsTableAdapter"
UpdateMethod="Update">
<DeleteParameters>
<asparameter Name="Original_Portal_ID" Type="Int32" />
<asparameter Name="Original_Category" Type="String" />
<asparameter Name="Original_Date_Submitted" Type="DateTime" />
</DeleteParameters>
<UpdateParameters>
<asparameter Name="Portal_ID" Type="Int32" />
<asparameter Name="Category" Type="String" />
<asparameter Name="Date_Submitted" Type="DateTime" />
<asparameter Name="Original_Portal_ID" Type="Int32" />
<asparameter Name="Original_Category" Type="String" />
<asparameter Name="Original_Date_Submitted" Type="DateTime" />
</UpdateParameters>
<InsertParameters>
<asparameter Name="Portal_ID" Type="Int32" />
<asparameter Name="Category" Type="String" />
<asparameter Name="Date_Submitted" Type="DateTime" />
</InsertParameters>
</aspbjectDataSource>

</div>
</form>
</body>
</html>
Could the error be in the web,config file. I keep reading something about assemblies.
Any help with this will be greatly appreciated.

I have a web application that works perfectly on my computer, but when I upload it to the web, I get the same message everytime about not recognizing the nametype for ObjectDataSource1:

**An error has occurred during report processing.
The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.**

The App_Code has the dataset in it, and it is at the root of the website where it should be.
I have tried this a thousand ways, and have been working on it two weeks.

Here is my code:

<%@ Page Language="VB" EnableSessionState="True" EnableViewState="True" Async="false" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<script runat="server">
'ReportPath="D:\Sites\Test\EOE\essportalsite\TestReport.rdlc

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

ReportViewer1.LocalReport.ReportPath = "D:\Sites\Test\EOE\essportalsite\TestReport.rdlc"

Dim rds As New ReportDataSource

rds.DataSourceId = "ObjectDataSource1"

rds.Name = "TestDataSet1_TW_ESS_PoorFairPortalRatings"

ReportViewer1.LocalReport.DataSources.Clear()

ReportViewer1.LocalReport.DataSources.Add(rds)

ReportViewer1.LocalReport.Refresh()

End Sub

</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="www.w3.org/1999/xhtml" >
<head runat="server">
<title>Test Report Site</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<rsweb:reportviewer id="ReportViewer1" runat="server" font-names="Verdana" font-size="8pt"
height="400px" width="510px">
<LocalReport ReportPath="TestReport.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="TestDataSet1_TW_ESS_PoorFairPortalRatings" />
</DataSources>
</LocalReport>
</rsweb:reportviewer>
<aspbjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"
InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
TypeName="TestDataSet1TableAdapters.TW_ESS_PoorFairPortalRatingsTableAdapter"
UpdateMethod="Update">
<DeleteParameters>
<asparameter Name="Original_Portal_ID" Type="Int32" />
<asparameter Name="Original_Category" Type="String" />
<asparameter Name="Original_Date_Submitted" Type="DateTime" />
</DeleteParameters>
<UpdateParameters>
<asparameter Name="Portal_ID" Type="Int32" />
<asparameter Name="Category" Type="String" />
<asparameter Name="Date_Submitted" Type="DateTime" />
<asparameter Name="Original_Portal_ID" Type="Int32" />
<asparameter Name="Original_Category" Type="String" />
<asparameter Name="Original_Date_Submitted" Type="DateTime" />
</UpdateParameters>
<InsertParameters>
<asparameter Name="Portal_ID" Type="Int32" />
<asparameter Name="Category" Type="String" />
<asparameter Name="Date_Submitted" Type="DateTime" />
</InsertParameters>
</aspbjectDataSource>

</div>
</form>
</body>
</html>
Could the error be in the web,config file. I keep reading something about assemblies.
Any help with this will be greatly appreciated.

Reply to this topic

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency