Can't access WEB API with ip:port but can with localhost:port during VS debug mode

后端 未结 5 1836
天涯浪人
天涯浪人 2020-12-08 02:45

I am trying to write an WEB API from .net and trying for my Android Application to query some data from the sql server database.

I have the web api written and it wo

5条回答
  •  悲哀的现实
    2020-12-08 03:14

    In your solution dir, in the file .vs\config\applicationHost.config change the line

     
    

    to

    
    

    and run Visual Studio as an admin. Restart IIS Express. this solution work for me.

提交回复
热议问题