当被告知时,.NET App不会从系统开始 [英] .NET App wont start with system when told to
问题描述
好的,这很奇怪我看到这个问题用C#和VB.NET应用程序制作
..NET ...
我有安装框架(目前是.NET 3.5)...我安装了我的
应用程序......我把它们放在注册表中,当用户登录时启动了
所以我把它放在
HKEY_Current_USER_\Software\Microsoft \ Windows \Curr entVersion \ Run key ... ok
好像应该开始...... nob nothing ..放置一个C ++应用程序在那里开始
正确登录! ok wierd ...将应用程序放在
控制面板中的Startup组中...没有...再次在那里放置一个C ++应用程序(非托管
当然)和热潮在登录时启动......到底是怎么回事?我需要
这个应用程序在客户端登录时从系统开始......它不能
是一项服务,因为它有UI交互......任何想法发生了什么事?
谢谢!
Ok this is wierd I am seeing this issue with C# and VB.NET apps made in
..NET...
I have the framework installed (.NET 3.5 currently)... i installed my
applications... I placed them in the registry to start up when the user logs
in so I placed it in the
HKEY_Current_USER_\Software\Microsoft\Windows\Curr entVersion\Run key... ok
seems like it should start... nope nothing.. place a C++ app in there starts
right up with the login! ok wierd... place the app in the Startup group in
control panel... nothing... once again place a C++ app in there (non-managed
of course) and boom starts up on login... what the heck is going on? I need
this app to start with the system when the client logs in... and it can not
be a service because it has UI interaction... any ideas what is going on?
Thanks!
推荐答案
Smokey,
我会在应用程序中进行某种日志记录,特别是在你对应用程序类上的静态Run方法(在try / catch
块中)调用
时,看看如果有异常被抛出。我不是说
就是这种情况,但它绝对是一个开始的地方。
-
- 尼古拉斯Paldino [.NET / C#MVP]
- mv*@spam.guard.caspershouse.com
" Smokey Grindel" < no **** @ nospam.comwrote in message
news:O7 ************** @ TK2MSFTNGP04.phx.gbl ...
Smokey,
I would put some sort of logging in the app, espectially around your
call to the static Run method on the Application class (in a try/catch
block) to see if there is an exception that is being thrown. I''m not saying
this is the case, but it''s definitely a place to start.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Smokey Grindel" <no****@nospam.comwrote in message
news:O7**************@TK2MSFTNGP04.phx.gbl...
好的,这很奇怪我看到这个问题用C#和VB.NET应用程序制作了
.NET ...
我安装了框架(当前是.NET 3.5)...我安装了我的
应用程序......我将它们放在注册表中以便在用户
登录,所以我把它放在
HKEY_Current_USER_\Software\Microsoft \ Windows \Curr entVersion \ Run key ... ok
似乎应该开始...没有任何东西..在那里放置一个C ++应用程序
启动登录!确定wierd ...将应用程序放置在控制面板中的Startup
组中......没有...再次在那里放置一个C ++应用程序
(非托管当然)和热潮在登录时启动......究竟是什么
还在继续吗?我需要这个应用程序从系统开始,当客户端记录
in ...并且它不能是一个服务,因为它有UI交互...任何
想法到底是怎么回事?谢谢!
Ok this is wierd I am seeing this issue with C# and VB.NET apps made in
.NET...
I have the framework installed (.NET 3.5 currently)... i installed my
applications... I placed them in the registry to start up when the user
logs in so I placed it in the
HKEY_Current_USER_\Software\Microsoft\Windows\Curr entVersion\Run key... ok
seems like it should start... nope nothing.. place a C++ app in there
starts right up with the login! ok wierd... place the app in the Startup
group in control panel... nothing... once again place a C++ app in there
(non-managed of course) and boom starts up on login... what the heck is
going on? I need this app to start with the system when the client logs
in... and it can not be a service because it has UI interaction... any
ideas what is going on? Thanks!
事件日志中有关于发生的事情的任何内容?
没有这样做(从.net app开始run / autostart)所以我不知道
是否存在问题...
写入用户没有权利的文件,但是你在
测试?不...
它适用于您的帐户而不是其他(权利)
否则我解决了一个奇怪的延迟启动(没有找到一个不错的
睡觉或等待dos)
a .bat文件和一些ping开始之前,但那是为了获得2
不同程序以几秒钟的延迟开始,例如ping -n 1 -
w 5000 x
UI *应该*工作直到vista作为服务据我所知,但是不会推荐使用它 - 使用旧的VB6应用程序自己使用它,但很快就会有
。
>
// CY
Anything in the eventlog about what happend?
not done that (starting .net app from run/autostart) so I dont know if
there is a problem...
writing to files that user doesnt have rights to but you do when
testing? nah...
does it work with your account but not another (rights)
otherwise i solved one strange with delay of start (didnt find a nice
sleep or wait in dos)
a .bat file and some ping before it started but that was to get 2
different programs to start with a few seconds delay like "ping -n 1 -
w 5000 x"
UI *should* work until vista as a service as far as I know, but would
not recommend it - using it myself with an old VB6 app, but that has
to go soon.
//CY
如果我只是制作一个没有任何东西的winforms应用程序,这甚至都不起作用,
编译它并将其放在那里...所以它不是许可或文件IO
错误...因为应用程序在用户有权限的文件夹中...所以我>
很困惑......没有事件记录或任何事情
< ch ******* @ gmail.comwrote in messag e $>
新闻:86 ********************************** @ 18g2000h sf。 googlegroups.com ...
This doesn''t even work if I just make a winforms app with nothing in it,
compile it and place it in there... so it souldnt be permission or file IO
errors... because the app is in a folder the user has permission to... so I
am confused... no event logs or anything
<ch*******@gmail.comwrote in message
news:86**********************************@18g2000h sf.googlegroups.com...
事件日志中有什么事情发生了什么?
没做过(启动.net app来自run / autostart)所以我不知道是否
存在问题...
写入用户没有权利的文件但是你做的时候
测试?不...
它适用于您的帐户而不是其他(权利)
否则我解决了一个奇怪的延迟启动(没有找到一个不错的
睡觉或等待dos)
a .bat文件和一些ping开始之前,但那是为了获得2
不同程序以几秒钟的延迟开始,例如ping -n 1 -
w 5000 x
UI *应该*工作直到vista作为服务据我所知,但是不会推荐使用它 - 使用旧的VB6应用程序自己使用它,但很快就会有
。
>
// CY
Anything in the eventlog about what happend?
not done that (starting .net app from run/autostart) so I dont know if
there is a problem...
writing to files that user doesnt have rights to but you do when
testing? nah...
does it work with your account but not another (rights)
otherwise i solved one strange with delay of start (didnt find a nice
sleep or wait in dos)
a .bat file and some ping before it started but that was to get 2
different programs to start with a few seconds delay like "ping -n 1 -
w 5000 x"
UI *should* work until vista as a service as far as I know, but would
not recommend it - using it myself with an old VB6 app, but that has
to go soon.
//CY
这篇关于当被告知时,.NET App不会从系统开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!