添加HttpHandler会在服务器上导致错误
问题描述:
我已经在我的应用程序中创建了一个Httphandler,并且我已经将项目上载到由其他人托管的服务器上。 我收到一个错误,说500内部服务器错误。添加HttpHandler会在服务器上导致错误
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
什么问题?它在我的开发服务器上工作正常。
答
检查服务器日志,因为有些时候它可能是可能的,如果你移动到另一台机器有一定的参考是不行的,我面临同样的问题,但是当我更新参照档案工作很好..
我知道我需要我的项目的aspnet_isapi.dll参考。但它的服务器,我没有控制。我能做些什么> –
但是在服务器中不需要配置它..你在主机访问中使用哪个面板? –
虚拟主机面板和域控制面板。 我知道它的发生是因为项目中引入了httphandler。如果我删除处理程序,我没有得到错误 –