如何刷新单ASP.NET页面无需重新启动Web服务器? [英] How to refresh Mono ASP.NET page without restarting the web server?

查看:77
本文介绍了如何刷新单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服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