对web.config或app_code文件夹的更改不会重新编译(webfarm) [英] changes to web.config or app_code folder doesn't recompile (webfarm)

查看:193
本文介绍了对web.config或app_code文件夹的更改不会重新编译(webfarm)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我正在运行webfarm设置。每个服务器在同一网络共享文件夹上使用共享配置。内容也在网络共享上。我正在运行一个带有App_Code文件夹的网站,而不是网络应用程序



问题是,每当我对App_Code,global.asax或web.config进行更改时,该网站仍然使用windows \ microsoft.net \ framework64 \v4.0.30319\temporary asp.net files\root \文件夹中的旧DLL。我必须停止应用程序池,删除该文件夹中的文件,启动应用程序池,然后只会重新编译新的更改。



有没有办法强制它重新编译文件更改?或者向每个服务器发送一些命令?我不介意该路由,只要它不必删除dll文件

解决方案

找到一个技巧来强制它重新编译,而不停止应用程序池。使用c:\\​​\\windows \ system32 \inetsrv \ appcmd.exe设置编译tempdirectory。 tempdirectory每次都可以是同一个,但无论如何它都会重新编译。 http://www.iis.net/learn/manage/creating-websites/provisioning-iis-7-sites-for-shared-hosting

hello, I'm running a webfarm setup. each server uses shared configuration on a same network share folder. the contents are also on a network share. I'm running a website with App_Code folder, not web application

problem is, whenever I do changes to App_Code, global.asax, or web.config, the site still uses the old DLLs in"windows\microsoft.net\framework64\v4.0.30319\temporary asp.net files\root\" folder. I have to stop the application pool, delete the files in that folder, start application pool, then only it will recompile with the new changes.

is there a way to force it to recompile on file change? or send somekind of command to every server? I don't mind that route as long as it's not having to delete the dll files

解决方案

Found a trick to force it to recompile, without stopping application pool. use c:\windows\system32\inetsrv\appcmd.exe to set the compilation tempdirectory. the tempdirectory can be the same one everytime, and still it will recompile no matter. http://www.iis.net/learn/manage/creating-websites/provisioning-iis-7-sites-for-shared-hosting


这篇关于对web.config或app_code文件夹的更改不会重新编译(webfarm)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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