3

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, add 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.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
shailesh
  • 171
  • 1
  • 1
  • 7

3 Answers3

14

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'.

shailesh
  • 171
  • 1
  • 1
  • 7
  • 1
    @VeeKayBee you probably just need to run these from the right directory, depending on your .net version. ie run from C:\Windows\Microsoft.NET\Framework\v4.0.30319 – csauve Mar 09 '13 at 21:22
3

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. alt text

Restuta
  • 5,855
  • 33
  • 44
  • Restuta, I am not running this no VISTA, I am running this on Windows 7 Professional. Also I tried to run this by right clicking and 'Run As Admin', but no luck with that also – shailesh Dec 14 '10 at 15:28
  • 1
    This is the same for Windows 7, have you tried shown solution? – Restuta Dec 14 '10 at 23:05
  • I tried your suggession, after this change I am getting following error. HTTP 400 Bad Request - The webpage cannot be found Any idea what to do next? – shailesh Dec 15 '10 at 15:01
1

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

Drew Goodwin
  • 173
  • 3