在layouts文件夹中使用.ashx文件时的程序集问题

时间:2011-07-11 20:45:37

标签: c# asp.net sharepoint

我的“Layouts”文件夹中有一个* .ashx文件用于sharepoint,看起来我似乎无法访问Layouts文件夹之外的任何自定义类。装配有问题吗?我一直收到错误:

The type or namespace name 'PropertiesHelper' does not exist in the namespace 'Company.SharePoint.Test' (are you missing an assembly reference?)

我试图使用using语句导入类,但似乎无法找到它。我也尝试写出函数的完整路径,如:Company.SharePoint.Test.PropertiesHelper.someMethod

1 个答案:

答案 0 :(得分:0)

通常当我遇到这种情况时,这是因为我忘了将程序集实际部署到GAC(或者本地取决于你是如何做的)。无论哪种方式,它都找不到程序集,因为它不在正确的位置或不受信任。

相关问题