Jan 23, 2010

Integrated Windows authentication Problem in ASP.Net

VS 2008 နဲ႔ web application တစ္ခု ကုိ IIS မွာ host ျပီးေတာ့ File system ကုိ (HTTP) နဲ႔ ေဆာက္ပါတယ္။ Hello world ေလးပါပဲ။ ေရးျပီးေတာ့ Run တဲ့အခါမွာ ေအာက္ကျပထားတဲ့ error တက္ပါေတာ့တယ္။
Unable to start debugging on the web server. Debugging failed because integrated Windows authentication is not enabled. Please see Help for assistance. ဆုိျပီး ေဖာ္ျပပါတယ္။ ဒီ error က IIS မွာ host တဲ့ web page ေတြပဲ ျဖစ္တာပါ။ MSVS 2008 နဲ႔ ရုိးရိုးပဲ ေရးတဲ့ (projects folder အတြင္းမွာပဲ host တဲ့) web page ေတြဆုိ မလုိပါဘူး။ အဲဒီအတြက္ Integrated Windows authentication ကုိ ON ေပးရပါမယ္။ IIS ကုိသြားျပီး လုိအပ္တဲ့ aspx file ကုိ right click ပါ။ ျပီးရင္ေအာက္ကအဆင့္အတုိင္းလုပ္သြားရင္ ရပါျပီ။
Directory Security က Edit ကုိ click ပါ။

ေအာက္ဆံုးက Integrated Window Authentication ကုိ checked လုပ္ျပီး OK ရင္ရပါျပီ။