Welcome to MSDN Blogs Sign in | Join | Help

AddressAccessDeniedException – Cause and Solution

While working with WCF service on Windows Vista, I came across the following error, which I am sure everybody who have created the services on previous versions (Windows XP and likes) and trying to migrate their services to Windows Vista would have encountered.

HTTP could not register URL http://+:8000/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details).

The error occurs due to the new security settings in Windows Vista. Most people are no longer going to be running with Administrator privileges by default like they were doing on earlier platforms. This impacts your ability to run HTTP web services because listening at a particular HTTP address is a restricted operation. By default, every HTTP path is reserved for use by the system administrator. Your services will fail to start with an AddressAccessDeniedException if you aren't running the service from an elevated account. The account under which the Visual Studio and the debugger runs does not have the privilege (though the user account under which VS is runnig may be a part of Administrators group), and hence the error occurs. The plus sign in the URL just means that there's a wildcard being applied to the hostname.

To fix this problem, the owner of the HTTP namespace (built-in administrator) needs to delegate this ownership to the user account under which you are running your application (most of the times, it's the logged on user). To do this, start a command prompt using "Run as administrator" so that you have elevated privileges. Then, use netsh.exe to give some of the Administrator's HTTP namespace to your user account. You can look at the existing HTTP namespace delegations by using "netsh http show urlacl".

Now, use "netsh http add urlacl url=http://+:8000/ user=DOMAIN\UserName" to assign the HTTP namespace to required user account. You can get the syntax for all of these commands by running "netsh http" without any arguments. Note that I've matched the URL in this command to the URL that appeared in the error message. The wildcarding is important for getting the right reservation and you'll continue to be denied access if your reservation covers less than your service's attempted registration. Go back to Visual Studio and check that your service runs properly.

Published Monday, January 29, 2007 3:24 PM by Amit Lale
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Sunday, April 01, 2007 10:54 AM by Vadim

# re: AddressAccessDeniedException – Cause and Solution

Thanks.  It was very helpful.

Monday, June 04, 2007 2:43 AM by Pallavi

# re: AddressAccessDeniedException – Cause and Solution

I was running the WCF samples on Vista when I got the above exception.

All I did was, 'Run as Administrator'.

Thnx for the post

Wednesday, June 27, 2007 1:01 PM by Paul Wheeler

# re: AddressAccessDeniedException – Cause and Solution

FYI. The netsh tool isn't available in Windows 2003, and the alternative, httpcfg, is not very usable (you have to hand code SDDL strings). I've created a <a href="http://blogs.msdn.com/paulwh/archive/2007/05/04/addressaccessdeniedexception-http-could-not-register-url-http-8080.aspx">GUI tool/C# library to set HTTP Namespace reservations</a>, source is available.

Wednesday, June 27, 2007 1:02 PM by Paul Wheeler

# re: AddressAccessDeniedException – Cause and Solution

Thursday, November 22, 2007 11:32 AM by Ash

# re: AddressAccessDeniedException – Cause and Solution

The above solution works perfectly! The only thing that want to point out is the usage of command, "netsh http add urlacl url=http://+:8

000/ user=DOMAIN\UserName" . When I used my domain name and username, the command failed. When I used  "user=administrator" it worked.

Wednesday, February 06, 2008 2:04 PM by Rui

# re: AddressAccessDeniedException – Cause and Solution

Hi, i have a problem when i try to use the solution you presented it gives me an error. SDDL criation has failed. error 1332

Can you help on this one?

Thanks in advance.

Friday, February 08, 2008 12:13 AM by TGnat

# re: AddressAccessDeniedException – Cause and Solution

I got the error 1332 also.  I reran the command and used only the unsername, not the domain.  I guess that makes sense because my pc is not part of a domain?

Tuesday, March 18, 2008 3:46 PM by ReBitting

# WCF and Vista: AddressAccessDeniedException

WCF and Vista: AddressAccessDeniedException

Sunday, April 27, 2008 4:13 AM by ReBitting

# WCF e Vista: AddressAccessDeniedException

WCF e Vista: AddressAccessDeniedException

Friday, June 13, 2008 6:34 AM by subhojit - subho100

# re: AddressAccessDeniedException – Cause and Solution

I followed and its working. Go to programs ->Accessories-> command prompt and right-click to do run as administrator.

The urls that gives the errors are to be done to netsh... like here i have registered "http://localhost:8001/BusinessService"">http://localhost:8001/BusinessService"

e.g. netsh http add urlacl url=http://localhost:8001/BusinessService user=elecom\subhojitc

-subho100

Tuesday, June 17, 2008 8:47 PM by Anant Agavekar

# re: AddressAccessDeniedException – Cause and Solution

Lale Saheb,

Thank you.. it helped..

Monday, July 28, 2008 7:50 PM by Seetharaman Suriyanarayanan

# re: AddressAccessDeniedException – Cause and Solution

Actually this didn't worked out for Anant. It screwed up his IIS. Later we reinstalled IIS which solved both these problems.

Saturday, September 13, 2008 7:42 PM by Prasanth

# re: AddressAccessDeniedException – Cause and Solution

Hi amit ,

this didn;t worked for me .

i am trying using the

netsh http add urlacl url=http://+:8000/ user= administrator ,i am getting command not found.

i am confused what is the domain name i supposed to use , i am using personal computer not in any network -DOMAIN\UserName

even netsh http command is also not working .getting same command not found error

your guidance will be helpful for me

Monday, October 20, 2008 9:54 AM by Mark Channing

# re: AddressAccessDeniedException – Cause and Solution

This all worked for me.  Need to run command window as administrator.  Run as from accessories folder.

netsh command on own takes you into the app. enter http to go into http mode.

type show urlacl to see existing.  under vs2008 you may already have 8731 registered.  Odd this i found is that if service is  <add baseAddress = "http://localhost:8732/Design_Time_Addresses/WcfServiceLibrary1/Service1/" /> then you only need to do add urlacl url=http://+:8732/Design_Time_Addresses/ user=Admin

or if not in netsh type

netsh http add urlacl url=http://+:8732/Design_Time_Addresses/ user=Admin

No need to use domain name.  Once entered above I end with the entry

 Reserved URL            : http://+:8732/Design_Time_Addresses/

     User: Notebook-PC\Admin

         Listen: Yes

         Delegate: No

         SDDL: D:(A;;GX;;;S-1-5-21-2004778160-4166234090-2778265170-1000)

Wednesday, February 11, 2009 2:20 PM by Sanket Bakshi

# re: AddressAccessDeniedException – Cause and Solution

Thanks Amit...

I ran into this today - I could not get this working - probably due to some issues with windows firewall or IIS installation.

An alternative is to simply run the host as administrator. :)

