473,770 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET application on network share -> slow startup/maximisation time

Hello

We have got a .NET application (.NET 1.1) that the users start from a
network share. After start up the user logs in and he can then minimise the
application, so that it appears as an icon down on the right hand side (like
the date information, msn icon etc.). Now when the user wants use the
application he must first maximise it or relogin (if he logged out before).
On some machines this maximisation/startup time lasts extremely long (up to
60 seconds and more). What could be the reason for this?

However this peculiar behavior seems only to happen on workstations that
have been running a long time (and the application has also been started a
long time but i dont know whether this makes a difference). There seems to
be quite a lot of network activity when maximising/restarting the
application. To me it seems more or less acceptable that the client must get
the application again from the network share when it was minimised for a
long time (os frees resources). But how can it possibly take take that long
(much much longer than the normal startup time).

What might could have an influence is that the application tries to minimise
memory usage by using the corresponding windows api.
[DllImport("kern el32.dll", SetLastError=tr ue)]

public static extern int SetProcessWorki ngSetSize ( IntPtr hProcess, int
dwMinimumWorkin gSetSize, int dwMaximumWorkin gSetSize);

accessed like this:
//release memory for other applications

MemoryUsageMini miser.SetProces sWorkingSetSize (Process.GetCur rentProcess().H andle,
-1, -1);

Does anybody have an idea what could be the reason for this strange
behavior. I would apprecheate any help.

Thanks in advance

Daniel.



Jul 24 '06 #1
0 1586

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

Similar topics

7
1545
by: Joshua Sprague | last post by:
Recently i tested an application i was developing on another P.C. with the same harware. It was a new P.C. though and did not have the .NET framework installed on it, so i first installed Dotnetfx.exe. When i ran my application i got a few errors about libraries and J-I-T Debugging. Also, registry functions and such did not work. I searched the MSDNKB and google :) and still couldn't find anything that explained how i would go about...
3
3294
by: kathy | last post by:
I have a general question. If I write a application using any language(C/C++/C#/VB). How to make sure it only has one instance running? What I need to write in source code? If multi-instances run. Is any data confilct exsisted? Assuming I put the .exe in shared network drive and the multi-instances run on different PC. How about the multi-instances run on same PC?
1
6572
by: brian.oneil2 | last post by:
Is there a way to install this onto a network file share and allow a team to access it? I would say share a CD from a networked CD drive, but there are multiple CD's that would have to be inserted. TIA, Brian
8
2747
by: Pete Wittig | last post by:
Hello, I am wondering if it is possible to create a networked application with C# that is seen as a windows user. For example, if Bob logged onto windows and then started the application, any access to the network made through the application would be seen as 'C# application user' and not 'Bob'. What I want to accomplish is to create an encrypted folder on a server where files within the folder can be accessed through the application,...
1
1941
by: CES | last post by:
All, If anyone has been following my trials over the last week see(Setting up a Web Application on IIS 5.1 and ASP.Net Security Problems). I'm having a problem running a Asp.Net Web Application. I've finally narrowed the problem down to a security issue: The ASPNET (aspnet_wp) account cannot connect to a Network resource instead of using a local path ie: C:\Inetpub\wwwroot my development site resides on a Network Share...
2
2071
by: Johnny Fugazzi | last post by:
I would like to access a network share from my vb.net application. I do not want to map a drive to the share, however. I would also like to specifiy a user credential to use when connecting to the share, as the user running the application will not have security rights to hit the share themselves. Any pointers on this?
1
2903
by: ScottB | last post by:
When creating website applications within Visual Studio 2005, I use the File System method because it meets the needs of our environment. In choosing the location of the directory where the files will reside, I can choose a share on a network file server or a local directory on my workstation. I use the network file server share because there are others who need access to the files as well, plus the files also get backed up. The...
6
4546
by: eswanson | last post by:
on a different server. I am currently getting an access denied when I attempt to do the following in my asp.net page: strFilePath = ConfigurationManager.AppSettings; strFileName = strImageName + ".*"; DirectoryInfo di = new DirectoryInfo(Server.MapPath(strFilePath));
2
5403
by: Keld R. Hansen | last post by:
I am coding a .NET 2.0 application that needs to be able to run from a network share (intranet), but the security settings does not allow me to do this by default. How can I - in the installation program or by manual intervention afterwards - grant FullRights to the program? The program consists of three modules: WinEXE - a plain Visual C++ 32-bit .EXE file
2
10695
by: Bill Fallon | last post by:
I have a VS2005 VB.Net windows form application deployed to a share drive. The windows explorer security permissions for this application (.exe) file is set for Everyone with List Folder/Read Data not allowed. This is done so that users cannot take away a copy of the .exe file. When I execute the ..exe from the client computer I get .Net Framework Initialization Error, Unable to find a version of the runtime to run this application. The...
0
9617
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
9454
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
10099
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
9904
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
8931
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
3609
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.