Webservice Error Unable to find System.Web

C

commanderjason

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.
 
A

Alvin Bruney [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top