D
DMS
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 among other things, haven't found anything
detailed on how to fix this.) The SQL mode is Windows
auth.I've tried various settings in Web.config connection
string, tried configuring IIS Virtual Directory Managment
on SQL Server setting Integrated Security and I
downloaded the .NET framework onto SQL server. I still
get the error.
Perhaps my workstation version of IIS is not configured
properly(?); do I need an IIS-server edition? Would
appreciate any help, reference to articles, etc.
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 among other things, haven't found anything
detailed on how to fix this.) The SQL mode is Windows
auth.I've tried various settings in Web.config connection
string, tried configuring IIS Virtual Directory Managment
on SQL Server setting Integrated Security and I
downloaded the .NET framework onto SQL server. I still
get the error.
Perhaps my workstation version of IIS is not configured
properly(?); do I need an IIS-server edition? Would
appreciate any help, reference to articles, etc.