Hi,
I have a report with reference on ReportLibrary assembly.
In the Code section of the report there is the following code:
Public m_myClass As ReportLibrary.DatabaseInteraction
Protected Overrides Sub OnInit()
m_myClass = ReportLibrary.DatabaseInteraction.GetInstance()
End Sub
When I try to publish this report via Reporting Services API:
warnings = RS.CreateReport(reportName, reportPath, true, definition, null);
I get the following error:
+System.SystemException {"There is an error on line 0 of custom code:
[BC30002] Type 'ReportLibrary.DatabaseInteraction' is not defined. --> There
is an error on line 0 of custom code: [BC30002] Type
'ReportLibrary.DatabaseInteraction' is not defined."}
How I can solve this problem?
Any help would be appreciated.some addition:
my report was deployed from VS before and worked successfully.
this error is happened when I made some changes in the report and tried to
re-publish it.
"Paul Zorin" wrote:
> Hi,
> I have a report with reference on ReportLibrary assembly.
> In the Code section of the report there is the following code:
> Public m_myClass As ReportLibrary.DatabaseInteraction
> Protected Overrides Sub OnInit()
> m_myClass = ReportLibrary.DatabaseInteraction.GetInstance()
> End Sub
> When I try to publish this report via Reporting Services API:
> warnings = RS.CreateReport(reportName, reportPath, true, definition, null);
> I get the following error:
> +System.SystemException {"There is an error on line 0 of custom code:
> [BC30002] Type 'ReportLibrary.DatabaseInteraction' is not defined. --> There
> is an error on line 0 of custom code: [BC30002] Type
> 'ReportLibrary.DatabaseInteraction' is not defined."}
> How I can solve this problem?
> Any help would be appreciated.
No comments:
Post a Comment