Web api filled pit configuration Raiders

Recently started to use web api, development and debugging process went smoothly, and now the project has been released, the site has been deployed, the result of browsing problems (no problems like not in your right ......), to be a note began to fill the pit.

Pit No. 1,1

 

 A quick burst start another program is using this file? No file occupied, presumably Web site port after manually edited, so it should be a port conflict, so decisive delete a site re-add a new site, directly designated port 50000

 As shown, the default port 80 must first kill

Pit No. 2,2

Insufficient permissions:

If prompted, click Browse Web site:

The current identity (IIS APPPOOL \ ASP.NET v4.0) no: write access "C \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET Files" of

It is clear that insufficient permissions, add permissions for the Framework64, as follows:

cmd Run as administrator, and then copy and paste the following command:

C: \ Windows \ Microsoft.Net \ Framework64 \ v4.0.30319 \ Aspnet_regiis.exe -ga IIS_IUSRS

Then open the folder C: \ Windows \, ​​the configuration Temp folder attributes, security - permissions, user rights open to all user groups can IIS_IUSRS

 

 Add the current user to the next IIS_IUSRS user groups, operating, mmc, open the Microsoft Management Console, open the Local Users and Groups, find their user names, attributes, add to the user group can IIS_IUSRS

The above configuration is complete, restart IIS, and then browse webapi default Web page, not much to say, Bingo!

Guess you like

Origin www.cnblogs.com/zjw1514/p/12092384.html