IIS问题二例

访问IIS的网站时提示如下类似的错误:

错误一:

Unable to make the session state request to the session state server.
Please ensure that the ASP.NET State service is started and that the client and server ports are the same.
If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.
If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.

target site :
Void MakeRequest(StateProtocolVerb, System.String, StateProtocolExclusive, Int32, Int32, Int32, Byte[], Int32, Int32, SessionNDMakeRequestResults ByRef)

原因是ASP.NET State Service没有启动,虽然产看状态是Automatic,所以手动将其start,就OK了

错误二:

HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

Module IIS Web Core
Notification ExecuteRequestHandler
Handler PageHandlerFactory-Integrated
Error Code 0x8007000d
Requested URL http://localhost:80/default.aspx
Physical Path C:\Snugabye\Website\default.aspx
Logon Method Anonymous
Logon User Anonymous

Most likely causes:
Managed handler is used; however, ASP.NET is not installed or is not installed completely.
There is a typographical error in the configuration for the handler module list.

Things you can try:
Install ASP.NET if you are using managed handler.
Ensure that the handler module's name is specified correctly. Module names are case-sensitive and use the format modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule".

此种情况热心的网友提示要重新注册.NET,如下

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

在我的测试过程中这种方法并没有起作用,所以我来了一个比较暴力的操作,在系统Roles中,添加如下Role Services(服务器是Server2008R2),然后这个错误就消失了

IIS问题二例

因为是安装别人的应用,所以也不知道具体应用里面是怎么配置的,但是个人感觉,IIS实在是太难用了

(上面的错误信息直接来源于网站,因为是部署他人的应用,此处不便于直接上传错误,好在错误意思应该是一样的)

发表评论

电子邮件地址不会被公开。 必填项已用*标注