Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello

i write a simple web service and upload it in my host.
1- i upload 2 files asmx and cs files without publish. is it necessary to publish web service then upload published files?
2- i write the address of web service in url of browser. but it don't recognize web service. why?


thanks

What I have tried:

i don't do any things for solve this problems. because i dont know what should be do
Posted
Updated 2-Nov-18 10:22am

You don't need the cs file, the code in the cs file is compiled into an assembly (dll) and without that assembly the code won't work. It will also need various config files. The easiest way to know what files your project needs is to do a file publish to a folder on your local machine, then upload all of the files in that folder to your server.
 
Share this answer
 
Quote:
is it necessary to publish web service then upload published files?


Yes. You need to publish them in so you can access them outside your dev environment. It could be in your local IIS or public facing server host.

Maybe you should start looking at this article to get started on how to consume a webservice: Consuming Web Service In an ASP.Net Web Application[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900