Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2008

Tip: Looking for answers? Try searching our database.

why does my webservice web reference not work in aspx project?!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eskimo - 06 Jan 2005 15:45 GMT
Hi,

I have a webservice on my local development box.

I add a web reference in a web application to it.
My reference usually comes up as "localhost" but that doesn't work when I
try localhost.<webservice> ws = new ... to use it...

What would you recommend?

Signature

tym, Eskimo

R. Thomas, aka Xtreme.Net - 07 Jan 2005 04:40 GMT
Change the name localhost to something more meaningfull and then try with
that new name...
Hths...
P.S : If this post helped you, pls click Yes on top of this post. Thanks
R. Thomas

> Hi,
>
[quoted text clipped - 5 lines]
>
> What would you recommend?
Eskimo - 07 Jan 2005 14:57 GMT
I already tried that.

It was a namespace issue.  
Which points out the IDE's alphabetic dependency in solution explorer
causing an issue upon compile.  

Yes, I looked at project build order.  No, it did not help either.

> Change the name localhost to something more meaningfull and then try with
> that new name...
[quoted text clipped - 11 lines]
> >
> > What would you recommend?
R. Thomas, aka Xtreme.Net - 07 Jan 2005 15:56 GMT
So whats your status now?
R. Thomas

> I already tried that.
>
[quoted text clipped - 19 lines]
> > >
> > > What would you recommend?
Eskimo - 07 Jan 2005 16:53 GMT
It was a namespace issue.  I fixed it.

> So whats your status now?
> R. Thomas
[quoted text clipped - 22 lines]
> > > >
> > > > What would you recommend?
R. Thomas, aka Xtreme.Net - 08 Jan 2005 01:35 GMT
oh good...
can u pls close close this tread by clicking 'Yes' on top and writing down
you solution so that others can get help too...
Thanks..
R. Thomas

> It was a namespace issue.  I fixed it.
>
[quoted text clipped - 24 lines]
> > > > >
> > > > > What would you recommend?
Eskimo - 15 Feb 2005 22:01 GMT
TODO: namespaces should reflect the context you're in :)

i.e.

ESKIMO.PIE.WEBPAGES
ESKIMO.PIE.DAL
ESKIMO.PIE.BLL
ESKIMO.PIE.UIL

versus

ESKIMO.PIE.CHOCOLATE <database namespace> in dll
ESKIMO.PIE.CHOCOLATE <webpage namespace> in web service project

> oh good...
> can u pls close close this tread by clicking 'Yes' on top and writing down
[quoted text clipped - 30 lines]
> > > > > >
> > > > > > What would you recommend?
william - 03 Mar 2008 18:17 GMT
Hi,

I have same issue as you had.  I'm not quite understand your solution. Could
you give me more in details?
Here is my senario:
1. my web service was developed in VS2005 in C# as web site,
[WebService(Namespace = "http://www.CompanyName.com/")]
public class Login : System.Web.Services.WebService {
...}
2. I deployed it on my local XP machine as virtual directory "TestWebService".
3. I created a test web application by File>New>Web Site>ASP.NET Web Site,
name it TestWebSite.
4. I added web reference from my web test application which is in VS2005 C#,
renamed the reference name to "TestLoginServ".
5. Added a button on the Default.aspx, and in button1_click event, tried to
use TestLoginServ.Login class, failed.

What should I do for namespace?

Thanks.
William

> TODO: namespaces should reflect the context you're in :)
>
[quoted text clipped - 44 lines]
> > > > > > >
> > > > > > > What would you recommend?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.