首页 新闻 会员 周边

reportView 问题 :未能找到在 ObjectDataSource“ObjectDataSource1”的 TypeName 属性中指定的类型。

0
悬赏园豆:10 [待解决问题]

数据集已放在App_code中,不过App_Code文件是我手动加的,本地运行正常。

项目发布后报 “未能找到在 ObjectDataSource“ObjectDataSource1”的 TypeName 属性中指定的类型。”请高手指点。谢谢

learningcom的主页 learningcom | 初学一级 | 园豆:148
提问于:2013-06-20 13:24
< >
分享
所有回答(2)
0

意思就是你这个ObjectDataSource的TypeName属性没有指定?

顾晓北 | 园豆:10844 (专家六级) | 2013-06-20 13:53

这是我的代码

支持(0) 反对(0) learningcom | 园豆:148 (初学一级) | 2013-06-24 10:23

  <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
                                    Height="100%" Width="98%">
                                    <LocalReport ReportPath="Management\Report\DataSource\Report1.rdlc">
                                        <DataSources>
                                       
                                            <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSetResults_SP_Report_GetResultListByQuery" />
                                           
                                        </DataSources>
                                    </LocalReport>
                                   
                                </rsweb:ReportViewer>
                                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData"
                                    TypeName="DataSetResultsTableAdapters.SP_Report_GetResultListByQueryTableAdapter"
                                    OldValuesParameterFormatString="original_{0}">
                                    <SelectParameters>
                                        <asp:ControlParameter ControlID="HiddenFieldDName" DefaultValue="" Name="DepartmentName"
                                            PropertyName="Value" Type="String" />
                                        <asp:ControlParameter ControlID="HiddenFieldDTypeID" DefaultValue="0" Name="DepartmentTypeID"
                                            PropertyName="Value" Type="Int32" />
                                        <asp:ControlParameter ControlID="HiddenFieldSysTypeID" Name="SysTypeID" PropertyName="Value"
                                            Type="Int32" />
                                        <asp:ControlParameter ControlID="HiddenFieldStageID" Name="StageID" PropertyName="Value"
                                            Type="Int32" />
                                    </SelectParameters>
                                </asp:ObjectDataSource>

 

 这是我的代码

支持(0) 反对(0) learningcom | 园豆:148 (初学一级) | 2013-06-24 10:24
支持(0) 反对(0) 顾晓北 | 园豆:10844 (专家六级) | 2013-06-24 13:04

@顾晓北: thank you

支持(0) 反对(0) learningcom | 园豆:148 (初学一级) | 2013-07-02 14:19
0

把TypeName 路径 加上app_code的路径,把原来的dataset数据集删了然后重新编译一下  就可以了

learningcom | 园豆:148 (初学一级) | 2013-07-02 14:21
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册