Friday, February 17, 2012

Custom Assembly Class Not defined

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

You need to specify the full name of the class including all namespaces|||

I am seeing the same problem. I have specified the class as follows:

<Class>

<ClassName>DLLName.ClassName</ClassName>

<InstanceName>m_ClassName</InstanceName>

</Class>

The DLL has a strong name, has been set to allow partially trusted access, and is in the GAC.

|||Nevermind. My class is static. I removed the reference from the Classes section and added the reference in the References section, which solved the problem.

No comments:

Post a Comment