Solution of ashx in IIS7 404

Source: Internet
Author: User

Iis7 is moved to this location, and a name attribute is added:

 

<Handlers>
<Remove name = "webservicehandlerfactory-integrated"/>
<Remove name = "scripthandlerfactory"/>
<Remove name = "scripthandlerfactoryapps tutorial ervices"/>
<Remove name = "scriptresource"/>
<Add name = "text" verb = "*" path = "text. ashx" type = "webapplication1.texthandler, webapplication1"/>
<Add name = "file" verb = "*" path = "file. ashx" type = "webapplication1.filehandler, webapplication1"/>
<Add name = "scripthandlerfactory" verb = "*" path = "*. asmx" precondition = "integratedmode"
Type = "system. web. script. services. scripthandlerfactory, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35"/>
<Add name = "scripthandlerfactoryappservices" verb = "*" path = "* _ appservice. axd" precondition = "integratedmode"
Type = "system. web. script. services. scripthandlerfactory, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35"/>
<Add name = "scriptresource" precondition = "integratedmode" verb = "get, head" path = "scriptresource. axd "type =" system. web. handlers. scriptresourcehandler, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/>
</Handlers>

 

You can see that the bold part is added by yourself. If the VM fails to find a situation, it is estimated that the iis version is incorrect. Just change to another one. However, I found that both versions of iis are compatible with each other. This is good news.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.