These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Help/advice ASP.NET 4.5 web app and IGB

Author
Elmore Jones
New Eden Mining Organisation
The Craftsmen
#1 - 2013-12-06 17:06:06 UTC  |  Edited by: Elmore Jones
So, I'm tinkering with an old but good EVE app that uses a web UI for IGB via httplistener. I'm not happy with this as the user is forced to run the app as Admin on Vista onward. I am considering a few options, the easiest, porting wise, would be asp.net. The problem comes with using even a compiled skeleton app on the IGB - it takes 50-60 seconds every refresh to display the page. The same page works fine on firefox + chromium out of game with no delays that are unexpected with debugging mode on. Running from Xamarin would be an option but I cant debug from there (known issue so far unresolved) - running via Xamarin has no delay loading the page in IGB with mono framework or .NET 4.5 :s

Any ideas?

*EDIT : This is observed on vs web express 2010 + 2012 whether using test server or IIS express so I assume it's something in the way the IDE executes the project.

+++ Reality Error 404 - Reboot Cosmos +++

Nnaem Kvorr
Fleet-Up.com
Keep It Simple Software Group
#2 - 2013-12-07 08:49:52 UTC
Change the build output to .net 4.0. Does it fix the issue?

I.e Are you sure that it's .net 4.5 that's the issue?

Fleet-Up.com - Your fleet operations, on steroids.

Elmore Jones
New Eden Mining Organisation
The Craftsmen
#3 - 2013-12-07 11:19:00 UTC  |  Edited by: Elmore Jones
Yeah the framework isn't part of it. I've actually found a workaround since posting but I don't exactly know what the problem is in the first place.

Essentially the alias localhost is causing the problem in this case. Changing the url in chromium, firefox or IGB to 127.0.0.1:8080 from the localhost:8080 that I'd normally have used completely removes this delay. It even makes the original app operate noticeably faster on page changes serving internally from httplistener.

Some digging on stack overflow shows there was a bug in osx lion with the configuration of ip6 + ip4 that caused lookups like localhost to take a long time. Maybe windows 7 has a similar issue.

+++ Reality Error 404 - Reboot Cosmos +++

Elmore Jones
New Eden Mining Organisation
The Craftsmen
#4 - 2013-12-07 11:58:41 UTC
And we have a winner! Sorry to waste the forum space folks, I was initially assuming it was something I could fix in the IDE or some obscure IGB issue. The problem is in the way Windows 7 (and probably Vista and 8) handle the localhost lookup. The old XP/*nix style hosts file in windows/system32/drivers/etc still has the translations so uncommenting the line :

127.0.0.1 localhost

stops whatever delays Windows achieves using the dns lookup system to resolve localhost.

+++ Reality Error 404 - Reboot Cosmos +++