Click to See Complete Forum and Search --> : .asmx .aspx extensions not configured


mboon
April 8th, 2003, 04:15 AM
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

Satishpp
April 15th, 2003, 03:42 PM
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 (http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/server/aacontroubleshootingaspnetinstall.asp)

mboon
April 16th, 2003, 02:44 AM
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'?

Satishpp
April 16th, 2003, 12:45 PM
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...:D

Satish