Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
生产服务器上的Owin IIS错误404_Iis_Asp.net Web Api_Owin - Fatal编程技术网

生产服务器上的Owin IIS错误404

生产服务器上的Owin IIS错误404,iis,asp.net-web-api,owin,Iis,Asp.net Web Api,Owin,我对使用Owin框架的WebApi应用程序有一个问题。我想在IIS 8.5中运行应用程序。在我的开发机器上,它工作得很好 但当我在新的azure机器上部署(通过复制粘贴我的bin文件夹)时,我只会得到一个错误404。我已经在我的web.config中尝试了stackoverflow上关于这个主题的所有内容。但他们中没有一个似乎在起作用 我想我错过了一些动态链接库什么的 <?xml version="1.0" encoding="utf-8"?> <!-- For more

我对使用Owin框架的WebApi应用程序有一个问题。我想在IIS 8.5中运行应用程序。在我的开发机器上,它工作得很好

但当我在新的azure机器上部署(通过复制粘贴我的bin文件夹)时,我只会得到一个错误404。我已经在我的web.config中尝试了stackoverflow上关于这个主题的所有内容。但他们中没有一个似乎在起作用

我想我错过了一些动态链接库什么的

<?xml version="1.0" encoding="utf-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
  </system.web>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>

  <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>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Cors" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.2.0" newVersion="5.2.2.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

生产服务器上的dll:

我发现这是一个虚拟目录的小故障。我在一个应用程序中托管了这个应用程序。当我将应用程序设置为root时,它工作正常