CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2003
    Posts
    2

    Question .asmx .aspx extensions not configured

    So far I've failed to create a simple web-service using an .asmx file. This despite the fact that all the sources I can find on the subject claim 'it just works'.

    The problem seems to be that when I look at the IIS configuration it doesn't include the .asmx .aspx etc. extensions. This results in starting Visual Studio whenever I point my browser to an .asmx file. I tried setting the extensions to the asp_isapi.dll, however now I still get a HTTP 500 - Internal Error.

    My guess is that the .NET installation is not proper, but I can't find any clues to how to fix that.

    Any ideas would be greatly appreciated.

    Mark Boon

  2. #2
    Join Date
    Jul 2002
    Location
    India
    Posts
    505
    I have faced this problem and here is the solution.

    Assuming that you have VS.net installed, do the following

    1) Start -> programs -> Microsoft Visual studio.net -> Visual studio.net tools - Visual studio.net command prompt

    (names may not match. look for equivalent)

    2) run-- aspnet_regiis.exe -r

    This takes some time, and adds the handlers for the .aspx and .asmx files

    You will further have to give permission to the aspnet_wp account to access the web folders.

    Check this out for further info



    Troubleshooting an ASP.NET Installation

  3. #3
    Join Date
    Apr 2003
    Posts
    2
    Indeed that seems to solve the problem. What I don't understand is why adding the extensions to IIS by hand didn't work, which is what I did originally. Apparently it does more...

    Somewhere else I found the suggestion of running the following command after the "aspnet_regiis" command:

    regsvr32 C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_isapi.dl

    I didn't try running just the "aspnet_regiis" command by itself, so I don't know if it's necessary to run both to solve the problem.

    Is there a general source (or book) that documents all this 'magic'?

  4. #4
    Join Date
    Jul 2002
    Location
    India
    Posts
    505
    Is there a general source (or book) that documents all this 'magic'?

    None that I know of...

    Usually one runs into such problems, spends a few sleepless nights on it, then turns to sites like this for help. I guess that is where the magic happens...

    Satish

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured