Vista Beta 2 IIS7 setup
I've just upgraded to the new Vista Beta 2 build 5384 and am unable to get any of the WCF samples provided with the SDK to run. I'm pretty sure it's just an IIS7 setup issue.
From reading around i've seen a few sites recommending that i add a MIME type mapping for the .svc file... but i cant' work out how to do that. This (http://www.iis.net/default.aspx?tabid=2&subtabid=25&i=1032) suggests that there should be a MIME Types item in the list of things i can configure for the default web site in inetmgr ... but it's not there??
Here's what i have done so far.
Installed...
1. Vista
2. IIS - added the windows feature
3. Windows SDK
4. WCF (en_windows_communication_foundation_beta2_x86)
5. Visual Studio 2005
6. vsextwfx (The Orcas stuff)I found out afterwards that you need to check the box for ASP.NET under development features when adding IIS to windows so that it does basically the same thing as running aspnet_regiis -i would do. So i can run html pages, aspx pages from my localhost now no probs. When i go to the service.svc file however i get this error:
Server Error in 'Default Web Site/servicemodelsamples' Application.
HTTP Error 404.3 - Not Found
Description: The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and therefore is not allowed.
Error Code: 0x80070032
Notification: ExecuteRequestHandler
Module: StaticFileModule
Requested URL: http://localhost:80/servicemodelsamples/service.svc
Physical Path: C:\inetpub\wwwroot\servicemodelsamples\service.svc
Logon User: Anonymous
Logon Method: Anonymous
Handler: StaticFile
Causes:
- The appropriate MIME map is not enabled for the web site or application
Solution:
- Verify that the MIME map is enabled or add the MIME map for the site.
- From the Web Management tool, open a connection to the website.
- Double click the MIME Types Management feature.
- Verify that the MIME type is in the list and is not set to Removed.
- If the MIME type is in the list and set to Removed, highlight the MIME Type in the list, and in the MIME Types Tasks, click Restore.
- If the MIME Type is not in the list, complete the MIME Type information in the Tasks pane under New MIME Type, and then click Add.
- Set up a new Failed Request Trace rule for this HTTP status code.
- Use the IIS Web Management tool to open a connection to the Web server where the problem is occurring.
- In the tree view, navigate to the Web site, and then click to select it.
- In the Tasks pane, click Failed Request Tracing.
- Check Enable Logging for this Site, specify a logging folder or use the default log folder, and then click OK
- Open the Failed Request Tracing Rules feature and click New Rule in the Tasks pane.
- Specify the content type to monitor and then click Next.
- Check the Status Codes checkbox, type 404.3 in the Edit box, and then click Next.
- In the Providers area, make sure that the WWW Server is checked and highlighted, and that in Provider Properties, the Verbosity level is set to Verbose.
- Click FinishRequest the page that generated the 404.3 error and then look at the tracing file that was created for the request. This file is located in the logging folder you specified in Step 4.
Anybody know what's wrong and how to fix it... thanks in advance!!
解答
- I'd suggest running "c:\windows\WinFx\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -i. This should configure WAS/IIS appropriately for you.
所有回覆
- Anybody?? I'm still having this issue, is anyone else seeing the same thing. Or even better does anyone know how to fix it?
MSFT? - I'd suggest running "c:\windows\WinFx\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -i. This should configure WAS/IIS appropriately for you.
Hi Ed,
Thanks for the response, it seems to be working fine now!! WOO HOOO!!
I just wanted to post the following incase anyone else runs into this same problem. The first time i ran the command the output was as follows (looks like it was already partially installed perhaps?? i really don't know but it failed anyway). So after getting the following message the service.svc page still have the same error message. Basically I just had to run servicemodelreg -ua (uninstall all versions) then run servicemodelreg -i again at this time it worked like a charm.
C:\Windows\WinFX\v3.0\Windows Communication Foundation>servicemodelreg -i
Microsoft(R) Windows Communication Foundation Installation Utility
[Microsoft® .NET Framework, Version 3.0.3906.22]
Copyright (c) Microsoft Corporation. All rights reserved.
Installing: Machine.config Section Groups and HandlersInstalling: Xws System.Web Build Provider
Installing: Xws System.Web Compilation Assemblies
Installing: Xws Http Handlers
Installing: Xws Http Modules
Installing: Xws ListenerAdapter node for protocol net.tcp
Installing: Xws Protocol node for protocol net.tcp
Installing: Xws TransportConfiguration node for protocol net.tcp
Error: Unable to cast object of type 'System.ServiceModel.Configuration.ServiceH
ostingEnvironmentSection' to type 'System.ServiceModel.Configuration.ServiceHost
ingEnvironmentSection'.Hey!
I'm having the exact same problem, and have been performing all above mentioned.
The page you requested has a file name extension that is not recognized, and therefore is not allowed.
The handler is still StaticFile, for this page, and the PHP-handler seems to be overlooked..
Thanks for your time!
Regards from Sweden.
Erik
- Hi, This is kawano1h again.
Actually, I did find the file c:\windows\WinFx\v3.0\Windows Communication Foundation\ServiceModelReg.exe
And I run the file but still I get the same error.
The only thing I have't installed from freeflyr's list is
WCF (en_windows_communication_foundation_beta2_x86)
which I do not know where I can download it from.
I can run aspx files fine but still having trouble with svc files.
Please help.
Thanks. - The CLI only installs the IIS features that are already accessible by default. What is needed here is very simple: how is MIME configured in IIS7 when it is not visible (or even present) within the IIS7 API? Any tutorial or instructions that do not reference the MIME configuration is not relevant in this thread.
Has a solution to this problem been found yet?
I too get the "The appropriate MIME map is not enabled for the web site or application" error. I tried the servicemodelreg -i but could not run from the account vista created durring setup. I had to enable and config the policy to allow Administrator account to logon. Logged in as the Administrator I could run the servicemodelreg but that did not resolve the problem.
I found the following page on adding a mime type (http://technet2.microsoft.com/WindowsServer/f/?en/Library/17bda1f4-8a0d-440f-986a-5aaa9d40b74c1033.mspx) But that appears to be pre-beta2, since common http features is now just http features and there are no options in IIS 7 under vista beta 2 for mime types.
I aslo seem to have a prob with visual web dev 2005 express. Opening a website uder local IIS gives an error "you must be a member of the administrators group on the local computer to access the IIS metabase. Therfore, you cannot create or open a local IIS web site. ect" even logged in as the Administrator. Creating a new website with the location set to Http the error is "The data area passed to a system call is too small". I'm guessing this too is related to IIS.
Me too!
I can only browse PHP frome my IIS
No HTM/HTMLIt was still OK last week even I've already installed PHP5
How to solve this problem?
I have tha same problem "error 404.3" trying to open .cfm files (Cold Fusion file), mime estension problem.
Just because you are log in as a administrator does mean everything runs in Admin mode. You need to make sure you run the programme with administrative privileges.
I'm still having difficulties running ASP pages on IIS7?
Daniel
I could not get Vista Beta 2 IIS 7 to recognize the .SVC file either. I have been hunting for two days for a solution. My thanks to Ed who posted the answer:
C:\Windows\WinFX\v3.0\Windows Communication Foundation\servicemodelreg.exe -i
The problem is missleading in that it really has nothing to do with a MIME type, rather IIS 7 needs to launch the proper handler for the file type (.svc). I use Visual Studio 2005, and I created a WinFX service using the defaults but it would not work - now it does!
I hope Microsoft will get this into the final build so that Visual Studio can create web services in WCF without so much hassle.
Larry Aultman, Tallahassee FL

