【发布时间】:2014-07-28 14:48:44
【问题描述】:
我已经使用 MVC5 ASP.NET 在 Visual Studio 2013 Update 1 上创建了一个 Web 应用程序。该应用程序正在使用身份验证。我试图在 .netV4.0 应用程序池中的服务器上启动它,但它一直给我一个错误。我在this 帖子中读到,如果您的应用程序指向 4.5 并且您在 4.0 应用程序池中运行它并不重要。但正如 Gene Reddick 帖子中的一个 cmets 所述,我的异步调用也失败了。我现在的主要问题是:
- 如果我需要在我的服务器中升级 .net 版本
- 它可能如何影响其他应用程序以及,
- 如果不是以正常方式,如何在服务器中安装新版本以供特定应用程序池使用
我们将不胜感激。
【问题讨论】:
-
报错具体是什么?事件查看器和您的日志记录说明了什么?
-
我使用身份登录。当我在 IIS 中添加应用程序时,我可以查看我的主页和登录页面,但是一旦我尝试登录,我就会收到错误
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details. ) -
您确定是.Net Framework 版本造成的吗?数据库是否可达?尝试进行 ODBC 测试以确认连接。
-
您好,这是一个 ODBC 错误。还是没能解决。我所有的连接都在工作,但我似乎仍然没有摆脱错误。
标签: c# asp.net .net iis asp.net-mvc-5