473,800 Members | 2,332 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET App wont start with system when told to

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_US ER_\Software\Mi crosoft\Windows \CurrentVersion \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!
Dec 18 '07
11 1713
Precisely!

Surely you know the difference between 'installed' and 'loaded'.

When one logs in to a PC, an awful lot of work takes place before the system
is ready to start executing commands that you throw at it.

I suspect that your program is attempting to access some recource or other
before it is actually available.
"kimiraikko nen" <ki************ *@gmail.comwrot e in message
news:5a******** *************** ***********@q3g 2000hsg.googleg roups.com...
On Dec 19, 2:55 pm, "Willy Denoyette [MVP]"
<willy.denoye.. .@telenet.bewro te:
>"kimiraikkonen " <kimiraikkone.. .@gmail.comwrot e in message

news:ab******* *************** ************@s1 9g2000prg.googl egroups.com...
On Dec 18, 7:33 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions .comwrote:
Hi,
>Personally I never use the registry, I use the startup folder
accesible
from
the start menu.
Having said that I have never ever encountered any problem doing it.
>As Paldino said put some logging int he app and see what is going on.
>--
Ignacio Machinhttp://www.laceupsolut ions.com
Mobile & warehouse Solutions."Smok ey Grindel" <nos...@nospam. com>
wrote
in message
>>news:O7****** ********@TK2MSF TNGP04.phx.gbl. ..
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_US ER_\Software\Mi crosoft\Windows \CurrentVersion \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!
Could be a timing problem? At startup, usually all the processes are
forced to load at the same time, thus CPU must process them at the
same time. If the app tries to run before .NET libraries is loaded and
services being configured, then maybe that could be the reason. But at
this point it's likely that you should have get a run-time error if
the .NET framework runtime libraries cannot be found due to app can be
launced before .NET libraries.

This is nonsense, there are no .NET libraries to be loaded or configured
during logon , .NET libraries are loaded as part of the application
itself.

Willy.

Embedded into app? No .NET runtimelibaries loaded by Windows? But none
of .NET-powered apps can run without .NET runtime libraries installed.
Dec 20 '07 #11
"kimiraikko nen" <ki************ *@gmail.comwrot e in message
news:5a******** *************** ***********@q3g 2000hsg.googleg roups.com...
On Dec 19, 2:55 pm, "Willy Denoyette [MVP]"
<willy.denoye.. .@telenet.bewro te:
>"kimiraikkonen " <kimiraikkone.. .@gmail.comwrot e in message

news:ab******* *************** ************@s1 9g2000prg.googl egroups.com...
On Dec 18, 7:33 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions .comwrote:
Hi,
>Personally I never use the registry, I use the startup folder
accesible
from
the start menu.
Having said that I have never ever encountered any problem doing it.
>As Paldino said put some logging int he app and see what is going on.
>--
Ignacio Machinhttp://www.laceupsolut ions.com
Mobile & warehouse Solutions."Smok ey Grindel" <nos...@nospam. com>
wrote
in message
>>news:O7****** ********@TK2MSF TNGP04.phx.gbl. ..
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_US ER_\Software\Mi crosoft\Windows \CurrentVersion \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!
Could be a timing problem? At startup, usually all the processes are
forced to load at the same time, thus CPU must process them at the
same time. If the app tries to run before .NET libraries is loaded and
services being configured, then maybe that could be the reason. But at
this point it's likely that you should have get a run-time error if
the .NET framework runtime libraries cannot be found due to app can be
launced before .NET libraries.

This is nonsense, there are no .NET libraries to be loaded or configured
during logon , .NET libraries are loaded as part of the application
itself.

Willy.

Embedded into app? No .NET runtimelibaries loaded by Windows? But none
of .NET-powered apps can run without .NET runtime libraries installed.

Yes the CLR and .NET libraries are loaded *in the process* of the .NET
application. Windows does not load the runtime (why would it?), the runtime
is no stand-alone shared component and is not part of the Windows OS!
..NET applications cannot run without the Framework installed, just like non
..NET applications cannot run without some other runtime libraries , Windows
(other than Vista) has no dependency on the .NET Framework. Vista comes with
the Framework installed, but this is because some Vista utilities are .NET
applications, but the Vista OS basically does not require .NET to be
present.

Willy.

Dec 20 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1926
by: manokumar | last post by:
hiye, i notice that some if not all of my folders in winxp pro. are set as read only and its giving me some problem with development. so as the natural thing, i unchecked the read only option and click apply then click ok. and when i right click on the same folder again JUST TO MAKE SURE the read only option is checked AGAIN. so again, unchecked, and again its check and the cycle repeats. anyway, i'm the administrator to this computer. so...
5
1046
by: Nick | last post by:
Hi there, This one is really doing my head in, I am attempting to start a thread using the following code, -------------------- Public Sub start() cTrdImportThread = New Threading.Thread(AddressOf cTrdImportThread_Callback)
4
21767
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a webserver to see if service A needs to be updated. What service B does if it sees their is an update for service A is to download a new copy of the service A executable, stop service A, replace the executable with the new copy, and start service B...
7
11111
by: moondaddy | last post by:
I'm running a wpf windows app and want to add the appSettings element to the config file. when I do, the app wont start up and I get the following error: {"The type initializer for 'System.Windows.Application' threw an exception."} {"The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception."} " at System.Windows.Application..ctor()\r\n at DiagramTool_v1.App..ctor()\r\n at DiagramTool_v1.App.Main() in
11
1263
by: Smokey Grindel | last post by:
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\CurrentVersion\Run key... ok seems like it should start... nope nothing.. place a C++ app in there starts right up with the login! ok...
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10276
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10035
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.