I was asked to generate a consumer class of a webservice c# code(which was given to me), my consumer c# code must call all its functions, i followed c-sharpcorner link and successfully done it.
But here in this url place i added the url http://prntscr.com/9t8ihi which i obtained on running the visual studio c# web-service code at browser pop-UP.
It works fine for me and i sent it.
My mentor asked me replied that "there is a pb with the give code because the web service will not be localhosts".
EDIT On further research i found that i need to publish web service on IIS, If i am right ? For that i done following steps:
(1) Put the webservice project in C:\inetpub\wwwroot\WS_TNT
(2) Now open IIS manager and Add application by click right and give path of webserice and "Default Pool".
(3) When i publish it i get this error http://prntscr.com/9t8v4p
, My webservice code is written in visual studio .net 4.5 version where i have done this
C:\Users\ACER>%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
Whats wrong i do ?