all groups > dotnet interop > july 2003 >
You're in the

dotnet interop

group:

What is wrong with the code to access .NET Assembly from ASP page?


What is wrong with the code to access .NET Assembly from ASP page? Lidong Cheng
7/29/2003 4:01:43 PM
dotnet interop: Hi,Everybody

Can somebody help me find out what 's wrong with the code?
Can I pass a .NET type as a parameter to another .NET type's method? or how?

see below:
=================================================
..NET Server C# code:
namespace XYZ.BusinessLogic
{
public class Document

public void Update(XYZ.Model.DocumentInfo docInfo,int userid)
{
...
}
}
----------------------------------
ASP Client VBScript Code:
Set Doc=Server.CreateObject("XYZ.BusinessLogic.Document")
Set DocInfo=Server.CreateObject("XYZ.Model.DocumentInfo")
UserID=1
DocInfo.Title="Test"
....
Doc.Update DocInfo,UserID
-----------------------------------
Error Message I got after I run the asp page:
Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'Doc.Update'
==================================================

Thank in advance

Lidong

RE: What is wrong with the code to access .NET Assembly from ASP page? yirutang NO[at]SPAM microsoft.com
7/29/2003 9:49:13 PM
I am not very familiar with VBScript. But an object in managed world are
actually reference types. Is there a way to pass in an object pointer to
the method in VBScript?
--------------------
[quoted text, click to view]
AddThis Social Bookmark Button