V
Varun Singal
Hi
I am calling .NET components from my Classical ASPs.
For this I strong named my assemblies, then registered them in the resistry
( using RegAsm), and put them in GAC (using GacUtil) .
Everything worked fine and my ASPs were able to call and use them.
The problem comes when my ASP code assigns an ASP object variable to a
property of a class in the assembly like:
oDotNetObject("Name") = Request("Name")
( where oDotNetObject is a class in my registered assembly )
The COM Callable Wrapper sends it as System._ComObject to .NET Runtime which
then throws exception as nothing is allowed on System._ComObject. On the
other hand, passing it as Variant solves the problem.
Dim varName = Request("Name")
oDotNetObject("Name") = varName
But this would require a significant change in my ASP pages. I want to
modify only my .NET components. Is there any way I can use this
System._ComObject in my managed code or any way I can make CCW to handle it.
I was trying to use System.Runtime.InteropServices.Marshal namespace to use
the System._ComObject I have not been able to do it.
Thanks in anticipation
Varun
I am calling .NET components from my Classical ASPs.
For this I strong named my assemblies, then registered them in the resistry
( using RegAsm), and put them in GAC (using GacUtil) .
Everything worked fine and my ASPs were able to call and use them.
The problem comes when my ASP code assigns an ASP object variable to a
property of a class in the assembly like:
oDotNetObject("Name") = Request("Name")
( where oDotNetObject is a class in my registered assembly )
The COM Callable Wrapper sends it as System._ComObject to .NET Runtime which
then throws exception as nothing is allowed on System._ComObject. On the
other hand, passing it as Variant solves the problem.
Dim varName = Request("Name")
oDotNetObject("Name") = varName
But this would require a significant change in my ASP pages. I want to
modify only my .NET components. Is there any way I can use this
System._ComObject in my managed code or any way I can make CCW to handle it.
I was trying to use System.Runtime.InteropServices.Marshal namespace to use
the System._ComObject I have not been able to do it.
Thanks in anticipation
Varun