构建Web服务并将bin文件夹下的dll文件和主目录下的web.config文件发布到我的主机后,但它显示以下错误:
CS:
namespace jsonwebservice
{
public class getvideos:IHttpHandler
{
...
的web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<defaultDocument>
<files>
<clear/>
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
<add value="index.php" />
</files>
</defaultDocument>
<httpErrors errorMode="DetailedLocalOnly" existingResponse="Auto" />
<handlers>
<add name="getdata" path="getdata" verb="*" type="jsonwebservice.getvideos" resourceType="Unspecified" preCondition="integratedMode" />
</handlers>
</system.webServer>
</configuration>