简体   繁体   中英

HTTP Error 403.14 - Forbidden, localhost:12401

I am trying to run the Office-OOXML-EmbedAddin solution. I have downloaded the repository and added the references according to the documentation. When I start the application using F5 , the browser opens, but I receive the error shown below.

浏览器出错

When executing the command suggested by the error page, I receive an error as well.

C:\Program Files\IIS>appcmd set config /section:system.webServer/directoryBrowse /enabled:true

'appcmd' is not recognized as an internal or external command, operable program or batch file.

I also tried adding the following lines to the Web.config of the project, but it still did not work.

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>

To solve your issue, navigate to Properties > Web of your solution. From there, change the Start Action to load a Specific Page and select Home.aspx .

特定页面设置

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