Okay, I've seen about 4 years' worth of posts about this with no
viable solutions. I've spent 9 hours today trying to fix this. It
works BEAUTIFULLY on my local IIS installation, but when I publish to
my web host and try to add a web reference I get the following:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'BaseTaskWS'.
Source Error:
Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/
BaseTaskWS.cs" Class="BaseTaskWS" %>
Source File: /Services/BaseTask/BaseTaskWS.asmx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.210
I have created plenty of web services. I have had two hosted by my
web host for months. They worked fine. Now I've published this and
tested it and I get that error. Also, my original two give me the
exact same error. I can see that the overall site is set to .NET 2.0,
but I can't see what the virtual directories are set to. The tech
support guy says that it defaults to the same as the overall site, but
he hasn't verified that it really is the same. Either this is the
worst initiation joke ever, or no one really knows how to fix it or
ever posts the true fix. Could some MS MVP or other guru please help
me out with this? I promise I'll post the answer for everyone else
that stumbles into this. I've tried just about everything I've seen
in all the posts in this forum and as many others as I could find in a
day and nothing fixes it.
I have a really big magnet, and I'm not afraid to use it! Don't make
me go there...
Thanks,
JT