1、using System;
using System.Collections.Generic;
using System.Text;namespace Dll
{
public class Show
{
public string Message()
{ return "OK";
}
}
} 生成的DLL 为什么在ASP中不可以用??,对了我用的是 regasm 注册(也安装了.net 2.0 ,IIS是6+windowsXP),提示已经注册成功,但是用ASP 调用就是不成功
< % dim str,sr
set str = Server.CreateObject("DLL.Show") //本句在ASP中报错
st=str.Message();
% >
using System.Collections.Generic;
using System.Text;namespace Dll
{
public class Show
{
public string Message()
{ return "OK";
}
}
} 生成的DLL 为什么在ASP中不可以用??,对了我用的是 regasm 注册(也安装了.net 2.0 ,IIS是6+windowsXP),提示已经注册成功,但是用ASP 调用就是不成功
< % dim str,sr
set str = Server.CreateObject("DLL.Show") //本句在ASP中报错
st=str.Message();
% >
http://blog.csdn.net/KimmKing/archive/2008/12/04/3445233.aspx参考一下..你的C#类上要加属性[ComVisible(true)],对com可见和生成com类型。