以下是castle源码。
try
{
ConstructorInfo info = implementation.GetConstructor(BindingFlags.Public | BindingFlags.Instance, null, signature, null);
uninitializedObject = FormatterServices.GetUninitializedObject(implementation);
info.Invoke(uninitializedObject, arguments);
}
catch (Exception exception2)
{
exception = exception2;
throw new ComponentActivatorException("ComponentActivator: could not instantiate " + base.Model.Implementation.FullName, exception); }加粗的这句。就是我程序要抛出的异常。在本地假设服务器执行没有问题。传到空间或VPS就报错。不晓得是不是服务器有什么权限没有开启哦。?哪位大侠帮帮忙吧。已经困扰我几个月了
try
{
ConstructorInfo info = implementation.GetConstructor(BindingFlags.Public | BindingFlags.Instance, null, signature, null);
uninitializedObject = FormatterServices.GetUninitializedObject(implementation);
info.Invoke(uninitializedObject, arguments);
}
catch (Exception exception2)
{
exception = exception2;
throw new ComponentActivatorException("ComponentActivator: could not instantiate " + base.Model.Implementation.FullName, exception); }加粗的这句。就是我程序要抛出的异常。在本地假设服务器执行没有问题。传到空间或VPS就报错。不晓得是不是服务器有什么权限没有开启哦。?哪位大侠帮帮忙吧。已经困扰我几个月了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货