I have a custom assembly that i'm trying to get tied into my report.
the problem is when i try to call it i get the error that the class is
not defined
I have the class in the references tab and the class name and instance
name both have a name.
here's the error I'm getting
Error 1 [rsCompilerErrorInClassInstanceDeclaration] Error in class
instance declaration for class Assembly_1: [BC30002] Type '[ClassName]'
is not defined. [Project folder]\[reportname].rdl 0 0Mathias,
Can you provide exactly what you have entered in on the references tab?
Also supply the line(s) of code that are calling the assembly. Have you
been successful with other assemblies?
Thanks
"Mathias" <mathias.helbach@.gmail.com> wrote in message
news:1137693941.096073.183720@.g47g2000cwa.googlegroups.com:
> I have a custom assembly that i'm trying to get tied into my report.
> the problem is when i try to call it i get the error that the class is
> not defined
> I have the class in the references tab and the class name and instance
> name both have a name.
> here's the error I'm getting
> Error 1 [rsCompilerErrorInClassInstanceDeclaration] Error in class
> instance declaration for class Assembly_1: [BC30002] Type '[ClassName]'
> is not defined. [Project folder]\[reportname].rdl 0 0
Bret Updegraff, MCAD,MCSD,MCDBA
Microsoft MVP - SQL Server
Crowe Chizek and Company LLC
President - Indianapolis Professional Association for SQL Server
Join our SQL Server Community http;//www.IndyPASS.org
317.208.2538 - FAX (317.706.2660) -BUpdegraff@.CroweChizek.com|||I tried this once as well with no luck. Are the Classes supposed to drop
down for selection after you pick an assembly?
--
William Stacey [MVP]
"Bret Updegraff" <bupdegraff@.crowechizek.com> wrote in message
news:Oi1x6wSHGHA.240@.TK2MSFTNGP11.phx.gbl...
| Mathias,
|
| Can you provide exactly what you have entered in on the references tab?
| Also supply the line(s) of code that are calling the assembly. Have you
| been successful with other assemblies?
|
|
| Thanks
|
| "Mathias" <mathias.helbach@.gmail.com> wrote in message
| news:1137693941.096073.183720@.g47g2000cwa.googlegroups.com:
|
| > I have a custom assembly that i'm trying to get tied into my report.
| > the problem is when i try to call it i get the error that the class is
| > not defined
| >
| > I have the class in the references tab and the class name and instance
| > name both have a name.
| >
| > here's the error I'm getting
| >
| > Error 1 [rsCompilerErrorInClassInstanceDeclaration] Error in class
| > instance declaration for class Assembly_1: [BC30002] Type '[ClassName]'
| > is not defined. [Project folder]\[reportname].rdl 0 0
|
|
| --
| Bret Updegraff, MCAD,MCSD,MCDBA
| Microsoft MVP - SQL Server
| Crowe Chizek and Company LLC
| President - Indianapolis Professional Association for SQL Server
| Join our SQL Server Community http;//www.IndyPASS.org
| 317.208.2538 - FAX (317.706.2660) -BUpdegraff@.CroweChizek.com
||||Bret
I browsed to the folder where the .dll file was selected it and clicked
ok it inserted this line into the assembly name filed
ScoreCardAssembly, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
I then named the class Assembly_1 and the instance name Assembly
on the rdl page i called the class with this line of code.
=code.Assembly.HeadCount(Parameters!OfficeID.Value,Parameters!SelectedYear.Value)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment