WCF Service not running without Administrator rights

I am new to WCF. I have a WCF service which I am hosting in a WPF application, while running the service it requires admin rights. Every time I have to right click the application which host my service and select "Run As Administrator". How can I make the service run on Windows 7?

Answers


I could not get what exactly my question was but I got a work around. Admin rights are needed only if you are suing http bindings with WCF. I switched to netTcpBinding and it worked for me. Its not exactly what I asked, but worked for me. May be it will help someone facing similar issues.


Try using a higher port. Low ports may only be opend with administrative rights.

You might also have to use NETSH:

In cmd promt enter:

NETSH

add urlacl url=http://+:8732/ user=DOMAIN\user


Need Your Help

Strange conflict on git

git diff git-diff kdiff3 diff3

I read an article about three-way merges (diff3). It gives an example about how is detects a conflict. The example is :

BigDecimal.divide(…) - appropriate scale for quotients with non-terminating expansions

java floating-point bigdecimal

I'm using BigDecimal for some floating-point math. If you divide 5 by 4.2 you'll get an exception (as the result has a non-terminating expansion which cannot be represented by a BigDecimal) i.e.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.