Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

srirama
sridhar
More...


Forums » .NET » WCF »

How to check port number of WCF running testservice?


Posted Date: 14 Nov 2011      Posted By:: dhanu     Member Level: Silver    Member Rank: 2398     Points: 4   Responses: 4



Hi all,

I am new to WCF.
I have created a Console application in WCF service.
After all self hosting ,i tesed in console,its working fine.
But, my problem is,i want to know wheather my service is running or not
ie,if i given the address for PORTNO:7001.
I WANT TO SEE THE MY SERVICE IS RUNNING IN 7001 PORT.For that i used Vs.Net command prompt and use : " C:\users\lucky>netstart -a "
but its showng error.

thanks and regards
Sahhu




Responses

#641888    Author: Asheej T K        Member Level: Diamond      Member Rank: 2     Date: 14/Nov/2011   Rating: 2 out of 52 out of 5     Points: 2

Hi,
Can you tell me the error you are getting when yo execute this command. It should display all the port details if you have proper permission to execute the code. If you can post the error we will be able to help you.


Regards,
Asheej T K
Microsoft MVP[ASP.NET/IIS]
DotNetSpider MVM

Dotnet Galaxy



 
#641898    Author: dhanu      Member Level: Silver      Member Rank: 2398     Date: 14/Nov/2011   Rating: 2 out of 52 out of 5     Points: 1

C:\users\lucky>netstart -a

'netstart' is not recognized as an internal or external command,operable program or batch file



 
#642014    Author: Vidhya      Member Level: Gold      Member Rank: 0     Date: 15/Nov/2011   Rating: 2 out of 52 out of 5     Points: 4

Hi,

It may be occurred since your path is not set correctly. Look for the following file:
c:\windows\system32\netstat.exe

If it is there, get to the command prompt, CD your way to c:\windows\system32 and run netstat from there.

The -a option shows all connection, as opposed to just the active ones. It won't stop you running the command.

To see what your path is set too, enter command:
echo %PATH%
or go to :
Control Panel->System->Advanced->Environment Variables

Hope it may help you!!!

Regards,
Vidhya






 
#642096    Author: dhanu      Member Level: Silver      Member Rank: 2398     Date: 15/Nov/2011   Rating: 2 out of 52 out of 5     Points: 1

hi vidhya,

Thanks for your answer,but its not give any solution to me,as i said my first post that i m developed a WCF console application for testservice.Its running in my given address(http://localhost/7001).Its working fine and my service is running and i m getting result also,but real problem is i want to see wheather my service is running on same(7001)port or not



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : 'System.ServiceModel.ServiceHost.ServiceHost()' is inaccessible due to its protection leve
Previous : Wcf interview questions
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.