CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2005
    Location
    Turkey
    Posts
    54

    Sql server does not exist or access denied

    I got this message when I try to run my asp.net web application on my computer. The code:
    string baglan = "Data Source=localhost; Initial Catalog=Northwind; Integrated Security=SSPI";
    SqlConnection vt_baglanti = new SqlConnection(baglan);
    The error line is:
    vt_baglanti.Open();

    I couldn't find the problem.

  2. #2

    Re: Sql server does not exist or access denied

    Using Windows Authentication requires that the ASP.NET account has access to the SQL server. You need to either use impersonation or provide access to the ASP.NET account in SQL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured