我有一个位于SharePoint 2007中的ASP.NET 2.0 Web项目。几天前,我对几个页面进行了两次更改,第一个更改是在脚本文件夹中添加脚本引用到jQuery文件我和我的网络项目一起生活。
第二个更改是从SharePoint的DateTime控件替换所有DatePicker控件,我不得不在这一页的顶部添加<% Register....SharePoint.WebControls
引用。
在我以发布模式编译解决方案并部署到我的生产环境后,当我尝试从SharePoint访问该页面时,我开始收到“找不到文件”错误。我不知道是怎么回事。我们已经回收了应用程序池,甚至堆栈跟踪也没有告诉我们那么多。下面是我访问页面时收到的堆栈跟踪视图。请帮忙,我几天来一直在看这个问题。
File Not Found. at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Signature..ctor(RuntimeFieldHandle fieldHandle, RuntimeTypeHandle declaringTypeHandle)
at System.Reflection.RtFieldInfo.get_FieldType()
at System.Web.UI.Util.GetNonPrivateFieldType(Type classType, String fieldName)
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder)
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers()
at System.Web.Compilation.PageCodeDomTreeGenerator.BuildMiscClassMembers()
at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree()
at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder)
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
答案 0 :(得分:1)
这是一个熟悉的。它与SharePoint DateTime控件请求的System.Web.Extensions版本有关。它似乎正在使用Ajax,而您没有引用正确的Ajax平台版本。
类似于此处描述的步骤解决了我的问题: http://paulsiu.wordpress.com/2009/03/04/file-not-found-error-when-you-select-new-webpart-after-installing-smartpart-13/