Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
using COM components in C#/ASP.NET
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 firstname.lastname@example.org
P.S. - This code compiles fine, it just crashes during runtime once it hits that line.
thank you very much
0 · ·