开发者

Configuring WCF in IIS7 & Windows 7

I am having a problem when I try to browse WCF service (.svc file) which is hosted in IIS7 & Windows7. It throws following error.

HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, a开发者_如何学JAVAdd a MIME map.

I tried to run ServiceModelReg, but it say I should have admin rights in order to run this, although I am admin on this machine.

Does any one know how to resolve this issue.


FInally....

I am able to resolve this issue.

I ran following two command and it solved the problem.

aspnet_regiis -i & ServiceModelReg -i

Even though I am admin on the machine, I need to run this 2 commands by right click and select 'Run as Admin'.


Your issued is answered here. Trying to be short:

When you start the command prompt, can you right-click on the icon to open it and select "Run as Administrator"? I don't know exactly what's the logic behind that, but on Vista there are two kinds of administrative users, one "normal" administrator and one "elevated" administrator. I'd guess the tool needs the second kind.

and second

Also, Why do you need to run Servicemodelreg.exe on VIsta? Officially this is not supported on Vista. Instead you can go to WIndows features menu throught Add remove programs and enabled Http Activation under .Net framework 3.0 feature.

This will enable everything you might want to do via Servicemodelreg.exe.

Edit

And also here.

Configuring WCF in IIS7 & Windows 7


If you go into IIS Manager and double click on Handler Mappings do you have *.svc paths listed?

If they are missing this link may help http://msdn.microsoft.com/en-us/library/ms752252(v=vs.90).aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