忽略了在c当净app.config文件:\程序文件\ [英] .Net app.config file ignored when under c:\ProgramFiles\

查看:157
本文介绍了忽略了在c当净app.config文件:\程序文件\的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪phenomen

I have a strange phenomen

我有.NET 4.0中的应用程序。 当myapp.exe.config是在正常PROGRAMFILES文件夹会被忽略。即使我删除它或它的MyApp.exe的作品写废话,这在我看来,价值是从previous安装服用。

I have .Net 4.0 app. When the myapp.exe.config is under the normal programfiles folder it is ignored. Even if I delete it or write nonsense in it the myapp.exe works and it seems to me that values are taken from a previous installation.

在我文件夹复制到例如到桌面它的工作原理是正确的。

When I copy the folder to e.g. to Desktop it works correct.

编辑:当我复制表格C:程序文件\ MyApp的\到C:的MyApp \程序文件\拷贝\它的工作原理 这似乎是在progamfile文件夹,其中一个previous安装已鸭舌只取得了一个问题。 (我猜)

when I copy form c:programfiles\myapp\ to c:\programfiles\copy of myapp\ it works It seems to be only a problem in the progamfile folder where a previous installation has benn made. (I guess)

任何想法?

最好的问候

推荐答案

您能否与我们分享您的操作系统?我有过类似的问题,一个应用程序(运2008年)。一个简单的工作,以防万一,如果你不是系统管理员,是编辑上的其他位置的config文件,然后将其放回。

Could you share your operating system with us? I have had similar problems in the past with an application (Win 2008). One simple work arround if you are not the system administrator, is to edit the .config file on another location, and then place it back.

有时一个文件的内容是不是真的editted,然而一个副本与创建的改变的背面,这是令人困惑。

Sometimes the content of a file is not really editted, however a copy is created with your changed on the back, which is confusing.

这篇关于忽略了在c当净app.config文件:\程序文件\的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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