R
rufus
I created an assembly called : getDataVB.dll and placed it in the bin
folder. The source file getData.vb looks like this:
Namespace chris.getData
Public Class dataObj
' my code
End Class
End Namespace
it compiles with no problems. I have a code behind file where I import this
namespace like this: Imports chris.getData
When I type this import statement, VS completes it automatically so I know
that it is properly registered. When I try to create a new instance of the
dataObj class like this: Dim dataObj as new DataObj I get the error message:
'dataObj' is ambiguous in the namespace 'chris.getData'. I have also added
this line to my web.config file: <add assembly="getDataVB"/>
I am using Visual Web Developer 2005 Express Edition Beta and compiling my
classes using vbc on the compiler version 1.1.4322.573.
Can anyone tell me what the problem might be?
Thanks
folder. The source file getData.vb looks like this:
Namespace chris.getData
Public Class dataObj
' my code
End Class
End Namespace
it compiles with no problems. I have a code behind file where I import this
namespace like this: Imports chris.getData
When I type this import statement, VS completes it automatically so I know
that it is properly registered. When I try to create a new instance of the
dataObj class like this: Dim dataObj as new DataObj I get the error message:
'dataObj' is ambiguous in the namespace 'chris.getData'. I have also added
this line to my web.config file: <add assembly="getDataVB"/>
I am using Visual Web Developer 2005 Express Edition Beta and compiling my
classes using vbc on the compiler version 1.1.4322.573.
Can anyone tell me what the problem might be?
Thanks