Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ASP.NET data access

    I am new to ASP.NET and IIS web applications, but not to
    SQL databases. I can successfully build Windows apps using
    Visual Studio that use ADO. However, for Web Forms, I
    created data connection and sqladapter to my SQL Server -
    Northwind - which I dragged from Server Explorer. I
    generate a dataset, and Preview Data in the da, works
    fine. I then enter vb code on Page_Load event:
    SqlDataAdapter1.Fill(ds)
    DataGrid1.DataSource = ds.Tables("Employees")
    DataGrid1.DataBind()
    When I build and browse (localhost), I get:
    Server Error in myapp...SqlException: Login failed for
    user (null). Reason: Not associated with a trusted SQL
    Server connection. (I have since found error codes
    SQLState 42000 and SQL Error 18452, which could be
    permissions, but haven't found anything detailed on how to
    fix this.) I've tried various settings in Web.config
    connection, tried configuring IIS Virtual Directory
    Managment on SQL Server setting Integrated Security (the
    server mode is Windows auth) and I downloaded the .NET
    framework onto SQL server. I still get the error.
    Perhaps my workstation version of IIS is not enough or not
    configured properly(?); do I need a IIS-server edition
    installed?
    DMS Guest

  2. Similar Questions and Discussions

    1. static data access
      hi, I have a static class for data access. what if i declare some private attribute like this. private static constr =...
    2. Problem with data access
      i had a working site with iis5 winxp professional on a p4 machine. suddenly i am having problems with and the asp pages which have some updating...
    3. Access to AS/400 data
      Does anyone know of any techniques/products which would allow access to AS/400 database files from AIX?
    4. access denied on data access pages
      I have created data access pages that worked well when I tried them on two separate computer simutaneously, but when we went into production we got...
    5. data access
      Hi Is it possible to Join two tables have and have a field from the second table show in a form ? If so could you please point me in the right...
  3. #2

    Default Re: ASP.NET data access

    I'm plagiarizing:

    ===============
    This is a classic asp newsgroup. While you may be lucky enough to find a
    dotnet-savvy person here who can answer your question, you can eliminate the
    luck factor by posting your question to an appropriate group. I suggest
    microsoft.public.dotnet.framework.aspnet.

    HTH,
    Bob Barrows
    ===============

    Ray at work

    "DMS" <dyanna.waters@hqisec.army.mil> wrote in message
    news:011201c386a6$c79e9da0$a401280a@phx.gbl...
    > I am new to ASP.NET and IIS web applications, but not to
    > SQL databases. I can successfully build Windows apps using
    > Visual Studio that use ADO. However, for Web Forms, I
    > created data connection and sqladapter to my SQL Server -
    > Northwind - which I dragged from Server Explorer. I
    > generate a dataset, and Preview Data in the da, works
    > fine. I then enter vb code on Page_Load event:
    > SqlDataAdapter1.Fill(ds)
    > DataGrid1.DataSource = ds.Tables("Employees")
    > DataGrid1.DataBind()
    > When I build and browse (localhost), I get:
    > Server Error in myapp...SqlException: Login failed for
    > user (null). Reason: Not associated with a trusted SQL
    > Server connection. (I have since found error codes
    > SQLState 42000 and SQL Error 18452, which could be
    > permissions, but haven't found anything detailed on how to
    > fix this.) I've tried various settings in Web.config
    > connection, tried configuring IIS Virtual Directory
    > Managment on SQL Server setting Integrated Security (the
    > server mode is Windows auth) and I downloaded the .NET
    > framework onto SQL server. I still get the error.
    > Perhaps my workstation version of IIS is not enough or not
    > configured properly(?); do I need a IIS-server edition
    > installed?

    Ray at Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139