SharePoint 应用程序页面 - 找不到文件异常
我正在使用 wspbuilder 项目模板在 Visual Studio 2005 for SharePoint 中开发 Web 部件。
我使用 WSPBuilder 部署我的页面、图像、css 和 javascript 文件。有时,当我使用 wspbuilder 进行部署时,我会遇到“文件未找到”异常。
经过一系列重复部署后,该页面可以正常工作。我不知道这背后的原因是什么。我还包括了在 SharePoint 应用程序页面中获得的异常的堆栈跟踪。
堆栈跟踪:- 未找到文件。在 System.Reflection.Assembly._nLoad(AssemblyName fileName、字符串 codeBase、证据 assemblySecurity、程序集位置Hint、StackCrawlMark& stackMark、布尔值 throwOnFileNotFound、布尔值 forIntrospection) 在 System.Reflection.Assembly.nLoad(AssemblyName fileName、字符串 codeBase、证据 assemblySecurity、程序集 locationHint、StackCrawlMark& stackMark、布尔值 throwOnFileNotFound、布尔值 forIntrospection) 在 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef、证据 assemblySecurity、StackCrawlMark& stackMark、布尔值 forIntrospection) 在 System.Reflection.Assembly.InternalLoad(字符串 assemblyString,证据 assemblySecurity,StackCrawlMark& stackMark,布尔值 forIntrospection) 在 System.Reflection.Assembly.Load(字符串 assemblyString) 在 System.Web.Configuration.CompilationSection.LoadAssembly(字符串程序集名称,布尔值 throwOnFail) 在 System.Web.UI.TemplateParser.LoadAssembly(字符串程序集名称,布尔值 throwOnFail) 在 System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistrationCore(TagNamespaceRegisterEntry nsRegisterEntry) 在 System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistration(TagNamespaceRegisterEntry nsRegisterEntry) 在 System.Web.UI.BaseTemplateParser.ProcessDirective(字符串指令名称,IDictionary 指令) 在 System.Web.UI.TemplateControlParser.ProcessDirective(字符串指令名称,IDictionary 指令) 在 System.Web.UI.PageParser.ProcessDirective(字符串指令名称,IDictionary 指令) 在 System.Web.UI.TemplateParser.ParseStringInternal(字符串文本,编码 fileEncoding) 解决 Windows SharePoint Services 问题。
I am developing a webpart in Visual Studio 2005 for SharePoint using a wspbuilder project template.
I deploy my pages,images,css and javascript files using WSPBuilder. Sometimes, I come across 'File not found' exception when I make a deploy using 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.
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.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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您的应用程序页面引用完整的程序集名称,包括其页面声明中的版本和公钥令牌
make sure your application page references the full assembly name, including version and public key token in its Page declaration