App_offline.htm创建/删除每当我在TFS签出文件 [英] App_offline.htm created/deleted whenever I check out a file in TFS

查看:304
本文介绍了App_offline.htm创建/删除每当我在TFS签出文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用.NET 4.0的AJAX重ASP.NET Web应用程序开发,使用TFS作为我们的源代码控制。我们最近升级我们的开发工具的使用VS2010和2010年专门TFS,但是现在每一个文件被签出的时候,我们看到的Visual Studio重装所有的符号,和被丢弃所有的会话。

I have an AJAX-heavy ASP.NET web application developed using .NET 4.0, using TFS as our source control. We recently upgraded our dev tools to use VS2010 and TFS 2010 exclusively, but now every time a file is checked out, we see visual studio reloading all the symbols, and all the sessions being dropped.

把一些错误日志code后,我们发现了回收的原因是它估计App_offline.htm正在改变,每当我们退房。这不会在任何地方项目的存在,我的SO-福发现有关SQL防爆preSS使这个文件得到创建,删除了一些信息,所以有可能这就是这里发生了什么。

After putting some error logging code, we discovered the reason for the recycle is it reckons App_offline.htm is changing whenever we check out. This doesn't exist anywhere in the project, and my SO-fu has found some information about SQL Express making this file get created and deleted, so it's possible that's what's happening here.

它看起来像我确实有安装了SQL-Ex的preSS,但即使禁用正在运行的服务,问题仍然存在。

It looks like I do have SQL-Express installed, but even disabling the services that are running, the problem persists.

有没有办法从添加/删除这个文件停止退房,如果这确实发生了什么事?这是令人沮丧以外有应用循环每当我只是签出文件...

Is there any way to stop a check out from adding/removing this file, if this is indeed what is happening? It's beyond frustrating to have the app recycle whenever I simply check out a file...

推荐答案

我发现了一个解决方法。

I have discovered a work-around.

1)进入其中的Visual Studio缓存app_offline.htm文件的位置
C:\\用户[用户] \\应用程序数据\\漫游\\微软\\ VisualStudio的\\ 11.0 \\(更换[用户]与您的用户名)

1) Go to the location in which Visual Studio caches the app_offline.htm file C:\Users[user]\AppData\Roaming\Microsoft\VisualStudio\11.0\ (replace [user] with your username)

2)删除app_offline.htm文件

2) Delete the app_offline.htm file

(注意:这本身不足以解决它,因为VS再生时再它没有找到该文件)

(NOTE: this alone will not solve it, as VS regenerates the file again when it's not found)

3)创建一个目录名为app_offline.htm(目录!)

3) Create a directory called app_offline.htm (a DIRECTORY!)

这实际上将导致错误与试图使用该文件,因为它不是一个文件,名称冲突意味着VS不能尝试重新创建该文件的进程。幸运的是,错误没有不必要的副作用。

This essentially causes an error with the process that attempts to use the file because it's not a file and the name clash means VS cannot try to recreate the file. Luckily the error has no unwanted side-effects.

现在继续使用VS和Team Foundation Server中,享受不经常具有的AppDomain重新加载!

Now continue with using VS and Team Foundation Server and enjoy not constantly having the appdomain reloaded!

这当然不意味着任何发布过程可能不会使用app_offline.htm文件,所以您需要留意这一点。

This does of course means that any Publish process will probably not use the app_offline.htm file, so you'll need to keep an eye on that.

这篇关于App_offline.htm创建/删除每当我在TFS签出文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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