Andrew Stopford's Weblog

poobah

Sponsors

News

Articles

Family

Old Blogs

Vista, IIS7 and WCF svc files

I recently tried my WCF service on Vista\IIS7. I noted that .net sdk is installed by default but IIS is not, when you install IIS you need to setup ASP.NET with aspnet_regiis. What struck me about this is that you will always need to do this, seems a little crazy but maybe thats just me.

Next I tried the svc file and it complained about MIME type, I note Sam's post on svc issues with iis7 so I mapped it as a application folder and it still complained. I then set the MIME type as application\soap-xml. This time around it then tries to serve me the file rather than execute it, now I am really stuck hunting around the IIS7 interface trying to figure this out. Any advice or tips welcome, one step away from an fdisk.

Update. When you install IIS, make sure you select the asp.net feature in application development features - asp.net (you can do this after installing IIS if your forget). I recommend using this over aspnet_regiis to install asp.net. When thats done you will see a lot of compile errors,  you need now manually create the folder on

\Windows\ServiceProfiles\NetworkService\AppData\Local\temp\

Note that AppData is a system folder so if you can't see it then alter your folder view to see it.

With this done you don't need to add the MIME type and if you have already done this then remove it.

Comments

Alan said:

Just bought a vista (business) computer. Turned on IIS and had no idea why my ASP websites were not working.  Thanks for your post.  

I would have never thought that ASPX and ASP would not be on by default and the Microsoft help tells you to go in and setup MIME types, which is useless.

Thanks again for the post.

# February 18, 2007 1:37 PM