HighTechTalks DotNet Forums  

unable to access web services on new server

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss unable to access web services on new server in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mike
 
Posts: n/a

Default unable to access web services on new server - 10-09-2007 , 01:43 PM






I moved my web services to a new web server and now I can't access the web services through my web app. I am able to access them using IE: (http://newservername:110/webService/GetUsers.asmx) that works, but when I try to run my app that is using this web service it fails.

I looked at the configuration under IIS and it matches the same configuration I took the web service off of (asp.net 2.0, security, etc)

What could be causing my app not being able to access the web service on the new server?




Reply With Quote
  #2  
Old   
Norman Yuan
 
Posts: n/a

Default Re: unable to access web services on new server - 10-09-2007 , 02:07 PM






Have you changed URL of the web service in your app's code?

When you first set reference to the web Services, the service' url is
pointing to the server where the WS is. Now you moved the WS to other
server, you supposed to change the URL in your code:

MyWebService sv=new MyWebService();
sv.Url="http://newServer/..../GetUsers.asmx";

Of course, you can reset the web services reference in your project and
rre-build it.



"Mike" <Mike (AT) community (DOT) nospam.com> wrote

I moved my web services to a new web server and now I can't access the web
services through my web app. I am able to access them using IE:
(http://newservername:110/webService/GetUsers.asmx) that works, but when I
try to run my app that is using this web service it fails.

I looked at the configuration under IIS and it matches the same
configuration I took the web service off of (asp.net 2.0, security, etc)

What could be causing my app not being able to access the web service on the
new server?




Reply With Quote
  #3  
Old   
Mike
 
Posts: n/a

Default Re: unable to access web services on new server - 10-09-2007 , 02:12 PM



yes, I changed all of the references in the web.config file.




"Norman Yuan" <NoAddress (AT) NoEmail (DOT) fake> wrote

Quote:
Have you changed URL of the web service in your app's code?

When you first set reference to the web Services, the service' url is
pointing to the server where the WS is. Now you moved the WS to other
server, you supposed to change the URL in your code:

MyWebService sv=new MyWebService();
sv.Url="http://newServer/..../GetUsers.asmx";

Of course, you can reset the web services reference in your project and
rre-build it.



"Mike" <Mike (AT) community (DOT) nospam.com> wrote in message
news:u4wNpvpCIHA.3400 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
I moved my web services to a new web server and now I can't access the web
services through my web app. I am able to access them using IE:
(http://newservername:110/webService/GetUsers.asmx) that works, but when I
try to run my app that is using this web service it fails.

I looked at the configuration under IIS and it matches the same
configuration I took the web service off of (asp.net 2.0, security, etc)

What could be causing my app not being able to access the web service on
the new server?






Reply With Quote
  #4  
Old   
Mike
 
Posts: n/a

Default Re: unable to access web services on new server - 10-09-2007 , 02:13 PM



I found it. The id that is being used got locked out. Once I 'unlocked' the ID I was then able to access the web services via my web app
"Mike" <Mike (AT) community (DOT) nospam.com> wrote

I moved my web services to a new web server and now I can't access the web services through my web app. I am able to access them using IE: (http://newservername:110/webService/GetUsers.asmx) that works, but when I try to run my app that is using this web service it fails.

I looked at the configuration under IIS and it matches the same configuration I took the web service off of (asp.net 2.0, security, etc)

What could be causing my app not being able to access the web service on the new server?




Reply With Quote
  #5  
Old   
George Ter-Saakov
 
Posts: n/a

Default Re: unable to access web services on new server - 10-09-2007 , 02:58 PM



Most likely security....
Or your server can not resolver the name to ip address

George.
"Mike" <Mike (AT) community (DOT) nospam.com> wrote

I moved my web services to a new web server and now I can't access the web services through my web app. I am able to access them using IE: (http://newservername:110/webService/GetUsers.asmx) that works, but when I try to run my app that is using this web service it fails.

I looked at the configuration under IIS and it matches the same configuration I took the web service off of (asp.net 2.0, security, etc)

What could be causing my app not being able to access the web service on the new server?




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.