简体   繁体   中英

WEBAPI not working when i add server ip address instead of name?

I have created WEBAPI application using VS2017 and deployed into IIS. When i Click above link im getting XML like below image

After replace my server ip address instead of msweb102 like below URL, i am getting error.

Error image

Please help me , if anyone knows the solution. Thanks in Advance.

not 100% sure but it should work:

Open the properties from your web.api project and in the Debug tab replace "localhost" with your IP.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM