wcf hosting in iis

wcf hosting in iis

Old forum URL: forums.lhotka.net/forums/t/5340.aspx


pillesoft posted on Thursday, September 04, 2008

Dear All,

i have problem configure ProjectTrackercs sample through iis.
the ptweb application working fine, when i run it from vs2005, the system creates asp.net dev. server to the wcfhost.
this is what i've done:
created virtual directory in iis pointing to the WcfHost directory under ProjectTrackercs\www folder
there must be some problem with this, because when i try to open WcfPortal.svc file i get only the contents (<% @ServiceHost Service="Csla.Server.Hosts.WcfPortal" %>) in the browser, not the same content which i have when i open this file from the asp.net dev. server.

and of course when i try to login from ptweb application it says

The remote server returned an error: (405) Method Not Allowed.


thank you for your help.
Ivan

RockfordLhotka replied on Thursday, September 04, 2008

If your browser is just showing the content of the svc file, then ASP.NET 3.0+ isn't installed correctly on your machine. Clearly the MIME types haven't been properly added to IIS.

You should either do a repair of your VS/.NET install, or run the command line utility to re-install ASP.NET into IIS. That second option is where I'd start - though I never remember the name of that utility app (asp_iisinstall.exe or something).

pillesoft replied on Thursday, September 04, 2008

thank you Rocky,

your proposal was working. removed .net3 sp1, and .net2x
installed them again
execute aspnet_regiis -i
and ptweb working when wcfhost is hosted in iis

Ivan

Copyright (c) Marimer LLC