我试图从ColdFusion 8,0,1,195765访问.dll,我收到以下错误。作为序言,让我迭代一下,我很少接触.NET和Visual Studio
Class Calculator.Calculator not found in the specified assembly list.
The assembly that contains the class must be provided to the assembly attribute.
here is my dll in the object browser
using System;
namespace Calculator
{
public class Calculator
{
public int addition(int a, int b)
{
return a + b;
}
public int subtraction(int a, int b)
{
return a - b;
}
}
}
这是我的CFML
<cfobject type = ".NET" name = "calc" class = "Calculator.Calculator"
assembly="c:\test\Calculator.dll">
显然,计算器类存在于dll中。