小编son*_*eca的帖子

我的网络应用程序在发布时找不到我的数据库

我使用Visual Studio 2012创建了一个简单的Web应用程序,使用MVC3并在Azure上发布.

当我在本地运行它时,一切正常.但是当我发布时,一个页面中有一个使用我创建的数据库的表不会加载.错误消息是巨大的,但是从这样开始:

Exception Details: System.ComponentModel.Win32Exception: The system cannot find the   file specified

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 


[Win32Exception (0x80004005): The system cannot find the file specified]

[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was …
Run Code Online (Sandbox Code Playgroud)

c# azure asp.net-mvc-3

5
推荐指数
1
解决办法
2512
查看次数

标签 统计

asp.net-mvc-3 ×1

azure ×1

c# ×1