How to refresh Mono ASP.NET page without restarting the web server?

It sounds like the FileSystemWatcher cannot see changes coming from the windows side After you update on the windows side, go to the linux side and do: touch Web. Config or any file on the directory. This should notify ASP.Net to load your new code.

It sounds like the FileSystemWatcher cannot see changes coming from the windows side. After you update on the windows side, go to the linux side and do: touch Web. Config or any file on the directory.

This should notify ASP. Net to load your new code.

Thanks a ton, superb, that did the trick, even I modify AdminLogin. Aspx and just touch Web. Config, it now loads the updated AdminLogin.aspx.

Though for AdminLogin.aspx. Cs, must be compiled first(Ctrl+Shift+B) before touching Web. Config so the updated code will be loaded – Hao Apr 19 '10 at 3:40 that's why i'm familiar with your ID, I have seen your april 1 blog about your ad-supported pinta before jpobst.blogspot.Com nice opensource project – Hao Apr 19 '10 at 3:47.

This is the command to restart your App, and recompile if its needed. (with out restart the web server). Can you test it if do the work?HttpRuntime.UnloadAppDomain(); The other way is to create a file app_offline.

Htm on root, upload your changes, and then delete it.

When I edit the aspx directly in Linux, Mono ASP. NET can fetch the updated page. But if the file is saved from Windows, Mono cannot detect that there are changes.By the way, the Mono ASP.

NET is hosted in Vmwared Linux, asp. Net source code is saved in windows drive. Then that asp.

Net source code from windows is mounted directly to vmawred linux's /var/www/TestCode – Hao Apr 13 '10 at 7:05 @Hao, can you use the app_offline. Html method? And if this not work, you can create a hidden asp.

Net page, and just call it after your update, and this page just call the UnloadAppDomain. Logically, after that the Mono asp.Net must detect and recompile the changes. – Aristos Apr 13 '10 at 7:46 I already tried that both before I replied to you, app_offline.

Html didn't work. I think it has something to do with linux's samba, it doesn't signal the other apps if the file was changed across the network. But if I edit the page(e.g. I put caption on aspx) directly(still on mounted samba folder) in linux, mono asp.Net is able to display the updated page – Hao Apr 13 '10 at 9:45 @Hao can you please check the commnad UnloadAppDomain()?

– Aristos Apr 13 '10 at 10:16.

Any one knows how to upload files to the physical location of the server. It is possible using file upload control that I know. But I want to avoid the external postbacking of the page.

G exactly like what in the yahoo mail did. In yahoo mail latest version if you attach a file that won't post back and attach that file in to server. What is the technology behind that?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions