Search:
Namespaces
Discussions
.NET v1.1
Feedback
getting hostname in namespace declaration
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngwebservices' list
.
=?iso-8859-1?q?Apomana=20Krao?=
-- Moved from [aspngfreeforall] to [aspngwebservices] by Cain Marco <
Click here to reveal e-mail address
> --
gentlefolks.. i have webservice that is going to be
installd on different machines.. is possible to get
hostname somehow where "hostname here" is? i try the
Namespace=System.Net.
Dns
.GetHostName() but fails
saying not a constant..
namespace Services
{
[
WebService
(Namespace="hostname here")]
/// <summary>
/// Summary description for iub.
/// </summary>
public class iub : System.Web.Services.
WebService
{
}
}
any helps?
apo
________________________________________________________________________
Everything you always wanted to know about cars and bikes,now
at: http://in.autos.yahoo.com
Reply to this message...
Sreedhar Koganti
If U R question is for gettion host name using ip address then
-----------------------------
Dim myIP As
IPAddress
=
IPAddress
.Parse("209.82.75.33")
Dim myHost As
IPHostEntry
=
Dns
.GetHostByAddress(myIP)
MsgBox(myHost.HostName)
-----------------------------
we have to use imports[vb] or using[c#] System.Net
-----------------------------
Good Luck
Sreedhar
http://www.w3coder.com
[Original message clipped]
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
Reply to this message...
=?iso-8859-1?q?Apomana=20Krao?=
thks Sreedhar i know how to get hostname once in a
class.. this is before the class in the namespace
before the class.. unless there way to set a property
after i declare class??
apo
--- Sreedhar Koganti <
Click here to reveal e-mail address
> wrote: > If
U R question is for gettion host name using ip
[Original message clipped]
________________________________________________________________________
Everything you always wanted to know about cars and bikes,now
at:
http://in.autos.yahoo.com
Reply to this message...
System.Net.Dns
System.Net.IPAddress
System.Net.IPHostEntry
System.Web.Services.WebService
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com