mohon pencerahan

Forum diskusi pemrograman Visual C++ .NET / CLI

mohon pencerahan

Postby h4n13f » 02 Oct 2011, 14:48

mau coba bkin web, tapi malah eror ni ndan. mhon bimbingannya...

Server Error in '/' Application.

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Source Error:


Line 21: public ViewResult List(int page = 1)
Line 22: {
Line 23: return View(menusRepository.menus
Line 24: .Skip((page - 1) * PageSize)
Line 25: .Take(PageSize)
h4n13f
Prajurit Dua
Prajurit Dua
 
Posts: 1
Joined: 02 Oct 2011, 14:42
Memberi kopi: 0 cangkir
Mendapat kopi: 0 cangkir

Re: mohon pencerahan

Postby vberror13 » 03 Oct 2011, 10:15

h4n13f wrote:Exception Details: System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)


Yang itu, oom , sumber masalahnya. Koneksi ke database nggak bisa dibuka. Itu banyak penyebabnya. Coba si oom copy-paste baris-baris yang membuka koneksi kedatabasenya ke sini.
:ymbilly: :ymbilly: :ymbilly: =:) :ymbilly:
Just Because You Are Unique, Doesn't Mean You Are Useful
User avatar
vberror13
Global Moderator
Global Moderator
 
Posts: 1848
Joined: 13 Mar 2010, 20:34
Location: Medan Indonesia
Memberi kopi: 296 cangkir
Mendapat kopi: 321 cangkir


Return to Visual C++ .NET

Who is online

Users browsing this forum: No registered users and 1 guest