如何刷新单ASP.NET页面无需重新启动Web服务器?

编程入门 行业动态 更新时间:2024-10-18 14:22:58
本文介绍了如何刷新单ASP.NET页面无需重新启动Web服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我修改一个文件,单声道ASP.NET没有看到我的变化,我不得不这样做:

When I make changes to a file, Mono ASP.NET doesn't see my changes, I have to do this:

sudo /etc/init.d/apache2 restart

我记得当单ASP.NET执行ASP.NET某处缓存编译。之前,当更新的页面不上来,我只是删除缓存编译code。我只是忘了确切的路径

I remember when Mono ASP.NET executes ASP.NET it caches the compilation somewhere. Before, when the updated page doesn't come up, I just delete that cached compiled code. I just forgot the exact path

如何使ASP.NET单检测我在节目中所做的更改,而无需重新启动Web服务器?

How to make Mono ASP.NET detects the changes I made in program, without restarting the web server?

推荐答案

这听起来像FileSystemWatcher对象无法看到的变化从窗户那边传来。

It sounds like the FileSystemWatcher cannot see changes coming from the windows side.

在你的窗户边更新,转到Linux方面做:

After you update on the windows side, go to the linux side and do:

触摸的Web.Config

touch Web.Config

或者在目录中的任何文件。这应该通知ASP.Net加载新的code。

or any file on the directory. This should notify ASP.Net to load your new code.

更多推荐

如何刷新单ASP.NET页面无需重新启动Web服务器?

本文发布于:2023-11-24 02:08:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623579.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重新启动   页面   服务器   ASP   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!