ASP.NET Web应用程序代码未在生产服务器上更新 [英] ASP.NET Web App Code Not Updating On Production Server

查看:59
本文介绍了ASP.NET Web应用程序代码未在生产服务器上更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人遇到这样的情况:代码更改可以在一台服务器上完美地工作,而在另一台服务器上却不能?我遇到的情况是,我在更改后做了一些ASP.NET代码,并且一切正常.质量检查已批准更改,我们将更改移至生产环境,现在什么也没有.生产中的Web应用程序不会出错或崩溃,它只是忽略更改.有人告诉我测试和生产服务器与IIS版本是相同的.

有什么建议我应该开始寻找的吗?我已经验证了aspx和dll文件是否已移动以及正确的版本.我们尝试过重新启动IIS并重新启动服务器.什么也没用.

Has anyone had a situation where code changes work perfectly on one server but not another? I have a situation where I made a few ASP.NET codebehind changes and everything tested fine. QA signed off on the changes, we move the changes to production and now nothing. The web app in production does not error or crash, it just ignores the changes. I''ve been told that the Test and Production servers and IIS versions are identical.

Any suggestions where I should start looking? I''ve verified that the aspx and dll files are moved and the correct version. We''ve tried restarting IIS and rebooting the server. Nothing is working.

推荐答案

也时有发生.特别是对于动态编译的资源文件更改(resx).

帮助我的是删除"ASP.NET临时文件"文件夹的内容.如果某些子文件夹已锁定,请尝试IISRESET.另外,还要确保删除Framework和Framework64的那些文件.

您发现该文件夹与c:/windows/microsoft.net/v4.xxx/...中的文件夹类似(很抱歉,在该MacBook上找不到反斜杠).

干杯
Uwe
Happens to me, from time to time, too. Especially with resource file changes (resx) that are dynamically compiled.

What helped me is to delete the contents of the "Temporary ASP.NET files" folder. Try IISRESET if some child folders are locked. Also ensure you delete the ones for Framework and Framework64, too.

You finde the folder somewhere similar as in c:/windows/microsoft.net/v4.xxx/... (sorry, can''t find backslash on that MacBook).

Cheers
Uwe


HI,
您没有提到要上传已编译文件或未编译文件吗?
如果要上载未编译的文件,则由于框架下的临时文件,可能会出现您发布的问题.解决方法是暂时重命名您的web.config文件,尝试浏览该站点.显然,您的站点会出错,现在还原web.config文件.这可以解决问题,其想法是强制引擎再次重新编译该站点,这将清除临时文件.

希望对您有所帮助.

You didn''t mentioned you are uploading compiled files or uncompiled files?
If you are uploading uncompiled files, then the problem you posted might occurs due to temporary files under framework. Workaround is rename your web.config files for time being, try to browse the site. Obviously your site will give error, now restore the web.config file. This can do the trick, idea is force engine to re-compile the site again and it will wipe out temporary files.

I hope this will help.


尝试在生产中重新保存web.config.
只需更改并重新保存即可.
它将清除缓存,重新启动应用程序,等等.

祝你好运.
Try to re-save web.config on production.
Just change something and re-save it.
It will clear the cache, restart the application, etc...

Good luck.


这篇关于ASP.NET Web应用程序代码未在生产服务器上更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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