我上传发布的网站(asp.net api) 出现此错误:(
控制器类:
我使用linq to sql
的web.config:
<configuration>`<connectionStrings><add name="devsmoco_dbt" connectionString="Server=62.60.138.206,1436; Database=devsmoco_dbt; User Id=*****; password=******" providerName="System.Data.EntityClient" />
</connectionStrings>
<appSettings></appSettings> <system.web><compilation targetFramework="4.5" /><httpRuntime targetFramework="4.5" /> <customErrors mode="Off"/></system.web><system.webServer><handlers><remove name="ExtensionlessUrlHandler-Integrated-4.0" /><remove name="OPTIONSVerbHandler" /> <remove name="TRACEVerbHandler" /> <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /></handlers></system.webServer></configuration>