Vb.NET My.settings不起作用 [英] Vb.NET My.settings not working

查看:416
本文介绍了Vb.NET My.settings不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我什至不知道从哪里开始对此进行描述.

我有一个项目,该项目使用设置(对于某些路径),这些设置是使用My.Settings检索的设置.功能.

在我的笔记本电脑中,当我更改< app name ="> .exe.config文件时,设置会相应更新,但是当我在生产服务器上尝试使用它时,它仅显示编译时使用的默认值. br/>
我尝试将解决方案配置更改为调试和其他自定义配置,但没有任何效果.
尝试使用未经版本控制复制和粘贴的同一文件夹,结果仍然相同.
通过使用最新的svn修订版试用了一款同事笔记本电脑,它也可以在该笔记本电脑上使用.但是在这两台服务器上都无法使用.

使用VB的.net 2.0.

我在这里想念什么..?

是的,我在两台服务器上都运行管理员帐户.

解决方案

在服务器上运行代码时,您是否使用管理员帐户登录?

Well I don''t even know where to begin describing this.

I have a project, that uses settings, for some paths, settings that I retrieve with the My.Settings.<setting name=""> function.

In my laptop, when I change the <app name="">.exe.config file, the settings are updated accordingly, but when I try that on the production server, it just shows the default value used while compiling.

I tried changing the solution configurations to debug and other custom configs with no effect.
Tried to use the same folder copied and pasted without version control, still the same result.
Tried a co-workers laptop, by using the last svn revision, it works there too. But on neither of the servers works.

.net 2.0 using VB.

What am I missing here..?

And yes, I am running the admin account on both servers.

解决方案

Are you logged in with an admin account when you run the code on the servers?


这篇关于Vb.NET My.settings不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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