473,408 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

System.Net.Dns methods slow when run from C# DLL hosted in IE.

The runtime environment is .NET CLR v1.1.

I've got a C# DLL that contains the following code:

IPHostEntry hostInfo = Dns.GetHostByName(this.ComputerName);

When the DLL containing the above code is hosted in a C# client, the above
code run fast (sub-second). When the DLL containing the above code is hosted
in IE it takes about 2 minutes to run.

I've tried other Dns methods (like Dns.GetHostByAddress, and Dns.Resolve),
but they all take about 2 minutes to complete (when hosted in IE).

My goal is to bind to a specific port on the "localhost" and listen for
incomming IP messages. Here's all the relevant code:
IPHostEntry hostInfo = Dns.GetHostByName(this.ComputerName);
IPAddress[] address = hostInfo.AddressList;
IPEndPoint ipLocalEndPoint = new IPEndPoint(address[0],
Int32.Parse(listenPort));

Is this a known problem in CLR 1.1 with code hosted in IE? Can any one think
of a workaround?

Thank you.
Aug 14 '06 #1
0 1182

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

Similar topics

12
by: R | last post by:
Hello everybody. I'm writing my own Content System in PHP5. I've written so far main classes for handling DB connections, XML, XForms and Sessions. But I've got problem with one thing - it's...
7
by: ddsvi78 | last post by:
I am a complete idiot when it comes to access. Now that said, I work for a computer security company and one of our customers came to us with an access problem. They had been running fine for a...
1
by: Bruce Hodge | last post by:
Hi, We have multiple copies of an application running on 2003 server hosted on the Internet. Each has it's own SQL database, each has it's own Website and URL. So in processing terms they are...
29
by: Geoff Jones | last post by:
Hi All I hope you'll forgive me for posting this here (I've also posted to ado site but with no response so far) as I'm urgently after a solution. Can anybody help me? I'm updating a table on...
4
by: sommes | last post by:
It's only happen on .asp website, what's the problem? Thank you
6
by: onnodb | last post by:
Hi all, While working on an Access UI to a MySQL database (which should be a reasonable, low-cost, flexible interface to the DB, better than web-based, much less costly than a full-fledged .NET...
2
by: yasmike | last post by:
I am having a problem with my secure website on our internal network. The secure website is hosted on our Windows 2000 Server running IIS 5.0. If you try and access the website from a browser from...
5
by: Useful Info | last post by:
Hi all, I have some PHP pages at http://muvy.org which is exhibiting some strange slowness. It is hosted by secureserver.net (bad?). When I time how long it takes to load the main web page...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...
0
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...

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.