using com obj in asp.net
hi,
i have to use the funtionality of a com object. some methods of the com object.
For This in Visual studio.net I did the following.
project->add refrences->com-> click Mylib.lib
One thing more The MyLib.dll is present in the winnt/system32/ and it is registered with the windows.
Then I have included the following code in my ASP.NET web form
MyLib obj;
obj = new MyLib();
But i am getting these errors
c:\inetpub\wwwroot\smstest\WebForm1.aspx.cs(56): 'MyLib' denotes a 'namespace' where a 'class' was expected
c:\inetpub\wwwroot\smstest\WebForm1.aspx.cs(57): The name 'obj' does not exist in the class or namespace 'smstest.WebForm1'
Any help ?? What I have to do more?
|