2010-08-07 41 views
0

我正在使用wspbuilder項目模板在Visual Studio 2005 for SharePoint中開發webpart。SharePoint應用程序頁面 - 文件未找到異常

我使用WSPBuilder部署我的頁面,圖像,CSS和JavaScript文件。有時,當我使用wspbuilder進行部署時,我遇到了「文件未找到」異常。

經過一系列的重複部署之後,頁面可以正常工作。我不知道這背後的原因是什麼。我還包括我在SharePoint應用程序頁面中獲得的異常的堆棧跟蹤。

堆棧跟蹤: - 未找到文件。在System.Reflection.Assembly._nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,Assembly locationHint,StackCrawlMark & stackMark,Boolean throwOnFileNotFound,Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,組件locationHint,StackCrawlMark & stackMark,布爾throwOnFileNotFound,布爾forIntrospection) 在System.Reflection.Assembly.InternalLoad(的AssemblyName assemblyRef,證據assemblySecurity,StackCrawlMark & stackMark,布爾forIntrospection) 在System.Reflection.Assembly.InternalLoad(字符串assemblyString,證據assemblySecurity,StackCrawlMark & stackMark,Boolean forIntrospection) at System.Reflection.Assembl y.Load(String assemblyString) at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName,Boolean throwOnFail) at System.Web.UI.TemplateParser.LoadAssembly(String assemblyName,Boolean throwOnFail) at System.Web.UI .MainTagNameToTypeMapper.ProcessTagNamespaceRegistrationCore(TagNamespaceRegisterEntry nsRegisterEntry) 在System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistration(TagNamespaceRegisterEntry nsRegisterEntry) 在System.Web.UI.BaseTemplateParser.ProcessDirective(字符串directiveName,IDictionary的指令) 在System.Web.UI.TemplateControlParser .ProcessDirective(String directiveName,IDictionary指令) at System.Web.UI.PageParser.ProcessDirective(String directiveName,IDictionary directive) at System.Web.UI.TemplateParser.ParseStringInternal(String text,Encoding fileEncoding) 解決Windows SharePoint Services的問題。

回答

0

確保您的應用程序頁面引用完整的程序集名稱,包括在其頁面聲明版本和公鑰令牌