--Sanket

Friday, February 27, 2009 5:51 PM by Mike Kellogg

# Sanket's alternative works

I couldn't get any of the command-line stuff to work at all.  But I ran my host executable "As Admin" and THEN it worked, finally.  Unbelievable.  Now wondering what a permanent solution might be.

Tuesday, April 21, 2009 8:25 AM by Martin Lercher

# re: AddressAccessDeniedException – Cause and Solution

Hi,

Another detail: running under 2k8 with uac turned off, all works fine. Installed and configured Routing and Remote Access Server Role -> exception. netsh command doesn't help. RRAS disabled. All works fine again.

Solution/workaround: unknown.

Martin

Monday, April 27, 2009 2:25 AM by Prashant

# re: AddressAccessDeniedException – Cause and Solution

Hi I got the same exception while running the cloud deployed service. I used the netsh command but it didnt serve the purpose.

Any workaround? Kindly reply.

Wednesday, June 03, 2009 12:18 PM by Scott Cate

# re: AddressAccessDeniedException – Cause and Solution

Thank you - I just installed and stated running Windows 7, this error cropped up, and your blog was an instant fix. Found from Bing.com with a search of ...

Windows 7 addressaccessdeniedexception

Friday, June 12, 2009 2:21 AM by 出会い

# re: AddressAccessDeniedException – Cause and Solution

ヒマだょ…誰かかまってぉ…会って遊んだりできる人募集!とりあえずメール下さい☆ uau-love@docomo.ne.jp

Saturday, June 13, 2009 2:24 AM by 小向美奈子

# re: AddressAccessDeniedException – Cause and Solution

話題の小向美奈子ストリップを隠し撮り!入念なボディチェックをすり抜けて超小型カメラで撮影した神動画がアップ中!期間限定配信の衝撃的映像を見逃すな

