February 26, 2007

Need Help: ASP.NET Error

Update: Problem solved. See below.

I'm having a major problem with a web service that I've moved into a development environment. I've torn my hair out today trying to find a solution without success.

Problem Description:
ASP.NET 1.1 and 2.0 installed on server, but only 1.1 in use in the application pool and the site root is set to 1.1. Development environment is Visual Studio .NET 2003.

The site itself works, but the web services contained within the site give parsor errors.
Parser Error Message: The directive 'WebService' is unknown.
The web services work locally.

I've done the standard searches with no success...any ideas?

Update: Turns out a third-party application nuked the .config entry for the web service handler.

If you are getting this, add the following to the <httphandlers> section of your web.config file:

<add verb="*" path="*.asmx" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false">


Tom said...

Tried "reinstalling" ASP.NET 1.1?

aspnet_regiis -i

Michael Russell said...

Reinstalling ASP.NET 1.1 using -i, and disabling the .NET 2.0 ISAPI filter have no effect.

Sarkie said...

Thats what I said.