Forums

This topic is locked

Using ReportViewer in VWD 2005 Express

Posted 07 May 2009 23:30:05
1
has voted
07 May 2009 23:30:05 Cynthia Jordan posted:
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