Sunday, June 14, 2009 1:58 AM by 家出掲示板

# re: AddressAccessDeniedException – Cause and Solution

カワイイ子ほど家出してみたくなるようです。家出掲示板でそのような子と出会ってみませんか?彼女たちは夕食をおごってあげるだけでお礼にHなご奉仕をしてくれちゃったりします

Monday, June 15, 2009 2:14 AM by 右脳左脳

# re: AddressAccessDeniedException – Cause and Solution

あなたは右脳派?もしくは左脳派?隠されたあなたの性格分析が3分で出来ちゃう診断サイトの決定版!合コンや話のネタにも使える右脳左脳チェッカーを試してみよう

Tuesday, June 16, 2009 2:22 AM by セレブラブ

# re: AddressAccessDeniedException – Cause and Solution

セレブラブでは性欲のある男性を募集しています。セフレパートナーを探している20代・30代の女性たちが多数登録されています。セレブと遊びたい、Hがしたいという方は無料登録からどうぞ

Wednesday, June 17, 2009 2:39 AM by 逆援助

# re: AddressAccessDeniedException – Cause and Solution

セレブ達は一般の人達とは接する機会もなく、その出会う唯一の場所が「逆援助倶楽部」です。 男性はお金、女性はSEXを要求する場合が多いようです。これは女性に圧倒的な財力があるから成り立つことの出来る関係ではないでしょうか?

Thursday, June 18, 2009 1:19 AM by 救援部

# re: AddressAccessDeniedException – Cause and Solution

貴方のオ○ニーライフのお手伝い、救援部でHな見せたがり女性からエロ写メ、ムービーをゲットしよう!近所の女の子なら実際に合ってHな事ができちゃうかも!?夏に向けて開放的になっている女の子と遊んじゃおう

Friday, June 19, 2009 2:50 AM by 出会い

# re: AddressAccessDeniedException – Cause and Solution

まったぁ〜りしたデートがしたいです☆結構いつでもヒマしてます♪ m-g-j@docomo.ne.jp 年齢と名前くらいは入れてくれるとメール返信しやすいかも…

Saturday, June 20, 2009 12:46 AM by 逆援交際

# re: AddressAccessDeniedException – Cause and Solution

会員制の逆援交際倶楽部では男性は無料、一日最低額10万円保障での交際をお求めできます。ご登録された女性様達はセレブであるがための悩みをそれぞれの方が持ち、皆様、男性との営みを求め、ご登録されております。彼女たちとの初々しい一時をお楽しみ、謝礼をいただいてくださいませ。会員制ですので人数に限りがあるため、打ち切りの場合はご了承ください

Sunday, June 21, 2009 12:47 AM by 家出

# re: AddressAccessDeniedException – Cause and Solution

家出中でネットカフェやマンガ喫茶にいる女の子たちは、お金が無くなり家出掲示板で今晩泊めてくれる男性を探しています。ご飯を食べさせてあげたり泊めてあげることで彼女たちはHなお礼をしてくれる事が多いようです

Monday, June 22, 2009 12:39 AM by 勝ち組負け組

# re: AddressAccessDeniedException – Cause and Solution

当サイトは、みんなの「勝ち組負け組度」をチェックする性格診断のサイトです。ホントのあなたをズバリ分析しちゃいます!勝ち組負け組度には、期待以上の意外な結果があるかもしれません

Tuesday, June 23, 2009 12:28 AM by 素人

# re: AddressAccessDeniedException – Cause and Solution

男性が主役の素人ホストでは、男性のテクニック次第で女性会員様から高額な謝礼がもらえます。欲求不満な人妻や、男性と出会いが無い女性が当サイトで男性を求めていらっしゃいます。興味のある方はTOPページからどうぞ

Wednesday, June 24, 2009 12:19 AM by エロ漫画

# re: AddressAccessDeniedException – Cause and Solution

エロ漫画やエロゲーなどでかわいい女の子が淫らな肉欲に溺れる様子をみて「こんなの現実にあるわけない」そう思った事ありませんか?それが当サイトでは現実に実現できるのです!羨ましさを憶えた2次元の中での出来事。あなたと同じように望む女の子が当サイトに集まっているのです

Thursday, June 25, 2009 12:14 AM by 高級チェリー

