Windows Server 2012 R2, IIS, VS2013 I have implement a ASP.NET web api, when I debug in VS2013, it can open IE, and I can call my web api correctly. http://localhost:42508/api/log/111
I have use "publish" in VS2013, and deploy all files to D:\api_publish.
Now, I set up IIS, and under "Default Web Site", I add a application "serverapi".
Now I set "physical path" to D:\api_publish\bin (where serverapi.dll is at). then I use below URL to access API, http://192.168.1.100/serverapi/api/log/111
But it return 404 - File or directory not found.
UPDATE:
After I set "Default Web Site" to another folder path, and set Application "physical path" to D:\api_publish\, Now when I access http://192.168.1.100/serverapi/api/log/111, it will return HTTP 500 error.
There are a couple of issues that I can see here.
D:\api_publishand not in the bin folder..NET CLR Version v4.As you mentioned in the comments, the default website already points to the same physical folder. You can either:
serverapione you created.