all groups > dotnet web services > january 2006 >
You're in the

dotnet web services

group:

HELP! unable to detect Web reference.



HELP! unable to detect Web reference. beatlebum
1/27/2006 8:46:03 AM
dotnet web services: I am building a web application using VS 2003 in c#. I am able to
successfully add a web reference. However when I attempt to 'use' it, I get
an error message saying:

'The type or namespace name 'xxx' could not be found (are you missing a
using directive or an assembly reference?)

I got the same error when I attempted the Walkthrough: Creating a distrubted
Application. For some reason it does not detect the 'authors1' web reference.

For some preliminary investigations, the problem might have been something
to do with me installing IIS after VS2003. Apparently there is a fix for this
by entering the following at the command line:
"%systemroot%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i.

This did NOT help.......I am at a lost - any help is much appreciated


RE: HELP! unable to detect Web reference. Dale
1/28/2006 7:13:27 AM
Can you provide a little code sample of what you're doing?

From your description, it sounds like my series on returning custom classes
from a web service is what you need.

http://www.dalepreston.com/Blog/2005/02/returning-custom-classes-from-web.html

HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA


[quoted text, click to view]
AddThis Social Bookmark Button