IIS 部署网站 提示 让你保存 或者在线找到打开程序 该怎么办?

在windows server 2008 上部署IIS程序的时候,提示 Do you want to save this file, or find a program online to open it?  的解决办法。

1) Ensure "Allow unspecified ISAPI modules is selected"

Right-click on 'My Computer' and choose 'Manage'

Expand 'Server Manager - Roles - Web Server (IIS)'

Click 'Internet Information Services'

Inside the 'Connections' section, highlight your server

Double-click on ‘ISAPI and CGI restrictions’ (in the right-hand pane)

Under Actions on the right hand screen select "Edit Feature Settings" and make sure "Allow unspecified ISAPI modules" is selected.



2) Configure "Module Mapping" 

In the left-hand "Connection" pane, highlight/select the virtual directory cgi-bin

Double-click on ‘Handler Mappings’ (in the right-hand pane)


Click on ‘Add Module Mapping’

Enter the values similar to the following (modify the path as appropriate for your version of Controller and where you have installed it):

Request path: cognosisapi.dll

Module: IsapiModule

Executable (optional): C:\Program Files (x86)\ibm\cognos\c10\cgi-bin\cognosisapi.dll

(This path location is assuming that you are using Controller 10.x installed into the default location on a 64-bit version of Windows)

Name: ISAPI-cognos


Click OK.


3) Double-check setting for 'Enable 32-Bit Applications' 

If running a 64-bit version of Windows 2008, then (inside IIS administration, under "Application Pools") select your application pool for the cognos virtual directories

For example, if using the defeault "DefaultAppPool" then (on the right-hand side) click "Set Application Pool Defaults" and ensure that "Enable 32-Bit Applications" is set to "True"

  


4) Modify 'allowPathInfo' setting 

Using Windows Explorer, open the cgi-bin folder (default = C:\Program Files\ibm\cognos\c10\cgi-bin)

Launch NOTEPAD.EXE and edit the file ‘web.config’


For example, it may currently look like:

<add name="ISAPI-cognos" path="cognosisapi.dll" verb="*" modules="IsapiModule" scriptProcessor="C:\Program Files (x86)\cognos\c8\cgi-bin\cognosisapi.dll" resourceType="Unspecified" preCondition="bitness32" />

Add the text allowPathInfo="true" near the end of the line:


For example, it would change to:

<add name="ISAPI-cognos" path="cognosisapi.dll" verb="*" modules="IsapiModule" scriptProcessor="C:\Program Files (x86)\cognos\c8\cgi-bin\cognosisapi.dll" resourceType="Unspecified" preCondition="bitness32" allowPathInfo="true" />

 

5) Restart IIS 

Click "START - RUN"

Type: CMD <Enter>

Type: IISRESET <Enter>



以上方法基本就可以解决这个问题了。

详情 见  http://www-01.ibm.com/support/docview.wss?uid=swg21504282
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值