Changing File Associations in IIS

Discussion in 'ASP.NET / ASP.NET Core' started by Takeshi Eto, Jan 10, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

  2. Hello,

    The version of theCommunity Starter KitI am using (1.1) requires that I associate .JPEG, .JPG, and .GIF files with the same DLL that is associated withASPX files in the .NET 1.1 framework. It does not appear that this option is availablethrough your web based tools. Is there another way to accomplish this, or did I miss something on the web site?

    Thanks,

    Jim
     
  3. Hello,

    Does this involve editing the application extension mapping? Thus if I requested, would all web files be routed via the aspnet_isapi.dll rather than isapi (as per http://www.codeproject.com/aspnet/urlrewriter.aspwhere .* is added as a file extension, ie. everything).
    I'm looking at ways to offer search engines an html file name, an url rewrite would call an aspx page to deliver the database content as well as RSS feeds.
    Anyone got any views on this?

    Brian
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    yes. it is possible to route different extension to the ASP.NET ISAPI.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Bruce,


    I've since requested to have all my files routed via aspnet_isapi.dll but now when I visit the website without specifiying a web page I get


    Server Error in '/' Application.


    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

    Requested Url: /


    I have to add default.aspx to cure this problem

    I have no such problem on my localhost test machine, and I haven't even changed the default documents on it!

    Why is this happening?

    regards

    Brian
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    Hmmm.. i am not sure. I think the problem is with the default document settings, try adjust it in the control panel.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  7. Ive been through that, no such luck. I did test the site before I made changes to the web.config etc, and it didnt return the default page then, so it doesnt appear to be anything I've changed.
    If .* has given control of all pages to aspnet_isapi, is there anyway to tell this dll what the default pages are? I would have thought the default pages in the control panel are related to the iis isapi. I'm not an IIS guru so I don't know!

    regards
    Brian
     
  8. It may be worth pointing out that I can no longer use FrontPage 2003 to access this website - it displays some weird msgbox

    The Web server at http://blahblahblahdoes not appear to have Windows SharePoint Services installed.

    I dont know if this has any significance.

    I dont use FrontPage for developing, but its ideal for FTPing individual aspx files, andreplacement dlls to the bin folder.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page