如何在plesk 12.5.30 asp api中连接到db

时间:2016-07-03 16:39:24

标签: asp.net linq api entity-framework-5 plesk

我上传发布的网站(asp.net api) 出现此错误:( This XML file does not appear to have any style information associated with it

控制器类: controller class

我使用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>

0 个答案:

没有答案