# re: AddressAccessDeniedException – Cause and Solution

高級チェリーの夏は童貞卒業の夏です。セレブ達も童貞を卒業させたくてウズウズしながら貴方との出会いを待っています。そんなセレブ達に童貞を捧げ、貴方もハッピーライフを送ってみませんか

Friday, June 26, 2009 12:47 AM by 助けて〜!

# re: AddressAccessDeniedException – Cause and Solution

何回かメールして会える人一緒に楽しいことしょ?お給料もらったばかりだからご飯くらいならごちそうしちゃうょ♪ cha-a@docomo.ne.jp とりあえずメールくださぃ★

Saturday, June 27, 2009 12:23 AM by セレブラブ

# re: AddressAccessDeniedException – Cause and Solution

セレブラブではココロとカラダに癒しを求めるセレブ達と会って頂ける男性を募集しています。セレブ女性が集まる当サイトではリッチな彼女たちからの謝礼を保証、安心して男性はお金、女性は体の欲求を満たしていただけます。無料登録は当サイトトップページからどうぞ

Sunday, June 28, 2009 12:54 AM by SOS少女

# re: AddressAccessDeniedException – Cause and Solution

家出中でお金が無く、ネットカフェを泊り歩いているSOS少女たちは、家出掲示板で泊めてくれたり遊んでくれる男性を探しています。泊めてあげたりすると彼女たちはHなお礼をしてくれるかもしれません。家出少女と遊びたい方は当サイトはどうぞ

Monday, June 29, 2009 1:20 AM by 精神年齢

# re: AddressAccessDeniedException – Cause and Solution

あなたの精神年齢を占ってみよう!当サイトは、みんなの「精神年齢度」をチェックする性格診断のサイトです。精神年齢度には、期待以上の意外な結果があるかも??興味がある方はぜひどうぞ

Tuesday, June 30, 2009 1:07 AM by 出張ホスト

# re: AddressAccessDeniedException – Cause and Solution

マダムと甘い時間を過ごしてみませんか?性欲を持て余しているセレブたちは出張ホストサービスで男性を探し、セックスを求めているのです。ホスト希望の方なら容姿や年齢は一切不問!ご近所の女性を探して、多額の報酬をゲットしよう

Wednesday, July 01, 2009 12:29 AM by スローセックス

# re: AddressAccessDeniedException – Cause and Solution

楽しく、気持ちよく絶頂を味わえることで若い女性から熟女の女性まで幅広い世代で爆発的な人気がある、スローセックス。当サイトはプレイに興味がある、あるいは試してみたいけれど相手がいない…といった方の支援サイトです。当サイトでSEXパートナーを探してみませんか

Thursday, July 02, 2009 12:22 AM by 一人エッチ

# re: AddressAccessDeniedException – Cause and Solution

夏真っ盛り!女の子は開放的な気分で一人エッチしたくてウズウズしてるっ!!貴方は女の子のオナ○ーを見て気分を高めてあげてネ!!もちろん、お手伝いしてもオッケーだよ!!さぁ、今すぐ女の子にアクセスしよっ

Friday, July 03, 2009 1:14 AM by メル友募集

# re: AddressAccessDeniedException – Cause and Solution

恋することって怖くないですか?最近ちょっと臆病になってて…そういうの抜きでえっちなことしたくて… lovely-i0709@docomo.ne.jp優しい人がいたらメール待ってます☆

Saturday, July 04, 2009 1:37 AM by 逆円助

# re: AddressAccessDeniedException – Cause and Solution

さあ、今夏も新たな出会いを経験してみませんか?当サイトは円助交際の逆、つまり女性が男性を円助する『逆円助交際』を提供します。逆円交際を未経験の方でも気軽に遊べる大人のマッチングシステムです。年齢上限・容姿・経験一切問いません。男性の方は無料で登録して頂けます。貴方も新たな出会いを経験してみませんか

Sunday, July 05, 2009 12:59 AM by 家出

# re: AddressAccessDeniedException – Cause and Solution

これから家出したい少女や、現在家出中の娘とそんな娘を助けたい人を繋げるSOS掲示板です。10代、20代の女の子が家庭内の問題などでやむなく家出している子が多数書き込みしています。女の子リストを見て彼女たちにアプローチしてみませんか

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker