Could not create type 'xxx' (trying to add web reference to project)



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

.



Relevant Pages

  • Re: 0xC00D11B : Cannot play this file
    ... to read the error text you would see that reinstall could not fix them all, ... was posted IN EVERY ONE OF MY POSTS! ... Replies are to help benefit others in helping ... >>> download solved the problem where uninstalling and resinstalling via ...
    (microsoft.public.windowsmedia.player)
  • Re: 3rd Time Posted But No solution Until NOW
    ... community has a fix yet. ... there are few posts found in Google Groups regarding ... If the problem is critical - and you don't want a better Bayesian filter ... Have you yet tried rebooting in clean ...
    (microsoft.public.outlook.general)
  • Re: is anyone here going to help me??? does anyone here know anything at all???
    ... : the simple fix. ... replied to me even understands the problem, as evidenced by their posts. ... IESOUS CHRISTOS THEOU YIOS SOTER ... God told me to smite Al Qaeda, so I smote them. ...
    (rec.gambling.poker)
  • Re: The global template, Normal. dot...
    ... Is that your fix to my problem? ... thread rather than continually createing new posts. ... Milly Staples [MVP - Outlook] ... | drive and reinstalled Office 2003. ...
    (microsoft.public.office.misc)
  • Re: is anyone here going to help me??? does anyone here know anything at all???
    ... On Sep 6 2006 9:32 PM, William Coleman wrote: ... : the simple fix. ... very impressed and will defer to you as an HTML ubergeek in the future. ... replied to me even understands the problem, as evidenced by their posts. ...
    (rec.gambling.poker)

Quantcast