ASP.NET部署Web服务 - 无法加载类型namespace.application

时间:2016-11-11 13:35:35

标签: asp.net web-services deployment

构建Web服务并将bin文件夹下的dll文件和主目录下的web.config文件发布到我的主机后,但它显示以下错误:

enter image description here

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>

0 个答案:

没有答案