.NET应用程序需要本地管理员权限 [英] .NET Application requires Local Administrator Rights

查看:99
本文介绍了.NET应用程序需要本地管理员权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我们有一个内部开发的VB.NET Windows应用程序,只有当用户获得本地管理员权限时才能成功运行
。 br />
没有它,它就无法启动。

事件查看器中没有任何报告。让用户完全访问C:\驱动器也没有做到这一点。不幸的是,我们没有此应用程序的代码

因此无法查看应用程序尝试访问的内容。注意

我们在机器上运行.NET 1.1和2.0但是

app.config文件已经配置为指向ver。 1.1运行时。


我们需要运行应用程序而不给用户本地管理员

权限。任何人都可以建议这个问题可能是什么原因和

排除故障的方法吗?


提前谢谢

ec。

Hi,

We have an inhouse developed VB.NET Windows application which runs
successfully only when the user is given a local administrator rights.
Without which, it fails to start. There isn''t anything reported on the
event viewer. Giving the user full access to C:\ drive also doesn''t do
the trick. Unfortunately, we do not have the code of this application
and hence cannot view what the application is trying to access. Note
that we have both .NET 1.1 and 2.0 running on the machine but the
app.config file has been configured to point to ver. 1.1 runtime.

We need to run the application without giving user local administor
rights. Can anyone suggest what might be the cause of this problem and
approach of troubleshooting it?

Thanks in advance
ec.

推荐答案

也许试图访问注册表或文件的某些受保护区域

system ...可能事件日志相关的东西,可能试图打开一个以前没有被管理员打开的端口


我的建议:下载Lutz Roeder'的.NET Reflector,看看

代码。我猜测它没有被混淆,所以你应该能够看到发生了什么。


Marc
Perhaps trying to access some protected area of the registry or file
system... possibly something event-log related, possibly trying to
open a port that hasn''t previously been opened by an administrator

My advice: download Lutz Roeder''s .NET Reflector, and look at the
code. I''d hazard a guess that it isn''t obfuscated, so you should be
able to see what is going on.

Marc


感谢您的回复。


我看过Reflector,但似乎无法弄清楚

任何东西。


有没有人知道是否有任何工具允许我

来监控哪些资源(文件/注册表/端口) )主要应用

是试图打开/访问?


由于我不是编程大师,任何人都可以引导我进入
$抛出错误时b $ b执行一些调试打印?


ec。

Thanks for your reply.

I took a look through the Reflector but can''t seems to figure out
anything.

Does anyone know if there is there any tool out there that allows me
to monitor what resources (files/registry/ports) the main application
is trying to open/access?

As I am not a programming guru, can anyone also guide me into
performing somekind of debug print when the error is thrown?

ec.



" ECEE" < el ******* @ gmail.comwrote in message

news:11 ********************** @ o11g2000prd.googlegr oups.com ...

"ECEE" <el*******@gmail.comwrote in message
news:11**********************@o11g2000prd.googlegr oups.com...

感谢您的回复。


我看过Reflector但是似乎无法弄明白

什么。


有谁知道是否有任何工具可以让我

监控主要应用程序的资源(文件/注册表/端口)

是否正在尝试打开/访问?


因为我不是编程大师任何人都可以引导我进入

当抛出错误时执行一些调试打印?
Thanks for your reply.

I took a look through the Reflector but can''t seems to figure out
anything.

Does anyone know if there is there any tool out there that allows me
to monitor what resources (files/registry/ports) the main application
is trying to open/access?

As I am not a programming guru, can anyone also guide me into
performing somekind of debug print when the error is thrown?

http://www.microsoft.com/technet/sys...s/default.mspx

有效端口和CurrPort是免费的。


尝试

代码

Catch Exception ex

debug.Print(ex.Message)


结束尝试

http://www.microsoft.com/technet/sys...s/default.mspx

Active Ports and CurrPort are free.

Try
code
Catch Exception ex
debug.Print(ex.Message)

end Try


这篇关于.NET应用程序需要本地管理员权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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