MSDN > 論壇首頁 > Windows Communication Foundation > Vista Beta 2 IIS7 setup
發問發問
 

已答覆Vista Beta 2 IIS7 setup

  • Wednesday, 31 May, 2006 15:15freeflyr 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    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.
      1. From the Web Management tool, open a connection to the website.
      2. Double click the MIME Types Management feature.
      3. Verify that the MIME type is in the list and is not set to Removed.
      4. 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.
      5. 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.
      NOTE: Make sure that this MIME mapping is needed for your Web server before adding it to the list.
    • Set up a new Failed Request Trace rule for this HTTP status code.
      1. Use the IIS Web Management tool to open a connection to the Web server where the problem is occurring.
      2. In the tree view, navigate to the Web site, and then click to select it.
      3. In the Tasks pane, click Failed Request Tracing.
      4. Check Enable Logging for this Site, specify a logging folder or use the default log folder, and then click OK
      5. Open the Failed Request Tracing Rules feature and click New Rule in the Tasks pane.
      6. Specify the content type to monitor and then click Next.
      7. Check the Status Codes checkbox, type 404.3 in the Edit box, and then click Next.
      8. 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.
      9. 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!!


解答

  • Monday, 5 June, 2006 16:19Ed Pinto - MSFTMSFT使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    I'd suggest running "c:\windows\WinFx\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -i.  This should configure WAS/IIS appropriately for you.

所有回覆

  • Monday, 5 June, 2006 9:43freeflyr 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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?
  • Monday, 5 June, 2006 16:19Ed Pinto - MSFTMSFT使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    I'd suggest running "c:\windows\WinFx\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -i.  This should configure WAS/IIS appropriately for you.
  • Wednesday, 7 June, 2006 10:05freeflyr 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    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 Handlers

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

  • Tuesday, 13 June, 2006 22:07sambar 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    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

  • Wednesday, 14 June, 2006 1:29kawano1h 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.
  • Tuesday, 20 June, 2006 4:21Neurothustra 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.
  • Wednesday, 21 June, 2006 18:44Gummiman 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    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.

  • Friday, 30 June, 2006 15:48O.oTimTim 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    Me too!

    I can only browse PHP frome my IIS
    No HTM/HTML

    It was still OK last week even I've already installed PHP5

    How to solve this problem?

  • Saturday, 1 July, 2006 9:59Liberato78 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    I have tha same problem "error 404.3" trying to open .cfm files (Cold Fusion file), mime estension problem.

  • Monday, 3 July, 2006 1:43DanielHillier 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    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

  • Thursday, 3 August, 2006 20:58Larry Aultman 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    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