Welcome to Webhost4life Forum Sign in | Join | Faq

ASP.NET C#

Started by krispy at 04-13-2008 9:12 AM. Topic has 2 replies.

Print Search
Sort Posts:    
   04-13-2008, 9:12 AM
krispy is not online. Last active: 4/14/2008 12:06:33 AM krispy

Top 500 Posts
Joined on 04-14-2008
Posts 2
Cannot reference web services that are hosted on WebHost4Life.
Reply Quote
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 is not online. Last active: 8/23/2008 1:20:35 PM Candice

Top 100 Posts
Joined on 12-20-2007
Posts 3
Re: Cannot reference web services that are hosted on WebHost4Life.
Reply Quote
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 is not online. Last active: 6/8/2008 10:32:33 PM bicnet

Top 150 Posts
Joined on 06-08-2008
Posts 3
Re: Cannot reference web services that are hosted on WebHost4Life.
Reply Quote
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.

Powered by Community Server, by Telligent Systems