C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2720
Number of posts: 5746

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
using COM components in C#/ASP.NET Posted by donkyho on 25 Jun 2003 at 7:43 AM
I am trying to use a COM component that I wrote in my ASP.NET page. I don't have any code worth posting, the only thing I've tried to do so far is create an object to use the dll methods that I wrote. For some reason the line of code I wrote to create the object isn't working. I have tried this same code in a C# win32 app and it worked fine, but it doesn't work in ASP.NET. What I have is a single button, behind the click event of the button I have

DbBus.CDbControllerClass = new CDbControllerClass();

I have tried several variations of this same code(ie. CDbController() rather than CDbControllerClass()), as well as many others. Nothing seems to work.

Can somebody PLEASE HELP!! I have been trying to figure this out almost a week pathetically enough! If you want, I can send anyone the .dlls to try out, if you can create an ASP.NET page that creates an object from this .dll, I'll be forever greatful. Or just let me know if there is something I'm doing wrong.

If you'd like to get a hold of me, email me at mhighfield@nitevisionsoftware.com

P.S. - This code compiles fine, it just crashes during runtime once it hits that line.

thank you very much

Mark
Report
Re: using COM components in C#/ASP.NET Posted by Brutes on 2 Jul 2003 at 12:37 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.