升级到VS2008 Sp1后,网站报告xxx在当前上下文中不存在 [英] Web site reports xxx does not exist in current context after upgrade to VS2008 Sp1
问题描述
我刚刚升级到VS2008 Sp1,但遇到了一个奇怪的问题.我从页面后面的代码中收到很多错误,这些错误表明在当前上下文中不存在控件,并且我也收到错误消息,指出页面没有方法.
I just upgraded to VS2008 Sp1, and I have a weird issue going on. I get a lot of errors from my code behind pages indicating that a control doesn't exist in the current context and I am also getting an errors that the pages do not have methods.
似乎ide在尝试编译c#代码而不编译aspx代码.
It seems like ide is trying to compile the c# code without compiling the aspx code.
该站点可以通过IIS和Visual Web Developer正常运行,实际上,当我打开页面后面的代码时,所有错误都会消失.任何人都知道为什么VS2008 SP1会以这种方式运行吗?
The site runs fine via both IIS and Visual Web Developer, and in fact when I open up the code behind page, all the errors go away. Anyone have any idea why VS2008 SP1 is behaving this way?
我正在使用C#和网站项目模式.
I am using C#, and the Web Site project mode.
推荐答案
有 KB文章和修补程序听起来可能是我的问题.如果这是我的特定问题,但行为匹配,我将对此进行测试并更新我的答案.我需要提高自己的Google技能.应该已经通过Google找到了.
There is a KB Article and Hotfix for what sounds like might be my issue. I'll test this and update my answer if it was my specific problem but the behavior matches. I need to improve my google skills..should have found this via google.
此补丁解决了我的问题,很奇怪
This patch resolved my issue, weird
这篇关于升级到VS2008 Sp1后,网站报告xxx在当前上下文中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!