locked
When Publishing the WebService using the VS 2015, the generated files is type is "ASP.NET Web Service", Whereas it supposed to be "ASMX" FIle RRS feed

  • Question

  • User-786564416 posted

    I have observed that the when publishing a web service using VS 2015: Publish -> Publish Web Application, I selected the directory where the published files are generated to. The thing I observed is that in the tutorials, the generated Web Service file type is just shown as "ASMX File' (As shown on the photo),

    Whereas the file I get is "ASP.NET Web Service" (As shown in the pictures):

     

    The Web Service works perfectly when run in Visual Studio. However, when try to deploy it on the IIS, it is not working at all. So, Where is the problem?

    Thursday, July 25, 2019 5:36 PM

All replies

  • User475983607 posted

    What is "not working"?  Did you update the service URL in the web.config to point to the deployed application?  

    Thursday, July 25, 2019 5:38 PM
  • User-786564416 posted

    Would you please showing me how?

    Thursday, July 25, 2019 7:06 PM
  • User475983607 posted

    alihusain_77

    Would you please showing me how?

    Open the web.config in your web application and change the service URL from the old URL to your new ASMX service URL.  Only you know the URLs.  

    Thursday, July 25, 2019 8:04 PM
  • User288213138 posted

    Hi alihusain_77,

    alihusain_77

    it is not working at all.

    What error have you encountered? you can view what errors are reported by F12.

    About how to deploy web service to iis, you can watch this video: https://www.youtube.com/watch?v=1VU8fyaHzO0

    The type of the generated file is ASP.NET Web Service, actually it is an asmx file.


     
    Best Regard,
    Sam

    Friday, July 26, 2019 7:47 AM