简体   繁体   English

Visual Studio或IIS错误?

[英]Visual Studio or IIS bug?

I don't really know how to go about figuring out this issue, so I hope that someone can piece together my situation and give me some guidance. 我真的不知道如何解决这个问题,所以我希望有人可以把我的情况拼凑起来并给我一些指导。

I've been working on a site, I was observing some odd behavior, like changing some text on a page didn't reflect when I debugged. 我一直在网站上工作,我正在观察一些奇怪的行为,比如在我调试时更改页面上的某些文字并没有反映出来。 The same happened today, I added a hyperlink to a gridview, and when I tried to set the URL in the code behind, I was getting errors saying that it couldn't find the control I had created in the aspx. 今天也发生了同样的事情,我向gridview添加了超链接,当我尝试在后面的代码中设置URL时,出现了错误,提示它找不到我在aspx中创建的控件。 The debugger was hitting my breakpoints too. 调试器也达到了我的断点。 I checked in my code, and tried it on another dev machine, it worked perfectly fine there. 我检查了我的代码,并在另一台开发机上尝试了一下,在那儿工作得很好。 I'm not certain at all what's causing the issue, but it seems like when I debug, I'm running a different version of the source, but that doesn't explain to me how I can hit debugging points. 我完全不确定导致问题的原因,但似乎在调试时,我正在运行不同版本的源代码,但这并不能向我解释如何达到调试点。 Any help would be great. 任何帮助都会很棒。

Use Ctrl+F5 in the browser to clear it cache. 在浏览器中使用Ctrl + F5清除缓存。

If that doesn't help, restart iis. 如果这没有帮助,请重新启动iis。

Finally clearing and rebuilding the solution can help as well. 最后清理和重建解决方案也有帮助。

Did you try to clear ASP.NET cache? 您是否尝试清除ASP.NET缓存?

Just delete files in C:\\WINDOWS\\Microsoft.NET\\Framework\\{.NET Version}\\Temporary ASP.NET Files\\{your website} or C:\\WINDOWS\\Microsoft.NET\\Framework64\\{.NET Version}\\Temporary ASP.NET Files\\{your website} 只需删除C:\\WINDOWS\\Microsoft.NET\\Framework\\{.NET Version}\\Temporary ASP.NET Files\\{your website}C:\\WINDOWS\\Microsoft.NET\\Framework64\\{.NET Version}\\Temporary ASP.NET Files\\{your website}

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

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