J
John Blair
Hi,
I am trying to get the datacache1 sample working on my PC.
I have downloaded the MSDE 2000 sample SQL Server database and the pubs
sample database and installed it.
I can view the contents of the pubs database.
However, i have trouble connecting to this database from VB.Net
The connection string is:
MyConnection = New
SqlConnection("server=(local);database=pubs;Trusted_Connection=yes")
When i run the sample i get the following error (see below):
This is not surprising as there is no ASPNET user account setup for pubs.
So my question is: How do i configure the pubs database with the correct
user accounts and passwords for the samples to work?
Any help much appreciated.
Also im wondering does microsoft publish a url for telling us how to setup
SQL server for usage with VB.net?
Thanks a lot....John.
Server Error in '/datacache1' Application.
--------------------------------------------------------------------------------
Login failed for user 'WINXP1\ASPNET'.
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: Login failed for user
'WINXP1\ASPNET'.
Source Error:
Line 26:
Line 27: Dim ds As New DataSet
Line 28: myCommand.Fill(ds, "Authors")
Line 29:
Line 30: Source = New DataView(ds.Tables("Authors"))
Source File: c:\inetpub\wwwroot\datacache1\WebForm1.aspx Line: 28
I am trying to get the datacache1 sample working on my PC.
I have downloaded the MSDE 2000 sample SQL Server database and the pubs
sample database and installed it.
I can view the contents of the pubs database.
However, i have trouble connecting to this database from VB.Net
The connection string is:
MyConnection = New
SqlConnection("server=(local);database=pubs;Trusted_Connection=yes")
When i run the sample i get the following error (see below):
This is not surprising as there is no ASPNET user account setup for pubs.
So my question is: How do i configure the pubs database with the correct
user accounts and passwords for the samples to work?
Any help much appreciated.
Also im wondering does microsoft publish a url for telling us how to setup
SQL server for usage with VB.net?
Thanks a lot....John.
Server Error in '/datacache1' Application.
--------------------------------------------------------------------------------
Login failed for user 'WINXP1\ASPNET'.
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: Login failed for user
'WINXP1\ASPNET'.
Source Error:
Line 26:
Line 27: Dim ds As New DataSet
Line 28: myCommand.Fill(ds, "Authors")
Line 29:
Line 30: Source = New DataView(ds.Tables("Authors"))
Source File: c:\inetpub\wwwroot\datacache1\WebForm1.aspx Line: 28