简体   繁体   English

SharePoint应用程序页面-找不到文件异常

[英]SharePoint Application Page - File not found exception

I am developing a webpart in Visual Studio 2005 for SharePoint using a wspbuilder project template. 我正在使用wspbuilder项目模板在Visual Studio 2005 for SharePoint中开发一个Webpart。

I deploy my pages,images,css and javascript files using WSPBuilder. 我使用WSPBuilder部署页面,图像,css和javascript文件。 Sometimes, I come across 'File not found' exception when I make a deploy using wspbuilder. 有时,当我使用wspbuilder进行部署时,遇到“找不到文件”异常。

After some series of repetitive deploys, the page would work fine. 经过一系列重复部署后,该页面将正常运行。 I don't know what is the reason behind this. 我不知道这是什么原因。 I am also including the stack trace of the exception which I got in the SharePoint Application Page. 我还包括在SharePoint应用程序页面中获得的异常的堆栈跟踪。

Stack Trace :- File Not Found. 堆栈跟踪 :-找不到文件。 at 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, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.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. 在System.Reflection.Assembly.nLoad(AssemblyName fileName,字符串codeBase,证据,System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,Evidence assemblySecurity,StackCrawlMark&stackMark,Boolean forIntrospection)处的System.Reflection.Assembly.InternalLoad(String forIntrospection),位于System.Web.UI.TemplateParser.LoadAssembly(String AssemblyName,Boolean throwOnFail),位于System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName,Boolean throwOnFail),位于System.Web.UI.TemplateParser.LoadAssembly(String .Web.UI.MainTagNameToTypeMapper。 ProcessTagNamespaceRegistrationCore(TagNamespaceRegisterEntry nsRegisterEntry) at System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistration(TagNamespaceRegisterEntry nsRegisterEntry) at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.PageParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) Troubleshoot issues with Windows SharePoint Services. System.Web.UI.BaseTemplateParser.ProcessDirective(String指令名称,IDictionary指令)的System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistration(TagNamespaceRegisterEntry nsRegisterEntry)的ProcessTagNamespaceRegistrationCore(TagNamespaceRegisterEntry nsRegisterEntry)在System.Web.UI.TemplateControlParser.ProcessDirective(String System.Web.UI.PageParser.ProcessDirective上的IDictionary指令)(System.Web.UI.TemplateParser.ParseStringInternal(String文本,Encoding fileEncoding)处的IDictionary指令)对Windows SharePoint Services的问题进行故障排除。

确保您的应用程序页面引用了完整的程序集名称,包括其页面声明中的版本和公共密钥令牌

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM