Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

super slow C# apps

Status
Not open for further replies.

spyG5

Programmer
Jun 3, 2003
10
PH
Hi All,

I'm a newbie in C# and is finding this language really fun to program with :)

The only thing that's turning me off about it is the fact that all my _C# apps_ take a while to activate/run whenever I'm connected to our LAN in the office. This is true even for a "helloworld" console program!

By "slow", I mean... at least 10 secs before the string "hello world!" shows up on the screen!

However, all the apps run as quick as could be expected whenever I'm disconnected from the LAN.

All my other apps (Microsoft Office apps and even those I've written using C/C++) work just fine. It really looks like it's a .Net-thing.

I'm running Win2K on an IBM laptop w/ a P4 processor. I'm using Visual Studio.NET 2002.

'Really appreciate if somebody could tell me what I can do about this.

Thanks in advance!


 
Sounds like some sort of authentication or DNS lookup going on. When you're connected, are you signed into the domain/active directory? Or are you logging into your local machine?

Chip H.
 
I'm prompted for my domain\username (& password ofcourse) everytime I log in to my account in the office. What I do is dock my laptop, then connect. What do you mean by 'logging in to my local machine'?

Really appreciate your inputs so I could hopefully do away w/ this pesky app start slowness.

Thanks!
 
When you log into Win2k, you can select what domain to log into. Either the one which your network properties are configured for, or the local machine (in which case you have limited network access, if any at all).

One other thing is that every time you load an assembly in .NET it has to verify your permissions. When disconnected, this info comes from your local machine. But when connected to your network it queries a network server, which is likely slower.

Chip H.
 
Hi Chip,

Would the fact that I'm using Framework 1.0 have anything to do with this slowness? I'm using MS.Net 2002.

I believe there is a newer Framework version available. Can I download this for free, and use it on MS.Net 2002?

Thanks!
 
Nope. I'm using v1.0 of the framework too, and I'm not seeing this delay.

One question - what's your disk drive light doing during this? Might it be time for a defrag? Or enable the DMA driver for your computer for faster response?

Chip H.
 
I really don't think it's got something to do w/ disk drive access. Again, I don't experience tihs application start-up slowness whenever I'm not connected to our LAN. Also, I believe it's VS.Net-related as all my other non-C# programs(actually, those I did NOT code using VS.Net)are loading fast.

A good example would be a program which I developed using VB 6.0 which loads pretty quick, with or w/o a LAN connection.

Even loading of the VS.Net environment takes much longer whenever I'm connected to the LAN.

Anything else that I could try?

This is the only thing that's preventing me from being completely nuts about C# & VS.NET!

:)
 
Try talking to your network admin - maybe they know if the DNS server is slow or other cause.

Otherwise, I'm out of ideas.

- anyone? anyone?




 
I know that there was a problem with the network at uni and vs.net. Don't know the specifics but I'm sure there is a fix around somewhere - try windows update

hth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top