Re: Webservice Error Unable to find System.Web

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Couple things, you need to match the version numbers and public token
against the dll you think is the correct one. If that pans out, you'll need
to make sure that the url that the web services is called from contains that
dll in the application folder.
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc

<commanderjason@xxxxxxxxx> wrote in message
news:1165613964.746467.261180@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a webservice written in .net 2.0

I am able to view the web service info and wsdl without issue.

When I execute one of the methods directly from the webservice page
generated by .net I get an error.

System.InvalidOperationException: Unable to generate a temporary class
(result=1).
error CS0012: The type 'System.Web.Security.MembershipUser' is defined
in an assembly that is not referenced. You must add a reference to
assembly 'System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'.

The project does have a reference to the System.Web assembly.
Everything compiles fine.

I have tried rebuilding the app, repairing the .net framework.
Everything I can think of.

Any help is appreciated.



.



Relevant Pages

  • Re: Newbie Q about base classes and where to put them
    ... I've set up a DLL and placed it elsewhere on my file-system (ie NOT ... under my web services directory) and added a Reference to it. ... I'm going to be creating about 200 web services that will share some ... But I want to use the same base class in my other web ...
    (microsoft.public.dotnet.framework.aspnet)
  • VB FAQs (Interview Questions) lot lot
    ... Consider two objects, A and B. A holds a reference to B, ... Why do so many example programs not use the DLL name ... Private Declare Function SendMessage Lib "user32" ... Private Const BUFFER_LENGTH As Long = 255 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Sharing Code
    ... What I found would happen is that when the device dll was built visual ... In the desktop project when you add a reference to the dll, ... > projects, one smart device and one desktop, but they're in the same ... > The 2 form projects have references to this class library projects. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Calling managed C++ function from C# program
    ... The type or namespace name 'HIDBootLoaderFORM' could not be ... found (are you missing a using directive or an assembly reference?) ... I was not using a DLL. ... C# assemblies can only reference managed assemblies. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Calling managed C++ function from C# program
    ... The type or namespace name 'HIDBootLoaderFORM' could not be ... found (are you missing a using directive or an assembly reference?) ... I was not using a DLL. ... C# assemblies can only reference managed assemblies. ...
    (microsoft.public.dotnet.languages.csharp)