ASP.NET MVC and IIS 5

前端 未结 5 1539
别那么骄傲
别那么骄傲 2020-11-29 06:47

What is the best way to get hosting of an ASP.NET MVC application to work on IIS 5 (6 or 7). When I tried to publish my ASP.NET MVC application, all I seemed to get is 404 e

5条回答
  •  没有蜡笔的小新
    2020-11-29 07:10

    Run: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll -i

    This will reset IIS registry settings for aspnet user.

    Create the virtual directory: 1. Right click on the directory you want to convert

    • select Properties
      1. under Directory, select Create.
      2. under Configuration, select Add.
      3. for Executable insert:

    C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll

    for Extension insert: .*

    • uncheck “Check that file exists”

    • under Documents add entry point file, ie: Default.htm, index.htm, Global.asax

    • under Directory Settings

      1. select Edit...
      2. select Anonymous access
      3. uncheck Allow IIS to control password
      4. uncheck Basic authentication
      5. uncheck Integrated Windows authentication
      6. under ASP.NET, make sure version = v4.0.30319

    TAKE NOTE of User Name ie: IUSR_AVSJ82S

    Set sharing permission of physical directory:

    • In windows explorer, go to the physical directory that was converted to a virtual directory. Right click the directory name
    • select properties
    • under security tab, select Add
    • enter the IIS User name ie: IUSR_AVSJ82S click check name.
    • click OK
    • set permissions to Read and Write.

提交回复
热议问题