Ask a Question related to ASP.NET General, Design and Development.
-
Peter Rilling #1
Calling a .NET COM+ component from an ASP page.
I created a COM+ component (ServicedComponent) in .NET. The component has a
single method Connect() which returns a reference to a SqlConnection object.
This component works fine when the world is centered around .NET. Now I
want this component to work when called from inside an ASP page.
I know that I can do this because I created a test component with a method
that returns a string (strings are simple to marshal). When I called the
Connect method, I get an internal server error from IIS. I was wondering if
this problem has to do with some marshalling issues or something else.
Since SqlConnect is a .NET class, would there be any problem with using it
in an ASP page? What might be causing my problem?
Peter Rilling Guest
-
Way to know what component is calling a function
Hi, all. I seem to remember seeing a way to know which component is calling a function. For example, lets say I have two datagrids, each with a... -
Calling COM+ component from webservice
I'm a newbie with ASP.NET and webservices. I have a webservice that is calling a C# dll. This dll then calls methods in a VB COM+ component. The... -
Calling a COM component via C#(ASP .net)
Hi All I am accessing a COM component using C#. When i access it through the standalone c# application it works fine.But when i call it using ASP... -
Access denied when calling COM component.
Hello, I try to convert a VB6 application to an ASP Web application. This application uses a COM component to access data on a remote server. ... -
Calling a html page from an asp page then returning to the next statement on the original asp page
Hi! I have an ASP page that calls excel to create a report. This works fine. Now I need to call a html calendar page to filter what rows are... -
Peter Rilling #2
Re: Calling a .NET COM+ component from an ASP page.
I am a little further along but still having problems.
Since I am using ASP and VBScript, there is concept of "types". I use the
CreateObject method to create an instance of the COM+ component. That
works. I run the following test and I get an "Object required" error.
Response.Write(myObj.C().ConnectionString)
What does the error mean. The following displays "false" so I know that I
am getting back a SqlConnection (also this is a small test component with
hardcoded values so as to rule our all other problems).
Response.Write(myObj.C() is nothing)
Now, I also have test methods A() and B() while return strings. Those work
correctly.
If I was in a strongly-typed language, I would say the problem is because
the object would need to be casted. However, there is no casting in
VBScript.
Any thoughts?
"Peter Rilling" <peter@nospam.rilling.net> wrote in message
news:ecyFVmQXDHA.1832@TK2MSFTNGP09.phx.gbl...a> I created a COM+ component (ServicedComponent) in .NET. The component hasobject.> single method Connect() which returns a reference to a SqlConnectionif> This component works fine when the world is centered around .NET. Now I
> want this component to work when called from inside an ASP page.
>
> I know that I can do this because I created a test component with a method
> that returns a string (strings are simple to marshal). When I called the
> Connect method, I get an internal server error from IIS. I was wondering> this problem has to do with some marshalling issues or something else.
> Since SqlConnect is a .NET class, would there be any problem with using it
> in an ASP page? What might be causing my problem?
>
>
Peter Rilling Guest



Reply With Quote

