Tag: asp.net

提供程序与Oracle客户端的版本不兼容

我试图在我的ASP.net项目上使用Oracle ODP.NET 11g(11.1.0.6.20)即时客户端作为数据提供者,但是当我运行aspx页面时,我得到一个“ 提供程序与版本不兼容的Oracle客户端 “错误消息。 任何帮助,将不胜感激。 我在Visual Studio 2005中引用了数据提供者,后面的代码如下所示: using Oracle.DataAccess.Client; .. OracleConnection oOracleConn = new OracleConnection(); oOracleConn.ConnectionString = "Data Source=MyOracleServerName;" + "Integrated Security=SSPI"; oOracleConn.Open(); //Do Something oOracleConn.Close(); 该页面的错误如下所示: Exception Details: Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle client Source Error: Line 21: Line 22: Line 23: OracleConnection oOracleConn = new […]

MVC3和实体框架

我的问题很简单:将.edmx文件放在MVC3项目的Web应用程序的模型文件夹中是否是一个好习惯?

运行Docker镜像会导致Kestrel异常

当我尝试在Linux操作系统中运行我的Docker镜像时,我正面临奇怪的行为 – 图像包含.Net核心Web API项目 这是我的Program.cs var host = new WebHostBuilder() .UseKestrel().UseStartup<Startup>().Build(); host.Run(); 我的Docker-compose.yml文件 version: '2' services: server: image: repo.testCompany.com:1443/testCompany:6 ports: – "60000:60000" hostname: ucp.${HOST_HOSTNAME} restart: unless-stopped 图像被构建并推送成功。当Web API尝试运行容器内的项目并引发运行时异常时,问题就出现了 – Unhandled Exception: System.AggregateException: One or more errors occurred. (Error -99 EADDRNOTAVAIL address not available) —> Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvException: Error -99 EADDRNOTAVAIL address not available at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.Check(Int32 statusCode) at […]