伙计们,我需要将城堡温莎用于共享点项目。我创建了一个新的类库项目(MyIOCProject),它有一个类(CastleConfiguration)来做我的配置。该类继承自 Microsoft.SharePoint.ApplicationRuntime.SPHttpApplication
我已将 MyIOCProject.dll 放在 C:/inetpub/wwwroot/wss/VirtualDirectories/my app version/bin
然后在“C:/inetpub/wwwroot/wss/VirtualDirectories/my app version”中,我将 global.asax 从
<%@ Assembly Name="Microsoft.SharePoint"%><%@ Application Language="C#" Inherits="Microsoft.SharePoint.ApplicationRuntime.SPHttpApplication" %>
至
<%@ Assembly Name="Microsoft.SharePoint"%><%@ Application Language="C#" Inherits="MyIOCProject.CastleConfiguration" %>
IISReset 后出现以下错误:无法加载类型“MyIOCProject.CastleConfiguration”。
有人可以帮忙吗。