|
|
ASP.NET C#
Started by krispy at 04-13-2008 9:12 AM. Topic has 2 replies.
 
 
|
|
Sort Posts:
|
|
|
|
04-13-2008, 9:12 AM
|
krispy
Joined on 04-14-2008
Posts 2
|
Cannot reference web services that are hosted on WebHost4Life.
|
|
|
|
|
Hi folks.
I have recently moved a couple of web services from a GoDaddy server to my WebHost4Life server. Unfortunately, now that the web services are stored on WebHost4Life, I do not appear to be able to reference these web services from within a Visual Studio project. (When the web services were hosted on GoDaddy, I could reference them successfully.)
Has anyone else experienced this problem, and is there something that I should do to enable my projects to reference my web services on WebHost4Life?
Any advice would be much appreciated.
Thanks in advance,
Kev
|
|
|
|
|
Report
|
|
|
|
05-27-2008, 10:33 AM
|
Candice
Joined on 12-20-2007
Posts 3
|
Re: Cannot reference web services that are hosted on WebHost4Life.
|
|
|
|
|
Hi, to publish website from visual studio, need to enable frontpage extension on the domain name first, then publish with the function.
|
|
|
|
|
Report
|
|
|
|
06-08-2008, 7:35 AM
|
bicnet
Joined on 06-08-2008
Posts 3
|
Re: Cannot reference web services that are hosted on WebHost4Life.
|
|
|
|
|
Reference them as in Consume them from Visual Studio? Or reference them by executing them from Javascript?
If you have the WebSErvices in your current solution, what I do is consume them based on my solution. Then in your web.config or another xml file, specify the actual location for them... example:
http://www.mysite.com/webservices/service1.asmx.
Now, when your app runs, load that value from your config file, and set the .Url property of your web service to that.
This way, whenever you update your website, or you are working on a new service, you won't be hassled with out of date code.
(You don't need to publish web services. just FTP them up.)
|
|
|
|
|
Report
|
|
|
|
|
Webhost4life Fo... » General Discuss... » ASP.NET C# » Re: Cannot reference web services that are hosted on WebHost4Life.
|
|
|
|