email : firstname.lastname@example.org
I have a really strange situation . Im working on a
solution where im creating a Class on runtime using
Compiler options. the Class has the referrence to ByteFX
mysqlclient, and i am able to sucessfully add the
referrence of bytefx.dll to the newly compiled assembly.
The problem arises when i try to use the
MysqlConnection with byref prefix, the runtime compiler
gives an error with the following description
the error description is :
System.Exception: Compilation Errors :
(22,0) : error BC30007: Reference required to
assembly 'System' containing the base
class 'System.ComponentModel.Component'. Add one to
though i have confirmed with the ilasm.exe that the
newly compiled DLL has correct referrence to the
Here it is important to mention that i have included few
other libraries as well which doesnt have any problems.
All the Dll assemblies are in the same folder.
only if i change the type of BYREF oconnection to objct
or any other type. the compilation is successful
Following is the code in the file which is to be compiled
Public Class megatron
Public Shared Function returnCost(ByRef
sEstimateID as string="1",Optional ExecutionMode as
integer=1) As engine.modal.CostCentreCostResult
'user code goes here
end function end class
i hope you can help me in this regard as it is trivial for
me to use the referrrenced connection object which is
the already open connection object.
waiting for reply,
and thanks in advance..