[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

WSE namespace error, assembly reference missing

John Beucher

1/12/2003 12:25:00 PM

Hey,

Simple file, simple problem:

[ERROR LINE] using Microsoft.Web.Services;
using Microsoft.Web.Services.Security;

namespace WebServices.WSE
{
public class WSEService : WebService
{
[WebMethod]
public string GetUsername()
{
}
}
}

I get an error: CS0234: The type or namespace name 'Web'
does not exist in the class or namespace 'Microsoft' (are
you missing an assembly reference?)

Installed WSE 1.0, machine.config seems ok, have
web.config with appropriate add element. Using Framework
1.0.

I'm using .asmx implementation, haven't tried with VS
yet..

Anyone?
2 Answers

Mike Moser

1/13/2003 1:35:00 AM

0

Well, first off, the Web.Services namespace is not in Microsoft, it is in
System. The full namespace is System.Web.Services. Also, when you do your
full class, make sure that you inherit from System.Web.Service.WebService. I
have heard that classes that just inherit WebService (when you have a "using
System.Web.Services" line) has some issues associated with it.

HTH,
Bill Priess


"John Beucher" <john@beucher.com> wrote in message
news:424001c2ba2d$4c396640$8af82ecf@TK2MSFTNGXA03...
> Hey,
>
> Simple file, simple problem:
>
> [ERROR LINE] using Microsoft.Web.Services;
> using Microsoft.Web.Services.Security;
>
> namespace WebServices.WSE
> {
> public class WSEService : WebService
> {
> [WebMethod]
> public string GetUsername()
> {
> }
> }
> }
>
> I get an error: CS0234: The type or namespace name 'Web'
> does not exist in the class or namespace 'Microsoft' (are
> you missing an assembly reference?)
>
> Installed WSE 1.0, machine.config seems ok, have
> web.config with appropriate add element. Using Framework
> 1.0.
>
> I'm using .asmx implementation, haven't tried with VS
> yet..
>
> Anyone?


Sean Campbell

1/13/2003 5:01:00 AM

0

John since your trying to work with WSE and in WSE there is a Web.Services
namespace under Microsoft as in Microsoft.Web.Services the most obvious
thing that it could be is that you no longer have a reference to
Microsoft.Web.Services in your project.

Have you verified you still have a reference in your project for
Microsoft.Web.Services?

Sean Campbell
3 Leaf
Early and Adopter Web Log
http://radio.weblogs.co...

"Bill Priess" <no.spam@nospam.com> wrote in message
news:eqeqGxquCHA.2632@TK2MSFTNGP09...
> Well, first off, the Web.Services namespace is not in Microsoft, it is in
> System. The full namespace is System.Web.Services. Also, when you do your
> full class, make sure that you inherit from System.Web.Service.WebService.
I
> have heard that classes that just inherit WebService (when you have a
"using
> System.Web.Services" line) has some issues associated with it.
>
> HTH,
> Bill Priess
>
>
> "John Beucher" <john@beucher.com> wrote in message
> news:424001c2ba2d$4c396640$8af82ecf@TK2MSFTNGXA03...
> > Hey,
> >
> > Simple file, simple problem:
> >
> > [ERROR LINE] using Microsoft.Web.Services;
> > using Microsoft.Web.Services.Security;
> >
> > namespace WebServices.WSE
> > {
> > public class WSEService : WebService
> > {
> > [WebMethod]
> > public string GetUsername()
> > {
> > }
> > }
> > }
> >
> > I get an error: CS0234: The type or namespace name 'Web'
> > does not exist in the class or namespace 'Microsoft' (are
> > you missing an assembly reference?)
> >
> > Installed WSE 1.0, machine.config seems ok, have
> > web.config with appropriate add element. Using Framework
> > 1.0.
> >
> > I'm using .asmx implementation, haven't tried with VS
> > yet..
> >
> > Anyone?
>
>