WCF System.ServiceModel.AddressAccessDeniedException
I have created a WCF services library using visual studio 2008 @ windows XP OS it's working fine,
even i created a same type of service @ windows 7 OS that's also working fine.
but the issue is when i copy the whole project from XP to Win7,during compile compiled successfully but when i start that service then i got an error message like..
System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:8080/<...>. Your process does not have access rights to this namespace (see http://msdn.microsoft.com/library/de...nd_routing.asp for details). ---> System.Net.HttpListenerException: Access is denied
please help me how to solve the problem
even i tried with
netsh http add urlacl url=... user=...
2 Attachment(s)
Re: WCF System.ServiceModel.AddressAccessDeniedException
finally i got a solution it was a security issue for vista as well as win7
http://www.vbforums.com/attachment.p...1&d=1273087362
http://www.vbforums.com/attachment.p...1&d=1273087362
need to allow your url to "NT AUTHORITY\INTERACTIVE" this user
for this need to download "UrlReservationModifier.zip"
Will not prompt for privilege elevation in Windows Vista. To add or remove reservations while UAC is running, right-click on the EXE and select “Run as administrator”.
Requirements
* Windows XP SP2, Windows Server 2003, Windows Vista, or Windows Server 2008
* .NET Framework 2.0
* Should work on both x86 and x64.
* Administrator permisions to add or remove reservations.
referrance: http://urlreservation.codeplex.com/
Re: WCF System.ServiceModel.AddressAccessDeniedException
Not sure how you're doing the original URL assignment, but when you use netsh to reserve the URL on a machine, you can also specify /user so that permissions are applied properly (which is what that ACL app is doing anyways).