DigitalPlatform / dp2

Integrated Library System / 图书馆集成系统
http://digitalplatform.github.io/dp2
Apache License 2.0
104 stars 54 forks source link

dp2OPAC 安装问题 #653

Open DigitalPlatform opened 4 years ago

DigitalPlatform commented 4 years ago

模块 | IIS Web Core
-- | --
BeginRequest
尚未确定
0x80070021
不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。锁定是默认设置的(overrideModeDefault="Deny"),或者是通过包含 overrideMode="Deny" 或旧有的 allowOverride="false" 的位置标记明确设置的。
\\?\C:\inetpub\wwwroot\dp2OPAC\web.config

https://www.cnblogs.com/cookiebin/p/5911644.html 解决办法:

出现这个错误是因为 IIS 7 采用了更安全的 web.config 管理机制,默认情况下会锁住配置项不允许更改。要取消锁定可以以管理员身份运行命令行 %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers 。其中的 handlers 是错误信息中红字显示的节点名称。

如果modules也被锁定,可以运行%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules

注意:要以管理员身份运行才可以,默认不是管理员身份,方法,在开始菜单中的搜索程序与文件输入CMD,就会在上方出现一个CMD.EXE,在这个CMD.EXE文件上点击键,选择“以管理员身份运行”,打开命令行窗口,输入以上命令即可。

DigitalPlatform commented 4 years ago
HTTP 错误 404.3 - Not Found
由于扩展配置问题而无法提供您请求的页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加 MIME 映射。

最可能的原因:
可能是缺少处理程序映射。默认情况下,静态文件处理程序将处理所有内容。
您要使用的功能可能尚未安装。
没有为网站或应用程序启用相应的 MIME 映射。(警告: 请不要为用户不应下载的 .ASPX 页或 .config 文件等内容创建 MIME 映射。)
如果未安装 ASP.NET。

image

DigitalPlatform commented 4 years ago

https://stackoverflow.com/questions/5437723/iis-apppoolidentity-and-file-system-write-access-permissions

https://support.pkware.com/home/smar/latest/sem-knowledge-base/kb-granting-folder-permissions-to-iis-application-pools

ICACLS "C:\web\mds" /grant "IIS AppPool\Smartcrypt":M /t

https://stackoverflow.com/questions/40587421/set-folder-permission-for-a-iis-application-pool-with-c-sharp-console-applicatio

https://stackoverflow.com/questions/20138781/how-to-give-folder-permission-for-iis-user-in-c

https://www.codeproject.com/tips/780076/recycle-application-pool-s-in-iis-server-using-c

DigitalPlatform commented 4 years ago

Advanced Installer

https://www.advancedinstaller.com/user-guide/qa-web-installation.html

https://www.cnblogs.com/lonelyxmas/p/6372787.html

https://www.cnblogs.com/lonelyxmas/tag/%E6%89%93%E5%8C%85Advanced%20Installer/

DigitalPlatform commented 4 years ago

WebPI

https://www.microsoft.com/web/downloads/platform.aspx

https://stackoverflow.com/questions/3042892/how-to-create-a-setup-for-a-web-application-with-web-platform-installer

https://blogs.iis.net/kateroh/web-pi-extensibility-custom-feeds-installing-custom-applications

DigitalPlatform commented 4 years ago

https://stackoverflow.com/questions/13582906/web-deploy-api-deploy-a-net-4-5-application

https://docs.microsoft.com/en-us/aspnet/#pivot=core

https://weblogs.asp.net/scottgu/automating-deployment-with-microsoft-web-deploy

DigitalPlatform commented 4 years ago
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
    <handlers>
      <remove name="ChartImageHandler" />
      <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </handlers>
        <defaultDocument enabled="true">
            <files>
                <add value="searchbiblio.aspx" />
            </files>
        </defaultDocument>
    </system.webServer>
</configuration>